Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TuYa TS0044_1 incorrect actions #17862

Closed
rouloy opened this issue Jun 1, 2023 · 25 comments
Closed

TuYa TS0044_1 incorrect actions #17862

rouloy opened this issue Jun 1, 2023 · 25 comments
Labels
problem Something isn't working

Comments

@rouloy
Copy link

rouloy commented Jun 1, 2023

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 rouloy added the problem Something isn't working label Jun 1, 2023
@Iroamstaff
Copy link

Same problem for me since the update

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Jun 2, 2023
@Koenkk
Copy link
Owner

Koenkk commented Jun 2, 2023

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)

@Soulfly999
Copy link

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

@roobbb
Copy link

roobbb commented Jun 4, 2023

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 (#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

@Koenkk
Copy link
Owner

Koenkk commented Jun 4, 2023

I pushed a good fix now (Koenkk/zigbee-herdsman-converters@df01d07)

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)

@jomuc
Copy link

jomuc commented Jun 5, 2023

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

@ElminsterAU
Copy link

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
Copy link

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

@Koenkk
Copy link
Owner

Koenkk commented Jun 7, 2023

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

@ElminsterAU
Copy link

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

@Anashost
Copy link

Anashost commented Jun 7, 2023

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.

@Soulfly999
Copy link

Soulfly999 commented Jun 7, 2023

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
Copy link

ElminsterAU commented Jun 8, 2023

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

@firstnamegit
Copy link

Thanks! working again after update.

@Anashost
Copy link

Anashost commented Jun 8, 2023

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

@tampiss
Copy link

tampiss commented Jun 8, 2023

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

@ElminsterAU
Copy link

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.

@Anashost
Copy link

Anashost commented Jun 8, 2023

@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
Copy link

tampiss commented Jun 8, 2023

@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

@Soulfly999
Copy link

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

@rouloy
Copy link
Author

rouloy commented Jun 8, 2023

New update fixed the problem

@roobbb
Copy link

roobbb commented Jun 11, 2023

Yes, it is working again even inside my docker environment 😎
Thank you very much 😀

@plevrier
Copy link

plevrier commented Jan 22, 2024

Since the laste update this seems to be an issue again? I have 2 of TS0044 switches and both not working any more. The only visible action in HA automation is "2_hold action" the others are gone.

Running on:
HA : 2024.1.4
MQTT : 6.4.0
Z2M : 1.35.1-1

Device info:
Tuya TS0044
ID : _TZ3000_vp6clf9d

image

@Bushrider
Copy link

Same problem here.
Actions are now labelled as 1_single 1_double etc...
Previous actions (single, double, hold) are still present but not working anymore.
Z2m version 1.35.2-1

@meifi
Copy link

meifi commented Feb 4, 2024

same problem here ... 1.35.2 @ HA Addon

Payload in infolog shows correct value but z2m action shows null / empty string

MQTT publish: topic 'zigbee2mqtt/EG Kinderzimmer', payload '{"action":"","battery":100,"last_seen":"2024-02-04T11:07:08+01:00","linkquality":57,"voltage":3000}'
Info 2024-02-04 11:07:08MQTT publish: topic 'zigbee2mqtt/EG Kinderzimmer/action', payload '4_single'

Ausgelöstes Ereignis (z.B. ein Aktivieren eines Tasters)
String ohne Inhalt("")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests