-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[New device support]: 5 gang (tuya?) based switch #14369
Comments
You have to reverse engineer the datapoints of the different gangs. First update to z2m 1.28.0 and then use the following converter: https://gist.github.com/Koenkk/159904dbc760446e39091c4b14f10a9a
external_converters:
- ext_converter.js
Now toggle the switch (z2m frontend -> device -> exposes tab). With the current converter I expect that gang 1 gets triggered. So dp 1 = gang 1. To find the next gang change |
That worked a treat! Tried all 5 individually, and all 5 values triggered the 5 separate lights (both triggered on and off). |
@Tuttle13 what are the datapoints for all the swithces? I'm not sure what the other datapoints mean, to find out check https://www.zigbee2mqtt.io/advanced/support-new-devices/03_find_tuya_data_points.html#requirements-and-caveats |
So I need to do the process as described in your link with the Tuya app? What I did was as you suggested, I changed the data point from "1", to "2", then to "3", "4","5", and each time I ran that js in HA, it successfully triggered each of the 5 different lights on and off when clicking on/off in expose. Do I need more data than that? Edit: I can now add this single light switch (currently light no.5) to say my dashboard as a controllable switch - perfect! This allows me to automate etc. But just to reiterate what I’m hoping to do, I hope to have all 5 switches tied to this device. Otherwise, I presume I could create 5 of these .js files, one for each individual switch and add them this way? Edit: not sure if it helps, but when I set the switch for "5" on in expose, this is the log info I first get:
And when I switched it off, I got:
|
That's all I needed to know. Please check with the updated https://gist.github.com/Koenkk/159904dbc760446e39091c4b14f10a9a |
Solved: found a similar device you've previously supported and the missing ingredient was: Once I added that to first line of meta, all 5 seperate switches became functional (they were showing correct switch status, but weren't responding prior to this change) Not sure if this is going the right way about it, but the working code I am now using is:
|
Well found, added the device! 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) |
thanks again for your assistance with this, and hopefully it helps anyone else looking at these type of plugs here is Aus (or wlsewhere) |
Hi @Koenkk this has been working amazingly! The only left over issue is that I constantly get 3 DataPoint alerts, which I don’t care about, since all the switches are working. It doesn’t impact the gang switch operation, but it’s bloody annoying when using Z2M as it constantly pop’s up, and all 3 have to be cleared repeatedly. Is there any way to disable these, or add a line to ignore these datapoints? Screenshot attached of them |
Done! 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) |
Link
https://agmelectrical.com.au/home-automation-wifi-intercoms-smart-switches-and-power-points/sparkelec-touch-zigbee-wifi-switches-and-power-points/5-gang-smart-zigbee-touch-glass-wall-switch-off-white-sparkelec-sws5tz-white.html
Database entry
Model TS0601 IEEE: 0xa4c13883f126fce2 (0xC543) by _TZE200_jwsjbxjs
Comments
Hi, I can’t work out what to do either the data I have discovered on this device. It’s showing as “unsupported” even though it’s model is stated as a TS0601.
From my hours googling, I can’t find any previous support for this or any similar 5 gang switch.
I took screenshots of the data produced after creating a logger, first with the 5 switches off, then each of them all turned on, one by one. But I can’t recognise any real patters (maybe the DP value goes to 1-5?).
Have I missed a trick, or have I genuinely got a new and unsupported device?
I’m at a standstill and just have zero idea what to do next. Any help with making this device accessible in HA would be most appreciated! Thanks
External converter
No response
Supported color modes
No response
Color temperature range
No response
Taken with switches off:
Taken as I turned on each of the 5 switches:
The text was updated successfully, but these errors were encountered: