Integrating Google Calendar with Home Assistant: A Comprehensive Guide

Поділитися
Вставка
  • Опубліковано 19 жов 2024

КОМЕНТАРІ • 40

  • @JR-mp2ol
    @JR-mp2ol 6 місяців тому +1

    Great video! Thanks a lot!

  • @Hasse-swe
    @Hasse-swe Місяць тому +1

    Thanks for a greate video. It helped me alot.

    • @smart_home_australia
      @smart_home_australia  Місяць тому +1

      Thanks... that was an early video, hopefully my production and audio levels have impressed since then :)

  • @ingmeisterk874
    @ingmeisterk874 4 місяці тому +1

    Thanks so much!! You have the best walkthroughs.

    • @smart_home_australia
      @smart_home_australia  4 місяці тому +1

      Glad you like them! I try to make then as simple and easy to follow through. I know what its like when people assume steps and skip over what they think is an obvious step, but its not obvious for everyone.

  • @peterfrisch24
    @peterfrisch24 8 місяців тому

    Great video! Straight to the point of a not so easy task

  • @xbox360benji
    @xbox360benji 10 місяців тому +2

    Wicked thank you on this now...

  • @MorayoHouse
    @MorayoHouse 4 місяці тому

    Thanks for the video. very helpful following you for my HA integrations/automations.
    Question: Can i get it to notify my phone and my partners iphone rather than Alexa? If yes, do i call the notify service for each phone or i put the phones in a group? Thanks

    • @smart_home_australia
      @smart_home_australia  4 місяці тому +1

      Although not 100% to the topic, watch ua-cam.com/video/QZsY5a7R10c/v-deo.html, this shows you the format of a notification. I would apply "KISS" and simply insert two send notification actions, this way when you go back and review this automation in many months' time it will be easy to understand. I have literally hundreds of automations and reviewing these when they have been running for sometimes years, simpler is always easier.

  • @MattHudson
    @MattHudson 9 місяців тому

    Such an awesome video. I got it all working first time.
    Question: How do I sync multiple Google Calendars to Home Assistant? I have gone through the process with the other Calendars but it seems like my first Calendar is preventing it.
    I think the new calendar is trying to use the first Calendars integration when it should be a separate one?

    • @smart_home_australia
      @smart_home_australia  9 місяців тому +1

      Hi, Yes, you can add multiple Google Calendars to the Home Assistant integration. Each Google Calendar from “My Calendars” is represented as a calendar entity in Home Assistant (ref: www.home-assistant.io/integrations/google/). However, if you want to add Google Calendars from different accounts, you might need to share the calendars with the account that you use for your sensor in Home Assistant. (Ref: community.home-assistant.io/t/google-calendar-from-different-accounts/33240). I hope that answers your question.

    • @MattHudson
      @MattHudson 9 місяців тому +1

      @@smart_home_australia Thank you, yes, the second option is the solution. FYI - those links send me to the url shortener site but not instructional videos :)

    • @smart_home_australia
      @smart_home_australia  9 місяців тому +1

      Sorry about the link. I've replaced with the full URL.

  • @KCapitalT
    @KCapitalT 5 місяців тому

    Thank you! How do I skip an automation based on a calender event? For example, if it's a public holiday, it must skip or not execute a certain automation.

    • @smart_home_australia
      @smart_home_australia  5 місяців тому +1

      Yep, sure can. the challenge you will have is what are you checking for. For instance, if you simply want to check in a specific calendar if any event is occurring, then you can use the following YAML condition (sorry YAML is the easiest way of putting it in text):
      condition:
      - condition: state
      entity_id: calendar.mycalendar
      state: 'on'
      If you want to check if a specific event is occurring or if you want to check for an event at a specific time, you can use a template in your condition:
      sensor:
      - platform: template
      oneday_before_event:
      value_template: >-
      {% if as_timestamp(now()) > as_timestamp(state_attr('calendar.mycalendar', 'start_time')) - 86400
      and as_timestamp(now()) < as_timestamp(state_attr('calendar.mycalendar', 'end_time')) - 86400 %}
      'on'
      {% else %}
      'off'
      {% endif %}
      If you want to check if a specific event is happening in the future (e.g., tomorrow), you can use a template to compare the date of the next event with the date 24 hours from now:
      condition:
      - condition: template
      value_template: >-
      {% set next_workday = state_attr('calendar.work_next', 'start_time') %}
      {% set tomorrow = (as_timestamp(now())+ 86400) | timestamp_custom('%Y-%m-%d', True) %}
      {{ next_workday[:10] == tomorrow}}
      Remember to replace 'calendar.mycalendar' and 'calendar.work_next' with the actual entity ID of your Google Calendar in Home Assistant
      I hope that helps.

    • @KCapitalT
      @KCapitalT 5 місяців тому

      @@smart_home_australia thank you! I'll definitely give it a try

    • @smart_home_australia
      @smart_home_australia  5 місяців тому

      Pleasure, good luck and let me know if you have issues.

    • @ingmeisterk874
      @ingmeisterk874 4 місяці тому

      or just use the home assistant holiday sensor :)

  • @julianpuchberger5987
    @julianpuchberger5987 6 місяців тому +1

    the device verivication is not working on my google account. Any ideas? :(

    • @smart_home_australia
      @smart_home_australia  6 місяців тому +1

      Which verification? If in HA, then does the logbook show you any relevant error message that you can search in google?

  • @HassAssistant
    @HassAssistant 9 місяців тому +1

    After clicking the google calendar integration, it no longer seems to present a page to put in Oauth ID and Secret but rather goes straight to the next section.
    Besides the point, unable to get this working, tried multiple times now.

    • @smart_home_australia
      @smart_home_australia  9 місяців тому

      Hi @HassAssistant, so if I am reading this right, you click on the ADD INTEGRATION (ref: my.home-assistant.io/redirect/config_flow_start?domain=google) on the Home Assistant Google Calendar page (www.home-assistant.io/integrations/google/) and it does not drop you back to your Home Assistant, asking you if you want to Setup the Google Calendar? Sorry if this is abit obvious, but did make sure that your Home Assistant instance URL was correct? Try putting the ADD Integration link above directly into a browser, pressing enter and making sure that URL is correct.

    • @HassAssistant
      @HassAssistant 9 місяців тому +1

      @@smart_home_australia found the issue. Had to go to app credentials and delete the current google calendar credentials then tried again.

    • @smart_home_australia
      @smart_home_australia  9 місяців тому

      Great stuff @HassAssistant, old credentials and cached credentials can be a pain to find. BTW love the channel, when are you going to be making new content?

    • @HassAssistant
      @HassAssistant 9 місяців тому +1

      When work isn't so busy 😂

  • @Googleataya
    @Googleataya 2 місяці тому

    Unable to reach the Credentials request form as on 4':56" I get instead a page with "Open page in your Home Assistant? You've been linked to the page that will start setting up a new integration." Asking to open a YOUR INSTANCE URL link. Where to find my Instance URL? the proposed default url is leading nowhere.

    • @smart_home_australia
      @smart_home_australia  2 місяці тому

      Hi, I just followed through the process steps on my test environment to check that the process is still relevant. Apart from some minor changes to the Google Developer console cosmetic changes everything else works perfectly.
      As such I think the issue must be environment, meaning something in your environment is preventing the Home Assistant back from working. This is probably a firewall or VPN settings. I'd suggest making sure that these are set correctly to allow this call back and then retrying. Sorry I cant be more specific as I'm not accustomed to your environment, but the process does work.

  • @Wild1000Cat
    @Wild1000Cat 5 місяців тому

    Nice video, thanks. Unfortunately 5:07 Error 403:Access denied

    • @smart_home_australia
      @smart_home_australia  5 місяців тому +1

      I just went and recreated mine and everything works as per video. Are you sure you used the credentials that you created in the previous section of the video and not used your usual credentials?
      I'd try deleting and restarting the process.

    • @Wild1000Cat
      @Wild1000Cat 5 місяців тому

      @@smart_home_australia it indicates that the application is currently in testing and only testers approved by the developers have access to it

    • @smart_home_australia
      @smart_home_australia  5 місяців тому

      Thanks for the info. I'm not a tester approved by the developer so I wonder why mine is working as documented...

  • @aklausen
    @aklausen 9 місяців тому +1

    Nice guide :-) but can you please slow down, it is just impossible to follow along, i know i can pause but you are stille talking really fast :-)

    • @smart_home_australia
      @smart_home_australia  9 місяців тому

      Thanks. I think alot about the speed of the videos and the length of the videos. I want to cram every step in, as I know from personal experience that missing steps have caused me grief in previous lives, and yet keep the length of the video relatively short for those that just want a specific section. Hence, the speed of the playback. However, i'll endeavour to "slow" them down a little to allow people to follow long easier. Thanks for the feedback it is invaluable.

  • @ackillesbac
    @ackillesbac Місяць тому

    incase no one has said it, your mic is very quiet

    • @smart_home_australia
      @smart_home_australia  Місяць тому +1

      Arhh the early days of content creation.... yep, noted and purchased a Rode's mic since around Jan 2024, so sound should not be a problem now. Watch some of the later content and let me know if you agree :)

    • @ackillesbac
      @ackillesbac Місяць тому

      @@smart_home_australia levels are still a bit low compared to the average youtuber. Quality is fantastic tho

    • @smart_home_australia
      @smart_home_australia  Місяць тому

      Oh really ? Hey thanks for the feedback, I set my sound at -14db which is the YT recommended but I will raise it, cant have those other YT channels been louder :)