Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.07k stars 1.67k forks source link

TS0601 rotary dimmer ( _TZE200_579lguh2) not consistently responding to commands #19082

Open London-prg opened 1 year ago

London-prg commented 1 year ago

What happened?

This is the same issue in #17214 which went stale and closed. Still not fixed even with latest dev branch Zigbee2MQTT Edge, although new commands are available for the backlight mode.

Zigbee rotary dimmer switch (same type as this), which is recognised in Zigbee2mqtt and shows the right functions, however it does not always respond to the commands sent. Same problem with Zigbee2mqtt Edge.

For example, changing the state to 'on' does not always turn the light on and have to click two or three times for it to respond. Same with turning the light off or changing brightness. This is not consistent either, as sometimes it does respond immediately when the command is sent. I have 7 of these same switches connected and all have the same issue. Other type of switches (TS110E) do not have this problem.

I also have a TuYa Zigbee hub, and when the swicthes are connected to that, the swicthes respond to every command. Sometimes there is a delay if I press them multiple times (~1s), but they always respond.

Device details: Device type: Router Zigbee Model: TS0601 Zigbee Manufacturer: _TZE200_579lguh2 Description: 1 gang smart dimmer Support status: Supported Manufacturer: TuYa Model: TS0601_dimmer_1 229322944-17c99a90-3c5d-4bba-a7e2-3d8fbe74933b

What did you expect to happen?

Light switch to respond to every command sent

How to reproduce it (minimal and precise)

Go to the device in Zigbee2mqtt Go to Exposes tab Click either 'On' or 'Off'

Zigbee2MQTT version

1.33.0-dev commit: 1190a34

Adapter firmware version

20230507

Adapter

Sonoff CC2652P

Debug log

Debug 2023-09-26 10:12:15Received MQTT message on 'zigbee2mqtt/Downstairs Hallway/set' with data '{"state":"ON"}'
Debug 2023-09-26 10:12:15Publishing 'set' 'state' to 'Downstairs Hallway'
Info 2023-09-26 10:12:15MQTT publish: topic 'zigbee2mqtt/Downstairs Hallway', payload '{"backlight_mode":"normal","brightness":225,"countdown":0,"device":{"applicationVersion":68,"dateCode":"","friendlyName":"Downstairs Hallway","hardwareVersion":1,"ieeeAddr":"0x9035eafffeb60602","manufacturerID":4098,"manufacturerName":"_TZE200_579lguh2","model":"TS0601_dimmer_1","networkAddress":46332,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"light_type":"led","linkquality":138,"max_brightness":255,"min_brightness":1,"power_on_behavior":"previous","state":"ON"}'
Info 2023-09-26 10:12:15MQTT publish: topic 'zigbee2mqtt/Downstairs Hallway/type', payload '{"light":"led"}'
Debug 2023-09-26 10:12:16Received MQTT message on 'zigbee2mqtt/Downstairs Hallway/set' with data '{"state":"OFF"}'
Debug 2023-09-26 10:12:16Publishing 'set' 'state' to 'Downstairs Hallway'
Info 2023-09-26 10:12:16MQTT publish: topic 'zigbee2mqtt/Downstairs Hallway', payload '{"backlight_mode":"normal","brightness":225,"countdown":0,"device":{"applicationVersion":68,"dateCode":"","friendlyName":"Downstairs Hallway","hardwareVersion":1,"ieeeAddr":"0x9035eafffeb60602","manufacturerID":4098,"manufacturerName":"_TZE200_579lguh2","model":"TS0601_dimmer_1","networkAddress":46332,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"light_type":"led","linkquality":138,"max_brightness":255,"min_brightness":1,"power_on_behavior":"previous","state":"OFF"}'
Info 2023-09-26 10:12:16MQTT publish: topic 'zigbee2mqtt/Downstairs Hallway/type', payload '{"light":"led"}'
Debug 2023-09-26 10:12:18Received MQTT message on 'zigbee2mqtt/Downstairs Hallway/set' with data '{"state":"ON"}'
Debug 2023-09-26 10:12:18Publishing 'set' 'state' to 'Downstairs Hallway'
Info 2023-09-26 10:12:18MQTT publish: topic 'zigbee2mqtt/Downstairs Hallway', payload '{"backlight_mode":"normal","brightness":225,"countdown":0,"device":{"applicationVersion":68,"dateCode":"","friendlyName":"Downstairs Hallway","hardwareVersion":1,"ieeeAddr":"0x9035eafffeb60602","manufacturerID":4098,"manufacturerName":"_TZE200_579lguh2","model":"TS0601_dimmer_1","networkAddress":46332,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"light_type":"led","linkquality":138,"max_brightness":255,"min_brightness":1,"power_on_behavior":"previous","state":"ON"}'
Info 2023-09-26 10:12:18MQTT publish: topic 'zigbee2mqtt/Downstairs Hallway/type', payload '{"light":"led"}'
Debug 2023-09-26 10:12:18Received Zigbee message from 'Downstairs Hallway', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":1,"dp":1}],"seq":1}' from endpoint 1 with groupID 0
Info 2023-09-26 10:12:18MQTT publish: topic 'zigbee2mqtt/Downstairs Hallway', payload '{"backlight_mode":"normal","brightness":225,"countdown":0,"device":{"applicationVersion":68,"dateCode":"","friendlyName":"Downstairs Hallway","hardwareVersion":1,"ieeeAddr":"0x9035eafffeb60602","manufacturerID":4098,"manufacturerName":"_TZE200_579lguh2","model":"TS0601_dimmer_1","networkAddress":46332,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"light_type":"led","linkquality":138,"max_brightness":255,"min_brightness":1,"power_on_behavior":"previous","state":"ON"}'
Info 2023-09-26 10:12:18MQTT publish: topic 'zigbee2mqtt/Downstairs Hallway/type', payload '{"light":"led"}'
Debug 2023-09-26 10:12:18Received Zigbee message from 'Downstairs Hallway', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":1,"dp":1}],"seq":257}' from endpoint 1 with groupID 0
Info 2023-09-26 10:12:18MQTT publish: topic 'zigbee2mqtt/Downstairs Hallway', payload '{"backlight_mode":"normal","brightness":225,"countdown":0,"device":{"applicationVersion":68,"dateCode":"","friendlyName":"Downstairs Hallway","hardwareVersion":1,"ieeeAddr":"0x9035eafffeb60602","manufacturerID":4098,"manufacturerName":"_TZE200_579lguh2","model":"TS0601_dimmer_1","networkAddress":46332,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"light_type":"led","linkquality":138,"max_brightness":255,"min_brightness":1,"power_on_behavior":"previous","state":"ON"}'
Info 2023-09-26 10:12:18MQTT publish: topic 'zigbee2mqtt/Downstairs Hallway/type', payload '{"light":"led"}'
Debug 2023-09-26 10:12:18Received Zigbee message from 'Downstairs Hallway', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,3,119],"type":"Buffer"},"datatype":2,"dp":2}],"seq":513}' from endpoint 1 with groupID 0
Info 2023-09-26 10:12:18MQTT publish: topic 'zigbee2mqtt/Downstairs Hallway', payload '{"backlight_mode":"normal","brightness":225,"countdown":0,"device":{"applicationVersion":68,"dateCode":"","friendlyName":"Downstairs Hallway","hardwareVersion":1,"ieeeAddr":"0x9035eafffeb60602","manufacturerID":4098,"manufacturerName":"_TZE200_579lguh2","model":"TS0601_dimmer_1","networkAddress":46332,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"light_type":"led","linkquality":138,"max_brightness":255,"min_brightness":1,"power_on_behavior":"previous","state":"ON"}'
Info 2023-09-26 10:12:18MQTT publish: topic 'zigbee2mqtt/Downstairs Hallway/type', payload '{"light":"led"}'
London-prg commented 1 year ago

