question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TS0601 TRV exposes a lot of switches

See original GitHub issue

Someone 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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
itaverocommented, Feb 27, 2021

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.

0reactions
github-actions[bot]commented, Mar 30, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Moes Zigbee Smart Valve TS0601 in Home Assistant - YouTube
Winter is coming and you don't need to be John Snow to see it. Today I'll install and integrate in Home Assistant Tuya...
Read more >
TS0601 TRV not behaving : r/homeassistant - Reddit
My intention is to switch between off and auto (manual mode) triggered by Home assistant however the valve isn't behaving as expected. Here...
Read more >
Update Firmware - Tuya Developer
This topic describes how to deploy full or incremental updates to devices, which is used to deploy firmware updates to end devices via...
Read more >
Supported Devices - Zigbee2MQTT
Exposes. arrow_drop_down. Search. info. Zigbee curtain switch. BSEED. BSEED_TS0601_cover. - cover. Dual curtain/blind module. Lonsonho. TS130F_dual.
Read more >
Home Assistant | #AM43 #TS0601 #zigbee2mqtt #rollerblinds
Another use would be switching accent lights behind my TV to a couple flashes of color when a car pulls into the driveway...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found