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

feat: Add occupancy timeout for Tuya IH012-RT01/ZMS-102 #8333

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

srett
Copy link

@srett srett commented Nov 17, 2024

As discussed in the referenced issue, add a safety timeout that would reset the occupancy of the mentioned PIR sensors if the recurring occupancy messages stop, and no clearance message was received.

@srett srett changed the title feat: Add occupancy timeout for Tuya IH012-RT01/ZMS-102 https://github.com/Koenkk/zigbee2mqtt/issues/24621 feat: Add occupancy timeout for Tuya IH012-RT01/ZMS-102 Nov 17, 2024
@srett
Copy link
Author

srett commented Nov 18, 2024

(Just fixed the linter issue with fromZigbee.ts, but ikea.ts was already broken)

@Koenkk
Copy link
Owner

Koenkk commented Nov 18, 2024

Could you add this to the modernExtend instead:

export function iasZoneAlarm(args: IasArgs): ModernExtend {
? Example how to use it:
iasZoneAlarm({zoneType: 'occupancy', zoneAttributes: ['alarm_1', 'tamper', 'battery_low']}),

@srett
Copy link
Author

srett commented Nov 19, 2024

Sure, looks doable, will hopefully get around to it next weekend.

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 this pull request may close these issues.

2 participants