zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

TuYa button switch sends "1_single" instead of "single" event

Open PontifexPrimus opened this issue 1 year ago • 7 comments

What happened?

After updating to 1.35.3-1 one of my switches stopped working. Checking the log showed that the events that were previously recorded as

Zigbee2MQTT:info 2024-02-11 09:31:47: MQTT publish: topic 'zigbee2mqtt/ZigBeeButton1/action', payload 'single'

were now logged as

Zigbee2MQTT:info 2024-02-11 09:31:47: MQTT publish: topic 'zigbee2mqtt/ZigBeeButton1/action', payload '1_single'

What did you expect to happen?

I had expected that the update would not change the payload and so make my automations not trigger.

How to reproduce it (minimal and precise)

It happened during the update to the latest version (1.35.3-1) without any manual intervention from me.

Zigbee2MQTT version

1.35.3-1

Adapter firmware version

zStack3x0

Adapter

SONOFF Zigbee 3.0 USB Dongle Plus

Setup

Add-on on home assistant running on a mini PC

Debug log

No response

PontifexPrimus avatar Feb 11 '24 08:02 PontifexPrimus

I have a similar issue with Smart Buttons TuYa IH-K663 and TuYa SH-SC07. Two new actions are now available: "1_single" and "1_double". Previous "single" and "double" are no longer working. In order for existing (or new) automations to work, "1_single" and "1_double" must be now used. Zigbee2mqtt documentation mentions the following values for actions: single, double, hold. image

matkes avatar Feb 11 '24 09:02 matkes

Additional information: zigbee model for the switch with the above listed behavior is TS0041, manufacturer _TZ3000_8rppvwda.

PontifexPrimus avatar Feb 11 '24 12:02 PontifexPrimus

Probably duplicate of #21301

seblu avatar Feb 11 '24 16:02 seblu

Should already be fixed in the dev branch

Koenkk avatar Feb 12 '24 20:02 Koenkk

No, it is not totally fixed. Single and double work, but hold sends a null.

NeoFax75 avatar Apr 07 '24 20:04 NeoFax75

could you provide the debug log of this with the latest dev branch?

See this on how to enable debug logging.

Koenkk avatar Apr 08 '24 09:04 Koenkk

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

github-actions[bot] avatar Oct 06 '24 00:10 github-actions[bot]