TuYa TS0044_1 incorrect actions
What happened?
Up until I updated my zigbee2mqtt docker today the actions where exactly the way they are described on here: https://www.zigbee2mqtt.io/devices/TS0044_1.html#tuya-ts0044_1
After the update it only exposes actions like "single" or "double" without any indication of the button I pressed.
What did you expect to happen?
The actions exposes should be consistent with the description page: https://www.zigbee2mqtt.io/devices/TS0044_1.html#tuya-ts0044_1
How to reproduce it (minimal and precise)
Latest Zigbee2mqtt docker running TuYa TS0044_1 connected Click any button
Zigbee2MQTT version
1.31.0 commit: f440c86
Adapter firmware version
20211217
Adapter
Electrolama zig-a-zig-ah!
Debug log
No response
Same problem for me since the update
Fixed!
Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)
So when we can get the fix for it? Need this to Open and Close my Covers 😅
Thank you very much for the fast fix and your great work.
As a workaround I tried to put the fixing code lines from above (https://github.com/Koenkk/zigbee2mqtt/issues/17862) into the file "/app/node_modules/zigbee-herdsman-converters/converters/fromZigbee.js". But it seems there is no changed behavior, even after full restart.
Is there any workaround available (better than my try 😅), wich we could set up till this fix gets into main branch? I would not like to switch to dev. If not, I can wait of course 😀
Thank you and kind regards
I pushed a good fix now (https://github.com/Koenkk/zigbee-herdsman-converters/commit/df01d077a944f139039054add18aeb08f68f252a)
Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)
@roobbb
Is there any workaround available (better than my try sweat_smile), wich we could set up till this fix gets into main branch? I would not like to switch to dev. If not, I can wait of course grinning
I changed the version for zigbee-herdsman-converters in package.json
"zigbee-herdsman-converters": "15.17.0",
then run
npm install
and finally
restart zigbee2mqtt service
Be aware, that you have to revert your change before using update.sh the next time.
My Z2M was just (half an hour ago) updated to 1.31.1 commit: 3572c60 and I'm now having exactly this problem.
all my TS0044 are now only giving me "single" instead of "1_single", "2_single", ... actions. And all my automations are broken.
the exact devices I have are:
Zigbee Model TS0044 Zigbee Manufacturer _TZ3000_wkai4ga5 Description Wireless switch with 4 buttons Manufacturer TuYa Model TS0044
Reverting to the 1.31.0 docker image and it works again...
@ElminsterAU can you check with the latest-dev tag?
Yes, but only tomorrow. I'm just going to bed after re-enabling my ability to turn my lights off from there...
Hey @Koenkk Just update to 1.31.1 and my switches that have been working for over 6 months stopped working.
Zigbee Model TS0041 Zigbee Manufacturer _TZ3000_itb0omhv
&
Zigbee Model TS0042 Zigbee Manufacturer _TZ3000_tzvbimpq
&
Zigbee Model TS0043 Zigbee Manufacturer _TZ3000_sj7jbgks
They still shows as supported, and shows the right model and image, but do not work at all.
Edit: I noticed that the switches are reporting state correctly (when i watch the state tap while i click) but automations doesn't work/trigger.
Rolling back to 1.31.0 fixes the issue.
Same for my TS0044_1 updated it for a hour to 1.31.1, restartet HA+Zigbee2mqtt but the buttons doesn't work. But the button actions are shown in my automation "1_single", "2_single" and so on...
@ElminsterAU can you check with the latest-dev tag?
@Koenkk I was just going to try it, but saw that you've released a new "latest" and "1.31.2" at the same time, so I just tried out the latest, which reports itself as 1.31.2 commit: 21f5125, and it seems to work correctly for me.
Thanks! working again after update.
Issue fixed in 1.31.2 Thanks
Zigbee Model TS0041 Zigbee Manufacturer _TZ3000_itb0omhv
&
Zigbee Model TS0042 Zigbee Manufacturer _TZ3000_tzvbimpq
&
Zigbee Model TS0043 Zigbee Manufacturer _TZ3000_sj7jbgks
Just curious, is the device TS0044 suppose to report 3 action types per button? I only get single and double but never get hold (instead single is returned).
Anyway after this update at least each button again returns the number.
Thanks. M
=== Zigbee Model TS0044 Zigbee Manufacturer _TZ3000_dziaict4
Just curious, is the device TS0044 suppose to report 3 action types per button? I only get single and double but never get hold (instead single is returned).
Anyway after this update at least each button again returns the number.
Thanks. M
=== Zigbee Model TS0044 Zigbee Manufacturer _TZ3000_dziaict4
it should and does.
make sure you hold the button until the green light turns off, then release. it should (and for me does) send the hold message then.
@tampiss have you tried to hold the button until its light turns off then immediately release? My TS0043, 42, 41 works that way.
I've TS0044 coming soon which i supposed they will work that way too, as the code in the converters page supports that as i see here:
zigbeeModel: ['TS0044'],
model: 'TS0044',
vendor: 'TuYa',
description: 'Wireless switch with 4 buttons',
whiteLabel: [
{vendor: 'Lonsonho', model: 'TS0044'}, {vendor: 'Haozee', model: 'ESW-OZAA-EU'},
{vendor: 'LoraTap', model: 'SS6400ZB'}, {vendor: 'Moes', model: 'ZT-SY-EU-G-4S-WH-MS'},
tuya.whitelabel('Moes', 'ZT-SR-EU4', 'Star Ring 4 Gang Scene Switch', ['_TZ3000_a4xycprs']),
tuya.whitelabel('TuYa', 'TS0044_1', 'Zigbee 4 button remote - 12 scene', ['_TZ3000_dziaict4']),
],
fromZigbee: [fz.tuya_on_off_action, fz.battery],
exposes: [e.battery(), e.action(['1_single', '1_double', '1_hold', '2_single', '2_double', '2_hold',
'3_single', '3_double', '3_hold', '4_single', '4_double', '4_hold'])],
toZigbee: [],
configure: tuya.configureMagicPacket,
@tampiss have you tried to hold the button until its light turns off then immediately release? My TS0043, 42, 41 works that way.
I've TS0044 coming soon which i supposed they will work that way too, as the code in the converters page supports that as i see here:
zigbeeModel: ['TS0044'], model: 'TS0044', vendor: 'TuYa', description: 'Wireless switch with 4 buttons', whiteLabel: [ {vendor: 'Lonsonho', model: 'TS0044'}, {vendor: 'Haozee', model: 'ESW-OZAA-EU'}, {vendor: 'LoraTap', model: 'SS6400ZB'}, {vendor: 'Moes', model: 'ZT-SY-EU-G-4S-WH-MS'}, tuya.whitelabel('Moes', 'ZT-SR-EU4', 'Star Ring 4 Gang Scene Switch', ['_TZ3000_a4xycprs']), tuya.whitelabel('TuYa', 'TS0044_1', 'Zigbee 4 button remote - 12 scene', ['_TZ3000_dziaict4']), ], fromZigbee: [fz.tuya_on_off_action, fz.battery], exposes: [e.battery(), e.action(['1_single', '1_double', '1_hold', '2_single', '2_double', '2_hold', '3_single', '3_double', '3_hold', '4_single', '4_double', '4_hold'])], toZigbee: [], configure: tuya.configureMagicPacket,
True. My fault. I did not wait long enough. Thank you. M
Same for my TS0044_1 updated it for a hour to 1.31.1, restartet HA+Zigbee2mqtt but the buttons doesn't work. But the button actions are shown in my automation "1_single", "2_single" and so on...
For me it is fixed now, thank you