-
Notifications
You must be signed in to change notification settings - Fork 740
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
[Device Support Request] SOC001 - Philips Contact sensor #3314
Comments
Is |
Yes it's bit number 2. But I went the v2 route as it was easier. I would have preferred this way initially. I didn't make a PR for it yet, I don't have any test : dev...mguaylam:zha-device-handlers:soc001 |
It is, IIRC there is no programmatic way to know if a device actually supports it. This is why we haven’t implemented it as a std entity yet. |
Just to clarify, the Hue sensor does NOT have an IAS Zone Cluster. The open/closed state is sent using There's a thread on Discord with more info on this device: https://discord.com/channels/330944238910963714/1292736317569896591 |
I think some tuya / LIDL motion sensors have it but last time i was triggering it ZHA have not the right logic for alarm / tamper so alarm is not being retested if temper status is changed in the same time frame. |
Copying my answer from the Discord thread: We could still do that for Tuya devices that explicitly support the attribute. |
Auto-closed with the PR, but reopening this for the discussion around the Hue-specific contact attribute/entity. |
Thanks for keeping it open. I think you mentioned that reconfiguration will be needed. Would that be enough to justify the breaking change anyway? Unless we could make some sort of version and discriminate current installations, you suggested :
That would be an awesome feature in quirk v2 with something like block entire cluster or entity generation for cases like the Sage doorbell sensor that has a % battery attribute but reports nothing at all. In the meantime, I would consider other options.
I like this one.
It's ugly but might give time to people to switch and avoid a hack down the years. Since people will need to re-add or reconfigure the device anyway, we just need to tell them somehow it will disappear one day but I don't know how we can do that. We would also need to tell them to not use the on_off. There was also this option you suggested with the least impact :
The hardest I guess, will also create a forever hack? Since we are producing new entities and require a reconfiguration or re-add of the device to make everything work properly anyway I think the LocalDataCluster route would be the most interesting until something more official handle it. |
Problem description
Signify released a while a go a contact sensor to extend their security product portfolio.
Unfortunately they almost exclusively putted all relevant attributes in their manufacturer cluster.
Good news is that the device seems to overall have a good behaviour continuing the reputation of Signify.
Solution description
Contact
Attribute: 0x0100
Data Type: 8-Bit Enumeration (0x30)
Uint8: 1 (0x01)
Last contact change (10th of a second)
Attribute: 0x0101
Data Type: 32-Bit Unsigned Integer (0x23)
Uint32: 0 (0x00000000)
Tamper
Attribute: 0x0102
Data Type: 8-Bit Enumeration (0x30)
Uint8: 0 (0x00)
Last tamper change (10th of a second)
Attribute: 0x0103
Data Type: 32-Bit Unsigned Integer (0x23)
Uint32: 12425 (0x00003089)
Screenshots/Video
Screenshots/Video
[Paste/upload your media here]
Device signature
Device signature
Diagnostic information
Diagnostic information
None
Logs
Logs
None
Custom quirk
Custom quirk
Additional information
Unfortunately the device does not respond it's attributes whatsoever, probably to make our life a little bit harder.
To discover the attributes, I iterated all attribute addresses and read them to get the following data :
But realised afterward that ebaauw did all the work here : dresden-elektronik/deconz-rest-plugin#7226
The text was updated successfully, but these errors were encountered: