Hi,
does anybody know why the below automation never triggers?
According to everything I found in the forums this should work.
- id: 2b791d46-fab0-4a0a-8241-9b7ca9a59fa4
description: Retract the awning when the sun goes down
alias: Fahre Markise ein wenn die Sonne untergeht
trigger:
- platform: state
entity_id: sun.sun
to: below_horizon
condition:
- condition: state
entity_id: cover.markise
state: "on"
action:
- service: cover.close_cover
entity_id: cover.markise
- service: notify.group_notifications
data:
message: "Ich habe Markise eingefahren."
Use Developer tools → States to find the automation, click the info icon and then push Execute
Use Developer tools → Services and call automation.trigger on the automation with skip_condition: false
Use Developer tools → States to find the trigger entity, click the name of that entity, then change the state (at the top) to something that’ll trigger the automation before pushing Set State
Thanks you two. Do you know how I can test that event trigger?
In the Developer Tools on the Event Page I set EventType to “sun” and Event Data to “sun” or “data: sun” but it didn’t trigger the automation.