Page 1 of 1
Controlling a Sonoff S20 with a timer
Posted: 19 May 2020, 22:21
by tedhts
I have successfully flashed a Sonoff S20 with ESP Easy. Now, I'd like to program it to turn on at 4PM and off at 8AM. (An even better trick would be to make it randomly turn off and on within that timeframe. That's called security random.) Does anyone know how to program anything like this through the web interface? Many thanks!
Re: Controlling a Sonoff S20 with a timer
Posted: 20 May 2020, 05:02
by ThomasB
Go to
Tools=>Advanced page and setup the
Rules,
NTP,
DST, and
Location entries. Submit the changes, then Reboot. Now go to the
Rules page and create your time event rules (Clock#Time, %systime%, %Sunrise%, etc). Time related rule examples are discussed here:
https://espeasy.readthedocs.io/en/lates ... Rules.html
Randomizing the S20's power output can be emulated by creating different start/stop time rules for each day of the week. The seven different schedules should fool any mortal that is bing-watching your home.
- Thomas
Re: Controlling a Sonoff S20 with a timer
Posted: 20 May 2020, 17:20
by tedhts
Thank you! I'll give it a shot with the next batch of Sonoffs that I'm flashing.