-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
ZIGBEE tuya light switch (4 buttons) #4597
Comments
First of all thank you for your support! But there is a little problem, I'm using 4 button switch and the 4th button does not send indication to HA when I'm pressing on it physically. The rest of the buttons works fine. Again, thank you for your time and support 🙏 |
|
Of cours, I've try to reconfigure but I'm not sure how exactly... https://paste.ofcode.org/G8X62W5CA5KZiQKePUp9XM Hope it will help! |
Hey Koenkk Have you manage to fix it? |
|
|
Is the problem with model |
Yes, that the one. |
Can you provide the herdsman debug logging when pressing the 4th button? To enable herdsman debug logging, see https://www.zigbee2mqtt.io/information/debug.html#zigbee-herdsman-debug-logging |
OK I did it and than restarted the addon and I'm attaching the file after the changes. |
Can you point me to what is exactly generated when you click the 4th button? |
Thats the problem, when I'm pressing on the 4th button (physically) nothing happens on HA, the status stay the same, not llike the other buttons on the same switch... |
Normally a 4 gang Zigbee switch has 4 endpoints, each endpoint represents one gang. To have feedback for all endpoints reporting is setup on each endpoint. Unfortunately TuYa devices often deviate from this standard. In this case your device only has 1 endpoint (you see
To further investigate, you should check how this works with the original TuYa gateway:
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Yes, works ok with tuya hub.
I don't have a debugger, but I already bought it. When it arrives I will do it. |
I made a sniff The sequence is: 1 - Paring https://1drv.ms/u/s!AtfNPxDs_iedo85HPTjfYg79pM3DpQ?e=niGsQw Please see if it is enough or if I need to do anything else. Thanks |
@ARafaelSF cool that you've managed to sniff. Can you make 2 sniffs (one with TuYa hub and one with Z2M) which contain: pair of the device + wait 20 seconds + click on 3th gang, click on 4th gang. |
@Koenkk Here it is Attached are the two files, with cc5231 + Z2M and Tuya. When I did with tuya I turned off the cc2531 Pair of the device + wait 20 seconds + click on 3th gang (on and off), click on 4th gang (on and off) CC2531+Z2M - https://1drv.ms/u/s!AtfNPxDs_iedo85RY4-IInK5Yq6t_Q?e=7ysfjI Other information that may interest you. In Z2M the device looks like ok and I can controll all buttons. But it still doesn't get the status update if I press on the device. |
Can you update to the latest dev branch, and apply the changes from https://github.com/Koenkk/zigbee-herdsman-converters/pull/2137/files to devices.js Next pair the device with Z2M and sniff the traffic from it. Also make a sniff when controlling the 4 and 3th gang of this device and provide me the packet send (left column in wireshark "No.") |
I did as you asked. Update Z2M edge and change devices.js Here it sniff: https://1drv.ms/u/s!AtfNPxDs_iedo85sbVjO9AUz4FYBYw?e=Oe5V8w The sequence is: Nº 279 - Gang 3 - ON |
@ARafaelSF can you apply the changes from https://github.com/Koenkk/zigbee-herdsman-converters/pull/2137/files factory reset the device and pair it, do you get updates of the 4th gang now? See https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html on how to modify devices.js |
@Koenkk soyry, but I didn't understand how to do this part. I´m using hass.io. So as I understand it I need to use external_converters. I put this in yalm file external_converters:
And this file, in share\zigbee2mqtt\new_device.js https://1drv.ms/u/s!AtfNPxDs_iedo85utcxHK4UQiacmeA?e=tjwh8C But, my file is wrong, and I can´t fix it. Sorry for that kind of question, but can you help me? |
@ARafaelSF since you have an additional CC2531, probably easier to setup a bare metal environment by following: https://www.zigbee2mqtt.io/getting_started/running_zigbee2mqtt.html (you don't need to sniff anymore, just check if it works) |
It works The sequence of 4 buttons, On and Off, reporting do Mqtt. Thank you very much, |
@Koenkk Thank you very much vor your assistant! |
Hey @ARafaelSF how did you manage to fix the problem? |
My check was outside HA. |
Merged! Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html) |
@Koenkk Thanks, I can confirm that it works for me with the latest-dev branch |
I know this is an old thread, just curious if the fix is still only in the dev branch? I have the same device (or close to it) but with a different fingerprint _TZE200_1ozguk6x Btw, this was the only zigbee2mqtt was the only gateway to pick up my ZTS-US_3gang (it read it as ZTS-EU_3gang but close enough) |
What happened
What did you expect to happen
How to reproduce it (minimal and precise)
Debug info
Zigbee2MQTT version:
Adapter hardware: CC2531, CC2530, CC26X2R1, CC1352P-2, Conbee II
Adapter firmware version:
The text was updated successfully, but these errors were encountered: