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

Send state: off mqtt messages #141

Closed
neilenns opened this issue Jun 7, 2020 · 1 comment · Fixed by #142
Closed

Send state: off mqtt messages #141

neilenns opened this issue Jun 7, 2020 · 1 comment · Fixed by #142
Assignees

Comments

@neilenns
Copy link
Owner

neilenns commented Jun 7, 2020

Add support for sending state off messages via MQTT. A timer should get set/reset whenever motion is detected and after the timer expires a simple state: off message gets sent to the topic.

The delay before this gets sent should be configurable. Setting it to 0 should turn it off. Default should be something reasonable like 30 seconds or a minute.

@neilenns neilenns self-assigned this Jun 7, 2020
@neilenns
Copy link
Owner Author

neilenns commented Jun 7, 2020

This will also require a map to keep track of the timers for each of the different sent MQTT messages. Probably do a map based on the MQTT topic is easiest.

neilenns pushed a commit that referenced this issue Jun 7, 2020
neilenns pushed a commit that referenced this issue Jun 7, 2020
@neilenns neilenns mentioned this issue Jun 7, 2020
1 task
neilenns pushed a commit that referenced this issue Jun 7, 2020
* Add "state": "on" to the MQTT messages
Fixes #139

* Send state: off mqtt messages
Fixes #141

* Send state: off mqtt messages
Fixes #141

* 1.7.0

* Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant