riscbroker
Expert Member
- Joined
- Sep 29, 2006
- Messages
- 2,468
- Reaction score
- 347
I'm in a very similar position with Home Assistant and Sonoff switches using AlexxITs integration.i am new to home assistant and am finding it an interesting but steep learning curve. I have integrated a number of sonoff switches with the AlexxIT sonoff control on github. I have set up some automations to switch on the switches at certain times of the day and everything works.
Now that loadshedding is back, sometimes the automations do not work as power is off at the sonoff switch at the due automation time.
Any idea how I can set up an automation to see if the sonoff is powered between certain times and if it is not, to turn the switch on when power is restored?
Most of the automations I find are for use with Tasmota, and are often applied with Node Red.
The eWeLink app still works with unflashed Sonoff kit, so I just use the Power-on State switch on the app to switch power through when mains power is restored. I also use the loop function on the app to delay switching power through to motors etc as I haven't been able to find an automation yet to do that.
Are you using YAML or Node Red for your automations?