Issue is still occurring sporadically - sometimes commands work, other times the on or off commands need to be repeated for the device to respond.

Vinndimon commented 1 year ago

I have the same issue. The dimmer may not respond to commands. It may also randomly turn on regardless of the power restoration settings.

London-prg commented 1 year ago

Just commenting to keep this live as there's no change

London-prg commented 11 months ago

Anyone else with a similar problem or solution?

London-prg commented 10 months ago

Still no change with the latest updates - these switches do not consistently respond. Might try Local Tuya addon as a temporary solution to get the lights to work consistently in the meantime

lbin8 commented 9 months ago

Same here with the TS0601_dimmer_1 (_TZE200_ip2akl4wv, model: Moes ZS-EUD_1gang). The device is paired, but after that, it does not respond to any command

London-prg commented 9 months ago

Just as an update - I get the same behaviour when using ZHA where the device does not respond consistently.

For now, my temporary solution is to use a Local Tuya fork which supports Zigbee gateways (https://github.com/xZetsubou/hass-localtuya). The TS0601 devices respond every time now.

However, this is not ideal as I still have Zigbee2mqtt running for my other devices. Hence would would be better if everything ran on Zigbee2mqtt.

Vinndimon commented 9 months ago

Support for this device was added in 1.21.1.

I saw some pull requests from @kirovilya that fixed several bugs with the dimmer. I hope he can help. @London-prg if you have the TuYa gateway, you may sniff the traffic between it and the dimmer.

London-prg commented 9 months ago

I may look into that at some point soon once I get a chance to read up on how to sniff the data, but probably would need some guidance to find what we need.

lbin8 commented 5 months ago

Still having the same issues with _TZE200_ip2akl4wv, model: Moes ZS-EUD_1gang