Using eWeLink, I was able to pair with my SonOff Basic. I want it to turn on a lamp at a certain time, and then turn it off at a certain time. I added two schedules: one to switch on and another one to switch off. That works as expected, but, if there is a power failure after the scheduled switch on time, and the power is restored, the lamp stays switched off. Or, if there is a power failure before the switch on time, and the power is restored just after the switch on time, the lamp also stays switched off.
My question thus is if it is possible to specify a switch on period, with a start/end time, and if there is a power failure and later when the power is restored, the SonOff will check if the current time is still within the switch on period, and then switch on the load?
Use the "Keep" setting under settings for the Power on State. The device will come back on and resume the state it was in when the power failed. That will cure the first scenario. Nothing I know of short of a repeating web link cron job on IFTTT will solve the second scenario.
My power supply is a 5V / 700mA cellular charger. After a power failure
(220Vac) that lasted no more than 2 seconds, the sonoff opened and
closed the output relays continuously, disconnected from the power
supply and turned it back on and everything went back up, but it left me
unsure, because if it happens again , will open and close the gate. The
connections are NO (normally open), configured as type button and state
after power ON "OFF".
I like the amazing blog here this is the nice post to look you here how do i fix bluetooth audio devices connections in windows 10 most of the users can need to access the all function of service of work.
Yeah i agreed it is really hard to recover after major accident. People after road accident takes time for recovery.
It seems as if I have no other option but to flash custom firmware to the Sonoff :-/
I would like this feature too