Controlling a Sonoff S20 with a timer

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
tedhts
New user
Posts: 6
Joined: 04 May 2020, 19:36

Controlling a Sonoff S20 with a timer

#1 Post by tedhts » 19 May 2020, 22:21

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!

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Controlling a Sonoff S20 with a timer

#2 Post by ThomasB » 20 May 2020, 05:02

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

User avatar
tedhts
New user
Posts: 6
Joined: 04 May 2020, 19:36

Re: Controlling a Sonoff S20 with a timer

#3 Post by tedhts » 20 May 2020, 17:20

Thank you! I'll give it a shot with the next batch of Sonoffs that I'm flashing.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 77 guests