zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

TuYa TS0044_1 incorrect actions

Open rouloy opened this issue 3 years ago • 32 comments

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

rouloy avatar Jun 01 '23 16:06 rouloy

Same problem for me since the update

Iroamstaff avatar Jun 01 '23 23:06 Iroamstaff

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)

Koenkk avatar Jun 02 '23 07:06 Koenkk

So when we can get the fix for it? Need this to Open and Close my Covers 😅

Soulfly999 avatar Jun 03 '23 18:06 Soulfly999

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

roobbb avatar Jun 04 '23 10:06 roobbb

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)

Koenkk avatar Jun 04 '23 12:06 Koenkk

@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.

jomuc avatar Jun 05 '23 04:06 jomuc

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

ElminsterAU avatar Jun 07 '23 14:06 ElminsterAU

Reverting to the 1.31.0 docker image and it works again...

ElminsterAU avatar Jun 07 '23 14:06 ElminsterAU

@ElminsterAU can you check with the latest-dev tag?

Koenkk avatar Jun 07 '23 14:06 Koenkk

Yes, but only tomorrow. I'm just going to bed after re-enabling my ability to turn my lights off from there...

ElminsterAU avatar Jun 07 '23 14:06 ElminsterAU

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.

Anashost avatar Jun 07 '23 15:06 Anashost

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...

Soulfly999 avatar Jun 07 '23 16:06 Soulfly999

@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.

ElminsterAU avatar Jun 08 '23 04:06 ElminsterAU

Thanks! working again after update.

firstnamegit avatar Jun 08 '23 05:06 firstnamegit

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

Anashost avatar Jun 08 '23 09:06 Anashost

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

tampiss avatar Jun 08 '23 09:06 tampiss

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.

ElminsterAU avatar Jun 08 '23 10:06 ElminsterAU

@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,

Anashost avatar Jun 08 '23 10:06 Anashost

@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

tampiss avatar Jun 08 '23 11:06 tampiss

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

Soulfly999 avatar Jun 08 '23 13:06 Soulfly999