TS0601 TRV exposes a lot of switches
See original GitHub issueSomeone filed a bug report for my Homebridge plugin ( itavero/homebridge-z2m#79 ) and I was very surprised to see that the switch
type was used in the Exposes information here.
It was especially strange to see a lot of switches all on the same endpoint and after looking at the Exposes docs on the Zigbee2MQTT website, I wonder of this information is according to “spec”.
The things that are being controlled (window_detection
, valve_detection
, away_mode
, auto_lock
) using these “switches” all seem to be related to the climate
device it exposes and I would have probably expected these to be part of features
of the climate
entry with type binary
.
On the other hand, my interpretation of what a “switch” is might be wrong, as I’ve always considered it to be something that turns on/off a device (like a light switch).
I think this is also the first device that I’ve come across that has the same type multiple times on a single endpoint. I wasn’t aware that this is expected. From a “programming” point of view it’s also not very convenient, perhaps even problematic. How is the software supposed to know how to distinguish these?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
I’ll try to scan through the other definitions in
devices.js
to see if there are more cases in which the exposes array contains entries that are pretty much identical. Based on that I’ll see if a can come up with a decent proposal.This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days