It would be nice to add a timer to the configuration menu.
And what kind of timer do you want? Once a day at a certain time? Once after a certain time has elapsed?
What do want the timer to do? Switch one relay? Switch all relays? Just send a MQTT message?
Having answered these questions think about the code needed to implement and do not forget the user input validation...
Feel free to supply a pull request ;-)
Personally i use the sonoff basic as a light switch. So a timer that switch on & off the light at certain times every day would be nice. At the moment i use crontab & mosquitto to a raspberry pi3.
Thanks for the response.
That's the correct way to go using an external manager like you do. I guess I leave it that way.
Now we already have I2C with a number of sensors. We can connect to I2C RTC (DS3231) and have a very good RTC, timer, alarms, real EEPROM for config and so on. And it will work even you loose or have not at all internet connection. Let it be!?
It's realized in Russian project. Code: https://drive.google.com/open?id=0B7YhCK2ZNsYYcjg4VHhsTlNJODQ
and video (in Russian) https://www.youtube.com/watch?v=0gjqXPSK4yE
I was actually about to start to look for timer functionality to turn something
on for X amount of time and then turn it off.
I'm happy to do this with an external manager (I'm using openhab), but haven't
yet done much looking to see the easiest way to do this.
If you can join the timing it is more perfect
Stand-alone device can be set when the time off
Do not add the host to do control
Are there any updates regarding this timer? Thanks.
ESPeasy has this in the code. You can program a little sketch there.
=> pro.... your device becomes more independent and even if your server is offline, it works
=> contra.... how are you go to keep this updated, with 40 devices all around?
already there, see the pulsetime command
I see a lot of resistance ;) before implementing a timer like

Since we have time from internet, the feature can work locally, on the device, and can be programmed with MQTT
eq,
AllTimer on/off (default off)
and eg.
Timer1:{Time:12:00, OnOff:(on/off/nop), Relay: 1, Replay:(on/off)}
Timer2:..... etc.
There could be eg. 8 timers
If Replay:off, this would be a one time action and after the first actionOnOff: should be set to nop
If someone wants to splash you can add days of the week ;)
ps. As we have access to the internet we have set the time correctly ... and if there is no internet .... nothing can be controlled, Sonoff-tasmota is useless ;)
By the way, Sonoff-Tasmota is a great, good job 馃憤 :)
network access != Internet access
On Tue, 24 Oct 2017, flexiti wrote:
I see a lot of resistance ;) before implementing a timer like
Since we have time from internet, the feature can work locally, on the device, and can be programmed with MQTT
eq,
AllTimer on/off (default off)
and eg.
Timer1:{Time:12:00, OnOff:(on/off/nop), Relay: 1, Replay:(on/off)}
Timer2:..... etc.
There could be eg. 8 timers
IfReplay:off, this would be a one time action
If someone wants to splash you can add days of the week ;)ps. As we have access to the internet we have set the time correctly ... and if there is no internet .... nothing can be controlled, Sonoff-tasmota is useless ;)
By the way, Sonoff-Tasmota is a great, good job 馃憤 :)
I feel sorry for everyone who has a network without internet access 馃槈
most of the time it's deliberate. It narrows the attack range.
On Tue, 24 Oct 2017, flexiti wrote:
I feel sorry for everyone who has a network without internet access 馃槈
I have timer request also. But it is a bit different timer I need. I want to have "maximum working time" timer. E.g. 4 hours. Just to have limit for devices that are not meant to be on 24/7.
Requirements:
optional:
I like to use default-on mode. It works fine with old light switches. You keep them on, and control light with sonoff, but you can always use hardware switch to control light or remove sonoff.
But... If something fails (power outage + server fails) when I on vacation etc I don't want my lights to be on for weeks.
Is it possible to get timer for maximum time on? You can use it for other purpose also.
I am also here for timer schedule request. I dont want to use external devices like Rpi or HA. Sonoff with tasmota works effect as a stand alone device, with alexa too. Why to spend extra on Rpi. I just wish there was a schedule feature...
Sam9s
Please read the wiki. Timers are implemented. This is a very old and close thread.
Thanks
ascillato, I dont need timer ... I know timer is there called pulstime, I need scheduling ... like the device should start on at certain time certain date and switch off certain time and date , with repeat schedule ..... I was able to find a fork of tasmota with schedule BUT looks like it works with MQTT. I dont want to run anything extra, just a scheduling feature with standalone tasmota on sonoff.
Hi
For timing in tasmota you have already implemented in the actual version:

Most helpful comment
already there, see the pulsetime command