Hi,
I have recently added Google Calendar integration to my Home Assistant and I was able to use basic Calendar trigger events.
However I saw Calendar Event Light Schedule automation recipe
from URL : Calendar Event Light Schedule
This example consists of:
For the calendar entity calendar.device_automation
When event summary contains Front Lights
Turn on and off light named light.front when the event starts and ends
automation:
alias: Front Light Schedule
trigger:
- platform: calendar
event: start
entity_id: calendar.device_automation
- platform: calendar
event: end
entity_id: calendar.device_automation
condition:
- condition: template
value_template: "{{ 'Front Lights' in trigger.calendar_event.summary }}"
action:
- if:
- "{{ trigger.event == 'start' }}"
then:
- service: light.turn_on
entity_id: light.front
else:
- service: light.turn_off
entity_id: light.front
mode: queued
and tried to setup up this automation in yaml editor with my entities and google calendar, when I save it this error shows up:
Message malformed: extra keys not allowed @ data['automation']
As shown below:
Have no idea what is wrong, basically I’m trying to Turn on and off light named entity when the event starts and ends. Any help appreciated, thanks in advance.