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

[Wrong device]: AVATTO 1/2/3 Gang Tuya Zigbee Light Switch Module No Neutral Wire #20162

Closed
mrmaximas opened this issue Dec 11, 2023 · 21 comments

Comments

@mrmaximas
Copy link

mrmaximas commented Dec 11, 2023

Link

https://aliexpress.ru/item/1005003108226482.html

Model

LZWSM16-1 LZWSM16-2 LZWSM16-3

Description

Switch Module No Neutral Wire

Vendor

AVATTO

Picture (link)

https://ae04.alicdn.com/kf/Sf349a5bd87aa43439c30ebbf0b957ec9T.jpg_640x640.jpg
https://ae04.alicdn.com/kf/Sf0be5ca650fe449eab4fda802c3df6d7h.jpg_640x640.jpg
https://ae04.alicdn.com/kf/S5c4f3d2ec3f4467ebd2bcc99fcee7261q.jpg_640x640.jpg

Database entry for 2 Gang

"id":51,"type":"EndDevice","ieeeAddr":"0xa4c13878f40e0e4c","nwkAddr":21543,"manufId":4417,"manufName":"_TZ3000_kpatq5pq","powerSource":"Mains (single phase)","modelId":"TS0012","epList":[1,2],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,57344,57345,0],"outClusterList":[25,10],"clusters":{"genOnOff":{"attributes":{"onOff":1,"onTime":0,"offWaitTime":0,"moesStartUpOnOff":1}},"genBasic":{"attributes":{"65534":0,"stackVersion":0,"manufacturerName":"_TZ3000_kpatq5pq","zclVersion":3,"appVersion":68,"modelId":"TS0012","powerSource":3}},"manuSpecificTuya_3":{"attributes":{"switchType":0}},"manuSpecificBosch":{"attributes":{"53251":"AAAAAgAA"}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1}],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[4,5,6],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":1,"onTime":0,"offWaitTime":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1794938824},"lastSeen":1701158961849,"defaultSendRequestWhen":"immediate"}

Database entry for 3 Gang

{"id":52,"type":"EndDevice","ieeeAddr":"0xa4c138131fb22333","nwkAddr":35960,"manufId":4417,"manufName":"_TZ3000_sznawwyw","powerSource":"Mains (single phase)","modelId":"TS0013","epList":[1,2,3],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,57344,57345,0],"outClusterList":[25,10],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0,"moesStartUpOnOff":2}},"genBasic":{"attributes":{"65506":55,"65508":1,"65534":0,"stackVersion":0,"dateCode":"","manufacturerName":"_TZ3000_sznawwyw","zclVersion":3,"appVersion":68,"modelId":"TS0013","powerSource":3}},"manuSpecificTuya_3":{"attributes":{"switchType":0}},"manuSpecificBosch":{"attributes":{"53251":"AAAAAgAABAAA"}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1}],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[4,5,6],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1}],"configuredReportings":[],"meta":{}},"3":{"profId":260,"epId":3,"devId":256,"inClusterList":[4,5,6],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-1331047771},"lastSeen":1701159663315,"defaultSendRequestWhen":"immediate"}

Notes

I have 2 and 3 gang of this relays, 1-gang in transit.
This devices mistakenly recognised as
https://www.zigbee2mqtt.io/devices/TS0012.html
https://www.zigbee2mqtt.io/devices/TS0013.html

Devices must be recognized like this, but my relays are in a slightly different housing and there may be differences in the clusters:
https://www.zigbee2mqtt.io/devices/TS0012_switch_module.html
https://www.zigbee2mqtt.io/devices/TS0013_switch_module.html

@Koenkk
Copy link
Owner

Koenkk commented Dec 11, 2023

Fixed! (pictures will be correct after the next release)

Changes will be available in the dev branch in a few hours from now.

@Koenkk Koenkk closed this as completed Dec 11, 2023
@mrmaximas
Copy link
Author

mrmaximas commented Dec 20, 2023

@Koenkk arrived 2-gang new variant _TZ3000_ljhbw1c9 of LZWSM16-2 (detected as wrong type https://www.zigbee2mqtt.io/devices/TS0012.html)
Unfortunately, I forgot to order the 1-gang as promised.

{"id":66,"type":"EndDevice","ieeeAddr":"0xa4c138e3c5694c0b","nwkAddr":24142,"manufId":4417,"manufName":"_TZ3000_ljhbw1c9","powerSource":"Mains (single phase)","modelId":"TS0012","epList":[1,2],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,57344,57345,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"H\u0000\u0000\u0000\u0012\u0001\u0000\u0000\u0000\u0011\u0000\u0000\u0000\u0000\u0011","65506":55,"65508":0,"65534":0,"modelId":"TS0012","manufacturerName":"_TZ3000_ljhbw1c9","powerSource":3,"zclVersion":3,"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":""}},"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0,"moesStartUpOnOff":0,"tuyaBacklightMode":1}},"manuSpecificBosch":{"attributes":{"53251":"AAAAAgAA"}},"manuSpecificTuya_3":{"attributes":{"switchType":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1}],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[4,5,6],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1794938824},"lastSeen":1703105354632,"defaultSendRequestWhen":"immediate"}

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

Koenkk commented Dec 21, 2023

Fixed.

Changes will be available in the dev branch in a few hours from now.

@mrmaximas
Copy link
Author

Fixed.

Changes will be available in the dev branch in a few hours from now.

Thanks. I just tried to update dev version of Zigbee2MQTT, but I get this message

  • [new branch] deps/zigbee-herdsman-converters -> origin/deps/zigbee-herdsman-converters
    while the Zigbee2MQTT version remains the same.
    1.34.0-dev commit: 27ccd1a
    Frontend version
    0.6.149
    Zigbee-herdsman-converters version
    16.15.0
    Zigbee-herdsman version
    0.27.1
    I see that Zigbee-herdsman-converters version 16.15.1 is not installed.
    Is it possible to update individual components, namely zigbee-herdsman-converters ?
    if yes, what is the right way to do it?

@Koenkk
Copy link
Owner

Koenkk commented Dec 22, 2023

In the z2m folder, execute npm i zigbee-herdsman-converters@16.15.1

@mrmaximas
Copy link
Author

mrmaximas commented Dec 22, 2023

In the z2m folder, execute npm i zigbee-herdsman-converters@16.15.1

Thanks! I tried this, updated zigbee-herdsman-converters to 16.15.1 but _TZ3000_ljhbw1c9 is still visible as https://www.zigbee2mqtt.io/devices/TS0012.html.
Screenshot 2023-12-22 at 10 58 22
Screenshot 2023-12-22 at 10 59 24

@Koenkk
Copy link
Owner

Koenkk commented Dec 22, 2023

Pushed another fix.

Changes will be available in the dev branch in a few hours from now.

@mrmaximas
Copy link
Author

@Koenkk 🙏🏻

@mrmaximas
Copy link
Author

mrmaximas commented Dec 26, 2023

pictures will be correct after the next release

@Koenkk forgot about pictures for _TZ3000_ljhbw1c9 type (# 8,9,11 for me) ;-)
Screenshot 2023-12-26 at 17 16 04

@Koenkk
Copy link
Owner

Koenkk commented Dec 26, 2023

Pictures will be updated after the next release (1 January)

@mrmaximas
Copy link
Author

mrmaximas commented Dec 28, 2023

@Koenkk sniffed for LZWSM16-2 aka _TZ3000_ljhbw1c9 (AVATTO 2-Gang Tuya Zigbee Light Switch Module No Neutral Wire)
https://drive.google.com/file/d/14OmGcs2_N6uPl9SU_TfxB2CnwftGiRZh/view?usp=share_link
found button type attribute 0xd030 53296 - value 0/1/2 toggle/state/momentary. changed in SL app from 0 to 1, then 1 to 2, then 2 to 0. check me out. It's strange that this attribute is not visible in the interview. is it a bug or a feature?
thnks

@mrmaximas
Copy link
Author

mrmaximas commented Dec 28, 2023

i'm using master branch right now because the latest dev won't start for me {"id":39,"type":"EndDevice","ieeeAddr":"0xa4c1387232c6fd35","nwkAddr":37366,"manufId":4417,"manufName":"_TZ3000_ljhbw1c9","powerSource":"Mains (single phase)","modelId":"TS0012","epList":[1,2],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,57344,57345,0],"outClusterList":[25,10],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0,"moesStartUpOnOff":0,"tuyaBacklightMode":1}},"manuSpecificBosch":{"attributes":{"53251":"AAAAAgAA"}},"manuSpecificTuya_3":{"attributes":{"switchType":0}},"genBasic":{"attributes":{"65534":0,"modelId":"TS0012","manufacturerName":"_TZ3000_ljhbw1c9","powerSource":3,"zclVersion":3,"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1}],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[4,5,6],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1794938824},"lastSeen":1703722212387,"defaultSendRequestWhen":"immediate"}

@Koenkk
Copy link
Owner

Koenkk commented Dec 28, 2023

@mrmaximas what is the cluster for the switch type? If it's 0xe001/57345 it should already work.

@mrmaximas
Copy link
Author

it should already work.

yes! it's works for me. I just don't understand when this parameter appeared, is it today? or was it previously? ;-)

@mrmaximas
Copy link
Author

works on LZWSM16-2 and LZWSM16-3, i think should be works on LZWSM16-1

@Koenkk
Copy link
Owner

Koenkk commented Dec 28, 2023

What's the data/database.db entry of the LZWSM16-1?

@mrmaximas
Copy link
Author

What's the data/database.db entry of the LZWSM16-1?

sorry, i don't have this model now ;-(

@mrmaximas
Copy link
Author

@Koenkk I've been using latest dev branch for the year. After some update, the mains powered end device _TZ3000_ljhbw1c9 aka https://www.zigbee2mqtt.io/devices/LZWSM16-2.html are shown as battery powered.

Screenshot 2024-07-16 at 14 50 39
Screenshot 2024-07-16 at 17 01 40

@mrmaximas
Copy link
Author

old DB Entry (from backup)

{"id":39,"type":"EndDevice","ieeeAddr":"0xa4c1383d38c8b288","nwkAddr":4788,"manufId":4417,"manufName":"_TZ3000_ljhbw1c9","powerSource":"Mains (single phase)","modelId":"TS0012","epList":[1,2],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,57344,57345,0],"outClusterList":[25,10],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0,"moesStartUpOnOff":2}},"manuSpecificBosch":{"attributes":{"53251":"AAAAAgAA"}},"manuSpecificTuya_3":{"attributes":{"switchType":2}},"genBasic":{"attributes":{"65503":"\u0000\u0000\u0000\u0000\u0011","65506":55,"65508":0,"65534":0,"modelId":"TS0012","manufacturerName":"_TZ3000_ljhbw1c9","powerSource":3,"zclVersion":3,"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":""}},"genOta":{"attributes":{"currentFileVersion":68}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1}],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[4,5,6],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1324213189},"lastSeen":1711416570099}

Current DB Entry:
{"id":39,"type":"EndDevice","ieeeAddr":"0xa4c1383d38c8b288","nwkAddr":4788,"manufId":4417,"manufName":"_TZ3000_ljhbw1c9","powerSource":"Battery","modelId":"TS0012","epList":[1,2],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,57344,57345,0],"outClusterList":[25,10],"clusters":{"57344":{"attributes":{"53251":"AAAAAgAA"}},"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0,"moesStartUpOnOff":0}},"manuSpecificBosch":{"attributes":{"53251":"AAAAAgAA"}},"manuSpecificTuya_3":{"attributes":{"switchType":2}},"genBasic":{"attributes":{"65503":"\u0000\u0000\u0000\u0000\u0011","65506":55,"65508":0,"65534":0,"modelId":"TS0012","manufacturerName":"_TZ3000_ljhbw1c9","powerSource":3,"zclVersion":3,"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":""}},"genOta":{"attributes":{"currentFileVersion":68}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1},{"cluster":0,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1}],"configuredReportings":[{"cluster":0,"attrId":0,"minRepIntval":60,"maxRepIntval":600,"repChange":0,"manufacturerCode":null}],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[4,5,6],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":0,"onTime":0,"offWaitTime":0}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b002a1aa3c4","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":68,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":332242049},"lastSeen":1721140148447}

Please fix it. Thanks!

@Koenkk
Copy link
Owner

Koenkk commented Jul 18, 2024

Could you try to reconfigure the device via the frontend and restart z2m?

@mrmaximas
Copy link
Author

mrmaximas commented Jul 19, 2024

@Koenkk I've done this many times - I've re-configured and re-paired through the gui.
upd. re-configuration fix my issue 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants