Hi there, I have the following automation running based of a google calendar event, it looks at the google calendar uk Holidays for the event Xmas lights if it is found it then triggers the scene. However, what I want to know is as follows below.
How can i change the template value so it checks today’s data against the calendar event and if they do not match then when i press execute to test send a notification to HA saying date not yet reached., yet if the date does match and the event name matches the action fires.
second thing is I want within 1 scene various effects to transition between each other lexample rainbow chase for 3 minutes, then to Christmas light effect next etc.
Thirdly and I would want the lights to come on when the sun is going down etc come on for 4 or 5 hours cycling through the effects. Hope this makes sense. ir can the time be controlled through time settings within google calendar itself.
alias: Calendar lights
description: Turn on Christmas lights
trigger:
- entity_id: calendar.holidays_in_united_kingdom
from: 'off'
platform: state
to: 'on'
condition:
- condition: template
value_template: '{{is_state_attr(''calendar.holidays_in_united_kingdom'', ''message'',
''Christmas Lights'') }}'
action:
- scene: scene.calendar_lights
mode: single