I’m using Sonoff Basic switches in Home Assistant, courtesy of the Sonoff LAN integration - that is, unflashed, original firmware. Can someone here share YAML code that replicates the ‘‘Loop’’ function used in the eWeLink app? Use case is as follows:
We are subject to frequent loadshedding events, whereby our power utility cuts power to different areas at different times. When utility power resumes, I use a Sonoff Basic to delay switching current through to my refrigerator for x period (say 3 minutes after power has resumed). This is to allow the voltage/current to stabilize before it gets to the fridge motor.
In the eWelink app, this is achieved by setting the Basic to ‘‘Off’’ for the Power-on State, and then setting a Loop timer to ‘‘On’’ with the appropriate (3 minute) delay period.
Should be straightforward, I imagine script/s would be needed but I’m new to Home Assistant and have only managed to figure out very simple automations.