JohanBendz / com.tuya.zigbee

MIT License
67 stars 127 forks source link

Device Request - Zigbee 5 Gang Switch - _TZE200_jwsjbxjs/ TS0601 #694

Open shahzadsk opened 10 months ago

shahzadsk commented 10 months ago

Prerequisites:

Device Name: 5 Gangway Zigbee Switch Device Model: TS0601 Device Description: 5 gang way zigbee switch with on/off (for example lights), appears to be similar to Link to device image: [Provide the URL to an image/photo of the device]

Device Interview:

"ids": { "modelId": "TS0601", "manufacturerName": "_TZE200_jwsjbxjs" }, "endpoints": { "endpointDescriptors": [ { "endpointId": 1, "applicationProfileId": 260, "applicationDeviceId": 81, "applicationDeviceVersion": 0, "_reserved1": 1, "inputClusters": [ 4, 5, 61184, 0 ], "outputClusters": [ 25, 10 ] }, { "endpointId": 242, "applicationProfileId": 41440, "applicationDeviceId": 97, "applicationDeviceVersion": 0, "_reserved1": 0, "inputClusters": [], "outputClusters": [ 33 ] } ], "endpoints": { "1": { "clusters": { "groups": { "attributes": [ { "acl": [ "readable", "reportable" ], "id": 0, "name": "nameSupport", "value": { "type": "Buffer", "data": [ 0 ] }, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65533, "name": "clusterRevision", "value": 2, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } } ] }, "scenes": { "attributes": [ { "acl": [ "readable", "reportable" ], "id": 0, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 1, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 2, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 3, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 4, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65533, "name": "clusterRevision", "value": 2, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } } ] }, "basic": { "attributes": [ { "acl": [ "readable", "reportable" ], "id": 0, "name": "zclVersion", "value": 3 }, { "acl": [ "readable", "reportable" ], "id": 1, "name": "appVersion", "value": 70 }, { "acl": [ "readable", "reportable" ], "id": 2, "name": "stackVersion", "value": 0 }, { "acl": [ "readable", "reportable" ], "id": 3, "name": "hwVersion", "value": 1 }, { "acl": [ "readable", "reportable" ], "id": 4, "name": "manufacturerName", "value": "_TZE200_jwsjbxjs" }, { "acl": [ "readable", "reportable" ], "id": 5, "name": "modelId", "value": "TS0601" }, { "acl": [ "readable", "reportable" ], "id": 6, "name": "dateCode", "value": "" }, { "acl": [ "readable", "reportable" ], "id": 7, "name": "powerSource", "value": "mains" }, { "acl": [ "readable", "writable", "reportable" ], "id": 65502 }, { "acl": [ "readable", "reportable" ], "id": 65533, "name": "clusterRevision", "value": 2 }, { "acl": [ "readable", "reportable" ], "id": 65534, "name": "attributeReportingStatus", "value": "PENDING" }, { "acl": [ "readable", "reportable" ], "id": 65506 }, { "acl": [ "readable", "reportable" ], "id": 65507 } ] } }, "bindings": { "ota": { "attributes": [ { "acl": [ "readable" ], "id": 0 }, { "acl": [ "readable" ], "id": 1 }, { "acl": [ "readable" ], "id": 2 }, { "acl": [ "readable" ], "id": 3 }, { "acl": [ "readable" ], "id": 4 }, { "acl": [ "readable" ], "id": 5 }, { "acl": [ "readable" ], "id": 6 }, { "acl": [ "readable" ], "id": 7 }, { "acl": [ "readable" ], "id": 8 }, { "acl": [ "readable" ], "id": 9 }, { "acl": [ "readable" ], "id": 65533, "name": "clusterRevision", "value": 3 } ] }, "time": { "attributes": [ { "acl": [ "readable" ], "id": 65533, "name": "clusterRevision", "value": 1 } ] } } }, "242": { "clusters": {}, "bindings": {} } } }

Additional Comments: Bought from same place as the one gang switch - 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-midnight-black-sparkelec-sws5tz-black.html

How to interview a device:

Note: To be able to add more devices to the Tuya Zigbee app, we rely on community members like you to provide interviews of the devices you want added. Thank you for your contribution!

shahzadsk commented 1 month ago

Awesome @JohanBendz did some initial testing - appears to work. Will do some more testing and report back (e.g. around setting up as parallel switches, response times, etc)

Only comment - looking at the code is that line 129 in device.js should say "5 Gang Wall Switch removed"

JohanBendz commented 1 month ago
@shahzadsk Can you restart the app and test the buttons in this order and then send a diagnostic report please. Button Position Action Expected Result Status
Button 1 (Top Left) Press On Homey shows Button 1 is ON
Button 1 (Top Left) Press Off Homey shows Button 1 is OFF
Button 2 (Top Center) Press On Homey shows Button 2 is ON
Button 2 (Top Center) Press Off Homey shows Button 2 is OFF
Button 3 (Top Right) Press On Homey shows Button 3 is ON
Button 3 (Top Right) Press Off Homey shows Button 3 is OFF
Button 4 (Bottom Left) Press On Homey shows Button 4 is ON
Button 4 (Bottom Left) Press Off Homey shows Button 4 is OFF
Button 5 (Bottom Center) Press On Homey shows Button 5 is ON
Button 5 (Bottom Center) Press Off Homey shows Button 5 is OFF
Button 6 (Bottom Right) Press On Homey shows Button 6 is ON
Button 6 (Bottom Right) Press Off Homey shows Button 6 is OFF
shahzadsk commented 1 month ago

@JohanBendz worked as expected (note that this is for 5 gang test) so I just did the above for 5 gang switch - followed 1 through 5 (switching each one on and then off).

Diag Report ID: 4eab9372-26b0-4578-9e85-42f7ca298d73

Also is it possible to add toggle option on the flow card as a capability for these devices (similar to what is available for 1 gang)? I want to create a flow to “bind” to an actual 1 gang to operate as a two-way switch.

JohanBendz commented 1 month ago

"is it possible to add toggle option on the flow card" I'll have a look at this.