Google Calendar configuration problem

Hello,

I am new in Home Assistant and try to get the information from google calendar.
I have already done the steps from the manual, but for me it is not clear enough.
So I hope you could help me:
my group.yaml looks like:

  calendar_view:
    view: yes
    name: Kalender
    icon: mdi:calendar-clock
    entities:
      - group.calendar_all

  calendar_all:
    name: Termine
    entities:
      - google_cal_all.google_cal_all

my google_calendars.yaml looks like:

- cal_id: "[email protected]"
  entities:
  - device_id: google_cal_all
    name: Google Kalender Alles
    track: true

Now my question:
Is this all to show the appointments or do I have to do something more?

Could nobody help me?

I am unsure of your question. It looks like you setup google calendar correctly, does it work? you can check on the state page under calendars and see if it has the next event with start times etc.

This thread may help…

Take a long time to make it running.
But I am not happy with it, it looks bad…cal

This couldn’t be the final version, there must be a better solution.
My code is now:

configuration.yaml

  - platform: template
    sensors:
      cal_birthdays:
        value_template: >
          {{ strptime(states.calendar.cal_privat.attributes.start_time, "%Y-%m-%d %H:%M:%S").strftime("%A, %d of %B, at %H:%M") }}: }}
          {{ states.cal_privat.birthdays.attributes.message }}
        friendly_name: Geburtstag
      cal_event_title:
        value_template: >
          {{ strptime(states.calendar.cal_privat.attributes.start_time, "%Y-%m-%d %H:%M:%S").strftime("%A, %d of %B, at %H:%M") }}: }}
          {{ states.calendar.cal_privat.attributes.message }}
        friendly_name: Nächster Termin
      cal_event_description:
        value_template: >
          {{ strptime(states.calendar.cal_privat.attributes.start_time, "%Y-%m-%d %H:%M:%S").strftime("%A, %d of %B, at %H:%M") }}: }}
          {{ states.calendar.cal_privat.attributes.description }}"
        friendly_name: Beschreibung
      cal_event_allday:
        value_template: >
          {{ strptime(states.calendar.cal_privat.attributes.start_time, "%Y-%m-%d %H:%M:%S").strftime("%A, %d of %B, at %H:%M") }}: }}
          {{ states.calendar.cal_privat.attributes.all_day }}"
        friendly_name: Ganztags

  calendar_view:
    view: yes
    name: Kalender
    icon: mdi:calendar-clock
    entities:
      - sensor.cal_birthdays
      - sensor.cal_event_title
      - sensor.cal_event_description
      - sensor.cal_event_allday

You need to create a group with view: no in order to group the items in a ‘card’.

Try this:

group:
  kalendar:
    name: Kalendar
    entities:
      - sensor.cal_birthdays
      - sensor.cal_event_title
      - sensor.cal_event_description
      - sensor.cal_event_allday
  calendar_view:
    view: yes
    name: Kalender
    icon: mdi:calendar-clock
    entities:
      - group.kalendar

Hi,
thank you, I will try it as soon as possible and give a feedback.

Hi, thanks everything works how it should.
You are great.

glad to hear it. I suggest marking post 6 as the solution (tick box) so others know.

Hello,
its me again.
It is workin on my PC, after finisch, I transfer the configuration on my RPI.
But now I get a error message and could not find a information how to solve it.
cal

What error do you have in the log? I am not overly familiar with the Google Calendar component but it looks like maybe you need to create a new Client ID for the RPi

Hi Sparkydave,

at first thanks for your assistant.
in the log I got only:

2017-12-23 21:55:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]:
service=create, domain=persistent_notification, service_call_id=3049363824-1, service_data=message=Error: Invalid response 401. Error: invalid_client
You will need to restart hass after fixing., title=Google Calendar Setup, notification_id=google_calendar_notification>
2017-12-23 21:55:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.google_calendar_notification, old_state=None, new_state=<state persistent_notification.google_calendar_notification=notifying; message=Error: Invalid response 401. Error: invalid_client
You will need to restart hass after fixing., title=Google Calendar Setup @ 2017-12-23T22:55:54.610710+01:00>>

I will try to create a new client ID and write what happened.

Hi, with a new client id it is the same…
I don’t know what is wrong.

I tried also the configuraition (with the old client id) on the PC.
There is no google calendar problem, but now I also get no calendar entry.

I think the whole system is not really perfected, still a beta app…

hi,

this will be my last reply.
I thought, I could use home assistant for my local home and it is nice and simple to use.
But this was a big failure, it is still a system in beta version and take to much time for setup and so on.

I found a much better and easier system in the cloud, not the same possiblilities but it works and is easy to setup.

Thanks for your assitance.

Maybe I will come back when the documentation and expamples are how they should be, at the moment it is not for user, the system is for programmer and freaks…

Thanks and good by

no worries. out of curiosity what system are you going with?

Just to let you know i have successfully completed this now after receiving same error as you.
My issue was i had chosen a “web application” in my Google console instead of “other”
I assume Google changes how it authenticates based on that selection.

Hope that may help you!

3 Likes

Thanks @bighead85, while this is in the instructions - I missed it.
you solved my issue of “invalid respone 401”

Thanks @bighead85 , solved the problem for me too.