Hello,
this is my first post here. I installed Hass.io a few days ago and am now trying to automate turning on and off a Sonoff s26 which I have flashed with Tasmota. I am able to manually switch it on and off through a switch on the home screen, and I have created two time triggered automations that successfully turn on and off the switch when I trigger them manually. But when I set a time, they don’t trigger automatically.
I did use the automation editor in configuration when creating the automations, and have also tried to update them manually with no success.
Some more background info:
I did remember to reload automations after editing
I am able to turn on and off the lights by calling the mqtt.publish service with the service data, so I’m pretty sure it’s my automation not getting triggered rather than the action not working.
If the automations work when manually triggered, but they don’t trigger at the times specified, then it could be the automations are turned off. Make sure they are on.
If that’s not it, then @tom_l may be correct and your system clock, or the time zone settings (in HA and in the environment in which HA runs) are not set correctly.
To help figure this out, try entering the following in the Template Editor:
@ pnbruckner Thanks for the input. I previously checked the time by putting it on the overview screen, but this was a better way. The time shown is correct:
2019-02-10 07:17:22.956582+00:00
2019-02-10 08:17:22.956708+01:00
2019-02-10 08:17:22.956863+01:00
2019-02-10 08:17:22.965119+01:00
UTC
Europe/Oslo
CET
@tom_i I tried that first, but since the automations didn’t work I suspected at first that it was the action that failed. Since I managed to verify the mqtt method I left it at that. Will definately go back to calling the switch service once the trigger works.
@tom_l Oh, wow. Now I got it. The switches on the automations turn them on or off! I thought they reported back the state of the button after executing. It’s working fine now. Thanks for the help!