-
Notifications
You must be signed in to change notification settings - Fork 503
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
Add Support for Thermostat Cluster 0x0201 and Bitron Thermostat 902010/32 #1003
Conversation
…0/32 A sensor type ZHAThermostat is created
Not sure. I think the thermostat should be exposed as a /lights resource. The state attributes of a /sensors resource are not (supposed to be) updatable. See |
I would like to have a thermostat in HomeKit that displays the current temperature and desired temperature. Also, it should be possible to modify the desired temperature and to enable/disable the scheduler. I did not consider a thermostat belonging to Anyway, I am happy to change the thermostat from |
Not happy so many non light devices become lights lately, guess it's really time to introduce the It will be hard in the future to clean it up once installations are out there which rely on a stable API. |
So the thermostat remains in I have moved the writable settings One question: The thermostat cluster only has reporting on the temperature attribute. How can I poll other attributes? The poll_manager.cpp only allows router nodes. This thermostat is a battery powered end device. |
Polling end-devices is tricky, first you need to find out when they poll (mac data request) the parent node for new data. Knowing when the end-device is awake and polls the parent is crucial. Just sending a request to an end-device will likely fail since requests are stored only for max. ~7 seconds on the parent. Do you have a sniffer available? |
@manup I'd welcome a better class than lights for other devices. Move all currently supported devices over to this new endpoint. Just communicate it in good time to allow us to add support |
This Bitron Thermostat does respond very well to commands. Reading and writing attributes takes several seconds but always succeeds. I just need to find the right place in the code to read the attributes every 5 minutes. Even missing some read requests would not do any harm. I don't have a sniffer. |
HomeKit doesn’t care about the resource - it doesn’t even know. Homebridge-hue does. For Moving the writeable |
That sounds similar to the Hue motion sensor, that seems to poll its parent every five seconds or so. What does the thermostat report for Receiver on when idle in the Node Info panel? And in the Power Descriptor (after you’ve read it using the leftmost of the two circles on the right of the node)? When it does turn the receiver off, it might be prudent to use |
As would I, preferably one that follows the ZigBee structure of node, endpoint, cluster, rather than having to re-assemble multiple resources for the same device using the mac address. This would however break compatibility with Hue apps, particularly with the likes of Alexa. I would probably remove deCONZ support from homebridge-hue and create a new homebridge-deconz. |
@ma-ca, did you also add support for CLIPThermostat? |
@ebaauw No, I just added a ZHAThermostat sensor type. |
I'm also missing |
They all exist, but I did not show them in the in first sensor description above (because I wanted to highlight the attributes that are specific to the thermostat). The full thermostat sensor looks like this:
|
Ah, cool. As I said: I don't yet have a thermostat, so I cannot see for myself :-( Did you look yet at homebirdge-hue v0.11.7? |
Would the work both the Deconz, Deconz REST API, adn Homebridge-Hue developers have put in to support the Bitron and Eurotronic zigbee thermostatic radiator valves (eg. supporting clusters, ZHAThermostat and CLIPThermostat) make any other thermostatic valve based on Zigbee HA 1.2 (example: https://www.plugwise.com/en_US/products/floor) also work with Deconz now ? |
Sorry, does deconz rest-api support the Eurotronic Spirit Zigbee by now...I tried to find out by reading this post but it is confusing me. Thank you for the information. Cheers |
Add Support for Thermostat Cluster
0x0201
and Bitron Thermostat 902010/32A sensor type
ZHAThermostat
is created with the following options in state and config:EDIT: moved writable settings from state to config.
Example sensor:
Rest API example commands:
Attributes (only a subset):
Commands Received (Client to Server):
Commands Generated (Server to Client):
Weekly Schedule format
Example:
@ebaauw would you be able to add thermostat to homebridge-hue?