After setting up Google calendar I got a calendar.xxxx as a device and I can see the upcoming events …
Now I want to add some extra sensors to trigger some events but the extra sensors are not generated. Or am I doing something wrong…
It’s giving me an error : 2017-10-25 17:23:32 WARNING (SyncWorker_3) [homeassistant.components.google] Calendar Invalid Data: extra keys not allowed @ data['entities'][1]['all_day']
And after each restart of HA the main cal id is added to google_calendars.yaml again
seems like it that my created google_calendars.yaml is not correct ? How to add the sensors then ?
What sensor are you trying to create? The calendar state is on if the event is currently started and off when there are no events occurring. The calendar also has these state attributes which can be accessed without having to be created.
In my opinion: set the search option to the name of the event in your Google calendar ( example : kids at home) . That will set the calendar.kids at state on…
Or am I wrong ?
The only thing I want to do is switch that calendar to on or off based on a SPECIFIC event
Oh, I see where you are looking. I actually don’t use that part of the google calendar because I think it is unnecessary. I believe that part of the configuration will look at the next event and if it matches the search: it will create a sensor for automation. I don’t think it will for example search for xmas and report back Dec 25th unless xmas is the next event but I could be wrong.
I do the same by using automation to look at the next event and if it matches a trigger, I do something using start_time etc.