-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pulstime - more than 3600sec? for Relay and Button #678
Comments
The pulse functionality uses the Ticker library that internally stores the data in a 32bits variable representing microseconds, that set the maximum value in around 71 minutes, that is why in ESPurna the max pulse time is limited to 60 minutes. See #141 . Changing this is possible but not trivial. |
@xoseperez Pulse timers used (until aaab65f) Edit: Manually set pulseTime for 114 minutes did work. |
@xoseperez Could the solution be time based? Switch on/off would add a one time schedule to switch off/on when the given amount of time had passed. I'd find this feature really useful. My use case is a metal halide lamp I use as a winter time "wake up" light. It uses 320W and also heats quite a lot so I need to have an automatic toggling it off. Sometimes I'd like to have it on for longer than an hour but I cannot just switch it back on as the metal halide lamp chemistry prevents it from turning on again before it has cooled down to a certain level. This takes around 20-30 minutes. |
I'm also interested in a pulse time longer than 60 minutes, for use cases such as charging battery powered devices for only a few hours and lamps turning off after a few hours. |
It would be. One approach that I was thinking about is to use internal counter to measure how long timer was running so far. Something like this is already implemented in Sming Core for usec timer: |
ref. #2139, also webui now implements pulse time as a string instead of a number (and obviously via mqtt, http api, raw relayTimeN setting) updated changelog to include this, both issues were missed initially (edit to fix github markup) |
Hello!
i use the Esp8266 with espurna Sonoff 4CH Firmware for light in my home.
i switch with a Key and Alexa, its run perfect.
My wish would be that the lamp switches itself off after 3 hours.
Unfortunately, I can only set delay at 3600sec.
Thanks for help!
The text was updated successfully, but these errors were encountered: