zigbee2mqtt
zigbee2mqtt copied to clipboard
Missing "hold" action for a single button of a double switch.
What happened?
First, thanks for this great piece of software. I'm using this kind of switch https://www.zigbee2mqtt.io/devices/LKWSZ211.html Device's page showing this info:
Manufacturer: Linkoze Model: LKWSZ211 Zigbee Model: TS0021 Zigbee Manufacturer: _TZ3210_3ulg9kpo
On the linked page, it shows the possible value is button_1_hold, meanwhile in HA it's missing from the possible values:
What did you expect to happen?
To have button_1_hold among other possibilities.
How to reproduce it (minimal and precise)
Add device to Z2M.
Zigbee2MQTT version
1.37.1
Adapter firmware version
6.10.3.0 build 297
Adapter
EZSP v8
Setup
HA Core and Z2M as standalone service alongside. RPi.
Debug log
No response
Hm, I've checked it myself, but I don't see the reason why it would be missing when it's declared here:
https://github.com/Koenkk/zigbee-herdsman-converters/blob/5f4d72c233486aa2f2a0eceea5f42ef19fbc3948/src/devices/tuya.ts#L896-L934
It appeared once I held the button 1 for 5+ seconds, which is a bit strange as I didn't have to do anything similar with the rest of the actions. Regardless, it's solved, so closing this.