Start a new topic

"Countdown" timer feature - pushbutton (or from turning on)

Hello everyone,


as i seen now the way to create any countdown timer has no regard to the current state of the sonoff. when a timer is created (of any kind) it creates a TIME-STAMP to change the state of the switch.

is it possible to create a timer lets say to turn off an appliance 20 minutes FROM THE MOMENT it was turned on? (its good even if this effects only turning on via push-button)

with the current situation  if i create a loop timer or any other it may turn off the device after 2 minutes as the timer is not counting from the state change.


21 people like this idea

The inching feature works great when you ALWAYS want the "light" to turn off in x minutes. But...

I use a motion sensor to turn on the garage lights when passing through and inching will auto turn them off. Cool. However sometimes we need to work in the garage and want to turn the lights on indefinitely until I turn them off...inching does not allow this. My garage lights are controlled by Sonoff 3-gang smart switch witch does NOT have the Loop Timer option so the only solution seems to be inching, but again that doesn't allow manually keeping the light on.

Has anyone found a solution to this scenario?

The scenarios should be:

1. motion detector turns lights on, then off after 5 min.

2. manual smart switch turns light on and stays on till turned off manually or by a scene.


2 people like this
Hi guys Good new. On my devices wich updated on v2.7, there is a new feature on parameters called "inch". That feature do the work. Sorry that not all my devices can have this great update. There is a little bug: it's written that time is in seconds. In fact, it's in ms. But it works correctly.

2 people like this
 I think this can be "sort off" done by using loop timer, i.e. to set count down to turn off "after 1 hour after turn on" by:

1) set loop timer to turn "off" after 1 hours and 0 minutes in "start in status".  2) unselect "after" to blank out "change status to:".  3) select "Complete" to save.     You can test it with lower time duration.  However the timer is not accurate, it normally turn off earlier.   This is my main use for my Sonoff T1 and basic.

1 person likes this

I too am looking for this feature. I currently have 4 sonoff switches that I would like to be able to set timers for each switch, 60 min. 90 min. , 120 min. on a tablet behind the bar at my legion to control the 8-ball table lights. Patrons would pay at the bar for how much time they wanted and the bar steward would be able to just push the appropriate button. or even voice control it through say Google, etc. etc. The lights would come on and would go off after the time lapsed. Clean, simple and functional. This was the reason I purchased these in the first place. What would we be looking at for a timeline on this kind of functionality?

1 person likes this

I think all the terminology each user is posting, the lack of screen shots of both IOS and android apps, the lack of users adding what firmware they are on, plus the updates to the various firmware means this forum is completely lost.  "When I turn on the device" and "switch off the fan" is useless to anyone. Im sure users who require different functionality end up on the same forum post, all conflicting each other as well. We need one intelligent user to think through how its best to post the question, eliminating the above confusions. You would need to create a video, or a flow chart with the complexities of each user or automated interaction, all seperated. I've built a couple for robot automation systems, but it takes time, plus you'll need a footnote explaining what the terminology means within the flowchart.

1 person likes this

I just posted an detailled answer, with informations in french about each of timers and with screenshot, but I don't see its publication.

It's a hassle to write it again. So, shortly, just use the INCHING parameter and don't care about other fonctions for your application. Leave them without programation.

1 person likes this
I want this feature for Sonoff pow r2. I want my water heater to turn off automatically after 40 minutes or so once it is turned on manually with the built in push button switch. At the same time, I want scheduled on off timer to start the heater every day at a particular time like 6:00 am. Please do it.

1 person likes this
Unfortunately the loop timer need a start time, then it will turn off at that time past every hour. Just wired in three to my heating system in the hope this would work, painfully not :(

1 person likes this

Thanks HOA for the countdown settings.

I tried both the above but it doesnt work for me.

I have the latest firmware.

My EweLink for my lights I want to turn off after set time has dates as well as times in the loop settings.

 If only the countdown timer page allowed you to grey out the date bit it would be perfect.

1 person likes this
That’s a crime.

1 person likes this


I'd like to be abble to have a simple count-down timer, i.e when I turn ON the device output, that automaticaly turns OFF after a fixed time.

The existing timer feature have to be enabled at each run and it's very inconfortable.

I'm currently using wall  switches, Wifi Bridges, POW R2 and smart switches and so need this features for all those.

At this time, I'm using time schedule features to turn OFF each 5min  but if I turn ON near off a scheduled time, it turns off near immediatly.


1 person likes this


I do indeed support this idea.

What I would like to see is that for example with the Sonoff touch, you can program it via the app so that when you switch on a light, a count down timer starts and after for example 2 min the light turns off.

This would be useful in a restroom for example.

By allowing you to program it once via the app, you eliminate the need to setup the timer each time you want to use the switch.

1 person likes this

I have solved with the command "PulseTime" with the firmware tasmota... but i really need the cloud service because i get NAT ip addresses from my isp

1 person likes this
You cannot use a Sonoff as a count down timer. Simply, they have made it that way so that you cannot do it. For last 3 years users have wanted this simple timer function but Sonoff took oath that they won't add this simple timer feature. Inching function is less than 1hour. So called Loop Timer function may be used however, the delay time you set doesn't work correctly. At least the count down time is one minute less than the the set time. Also this time delay is random. So, I have made a a delay timer myself with 4060 IC and added with the Sonoff. But the circuit is built outside the Sonoff enclosure since the Sonoff enclosure is small. I built the count down timer circuit since I needed that feature for my Geyser ( water heater) controller. You can also purchase a Chinese Universal timer (US$ 15 or so) and attach that with the Sonoff device for count down timer. This is all about Sonoff timer.

More info required. Ive tried to interpret what you have done but I cant make it countdown using scenes etc. Can only make it work with the 1hr timer in settings. I need 2 hours to off after turning om.

Login or Signup to post a comment