-
Notifications
You must be signed in to change notification settings - Fork 30
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
Prevent ZHA from creating the OnOff entity for remotes #289
Comments
No we shouldn’t be. This is a legacy artifact that we need to clean up at some point. |
Just to clarify, the issue here is that we create the We should consider if we want to prevent We can't remove the |
I am thinking we remove the hard coded hack in ZHA for this and replace it w/ v2 quirks that explicitly create the needed entities. Problem is... I don't have a handle on how many devices are doing this... |
While working on this issue zigpy/zha-device-handlers#3314, I learned that ZHA creates automatically an entity when it sees a contact device with an On/Off cluster. But since, at least my device, has only a client On/Off cluster, should ZHA creates an entity from it?
zha/zha/application/platforms/binary_sensor/__init__.py
Lines 167 to 172 in 701f575
The reasoning being that the ZCL says a client On/Off cluster has no attributes and that it should only transmit commands of the On/Off server cluster.
Meaning that this cluster has no attributes and does not support reporting by implying that. Creating an entity from it works because it does send commands when binding but there can't be reporting.
This is an issue because when the command fails to send, the device will not try to send it again. It's really meant to control another device like a lightbulb.
Also, I see the server attributes are defined in the client cluster but there should be none there since it's a client.
The text was updated successfully, but these errors were encountered: