I am trying to use the Developer Tools → Events page to fire a sunrise event to test some automations I made, without waiting until tomorrow. Is there a simple way to do this? I guess I am not sure what to add in the Event Data (for the Event Type, I just have ‘sunrise’ without the quotes).
If I listen for the sunrise event, I can see the event I fired with empty data {}, but it does not trigger any of my automations, so I know I am missing something.
Here is one of my triggers:
trigger:
- platform: sun
event: sunrise
offset: '0'
Does anyone know the name of the sunrise event? Worse case, I can listen for it to figure out what it sends normally.
So far I have listened for sun and sunrise, but neither of those are right.
Execute the automation.trigger service, for your automation, from Developer Tools > Services and disableSkip conditions. It will still skip the trigger section but will include the condition section.
Be advised that if your automation’s condition or action references the trigger variable, testing it this way won’t work because the trigger variable will be undefined (for more information, refer to Automation - Testing your automation).