Hi Team, would you take a look at the following, it triggers correctly at 7am but close instead. I am guessing that the trigger event == “time” is incorrect. What is the correct way to do that?
- alias: 'Curtains Bedroom'
description: 'Automatic open and close bedroom blockout curtains'
triggers:
- trigger: sun
event: sunset
- trigger: time
at: 07:00:00
actions:
- service: "cover.{{ 'open_cover' if trigger.event == 'time' else 'close_cover' }}"
entity_id:
- cover.curtain_blockout_bedroom