Skip to content
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

Timer/pulse feature request #454

Closed
xoseperez opened this issue Jan 22, 2018 · 2 comments
Closed

Timer/pulse feature request #454

xoseperez opened this issue Jan 22, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request relay
Milestone

Comments

@xoseperez
Copy link
Owner

Originally reported by: treowayne (Bitbucket: treowayne, GitHub: Unknown)


First of all, I love the new timer features and the fact that you allowed the pulse timer to work for extended time periods.

First, let me explain my use case:
I have an ESP8266 connected to a magnetic switch on my basement door. I have Sonoffs attached to lights in the basement. When the door opens, the sensor module sends an MQTT message to my broker, which then signals the Sonoffs to turn on the lights. The pulse timer in the Sonoffs turns them off after half an hour. The sensor module sends an MQTT message every 60 seconds as long as the door is open.

This works great for short trips to the basement to grab items or run the laundry machines. It has one flaw when I go downstairs for an extended session of soldering or other "basement work." The pulse timer shuts the lights off every 30 minutes and then they turn back on in 1-59 seconds once the door trigger checks in with the MQTT broker again.

Is it possible to alter the pulse timer so that it shuts off x seconds after the most recent signal to turn on?

@xoseperez
Copy link
Owner Author

You are lucky, that's only one line of code :) I have pushed the change to de dev branch (commit 51298a6) in case you want to test it a provide feedback.

@xoseperez xoseperez added this to the 1.12.2 milestone Jan 24, 2018
xoseperez added a commit that referenced this issue Jan 24, 2018
@xoseperez xoseperez added enhancement New feature or request and removed bug major labels Jan 25, 2018
@xoseperez xoseperez self-assigned this Jan 26, 2018
@xoseperez
Copy link
Owner Author

Will be released with 1.12.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request relay
Projects
None yet
Development

No branches or pull requests

1 participant