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

Fixed sensor reset #160

Merged
merged 6 commits into from
Aug 29, 2024
Merged

Fixed sensor reset #160

merged 6 commits into from
Aug 29, 2024

Conversation

JELoohuis
Copy link
Collaborator

@JELoohuis JELoohuis commented Aug 16, 2024

- Fixed sensor reset
Some sensors never send an end signal, leaving the alarm perpetually triggered.
A setting has been added to allow timeouts to end sensor alarms without an end signal.
This setting is automatically set when adding motion or smoke sensors based on their specification.
Since contact sensors use a boolean it is not possible to do this.

lib/TuyaTimeOutAlarmDevice.ts Outdated Show resolved Hide resolved
lib/TuyaTimeOutAlarmDevice.ts Outdated Show resolved Hide resolved
lib/TuyaTimeOutAlarmDevice.ts Outdated Show resolved Hide resolved
@bobvandevijver
Copy link
Collaborator

bobvandevijver commented Aug 27, 2024

@JELoohuis I added a initialiser for the alarms when not set, or to reset them when the app is started and the configured timeout setting is set. Seems to work great with the motion sensor devices I have here.

@bobvandevijver
Copy link
Collaborator

Rebased again: I moved the tamper alarm implementation to #187, but kept the alarm initialisation updates here.

@bobvandevijver bobvandevijver added the bug Something isn't working label Aug 28, 2024
@bobvandevijver bobvandevijver added this to the Release 1.3.0 milestone Aug 28, 2024
@bobvandevijver bobvandevijver merged commit be1b23c into athombv:master Aug 29, 2024
3 checks passed
@bobvandevijver bobvandevijver deleted the fix-sensor-reset branch August 29, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants