com.tuya.zigbee icon indicating copy to clipboard operation
com.tuya.zigbee copied to clipboard

Device Request - Tuya Smart Dimmer switch - _TZE200_p0gzbqct / TS0601

Open henkdeboom opened this issue 2 years ago • 6 comments

Can you please add support for this dimmer?

https://community.homey.app/t/app-pro-tuya-zigbee-app/26439/4185?u=henk_de_boom

henkdeboom avatar Sep 12 '23 15:09 henkdeboom

Just in case it is removed from the Homey Forum here is the interview

"ids": { "modelId": "TS0601", "manufacturerName": "_TZE200_p0gzbqct" }, "endpoints": { "ieeeAddress": "70:ac:08:ff:fe:d6:68:9c", "networkAddress": 54611, "modelId": "TS0601", "manufacturerName": "_TZE200_p0gzbqct", "endpointDescriptors": [ { "status": "SUCCESS", "nwkAddrOfInterest": 54611, "_reserved": 20, "endpointId": 1, "applicationProfileId": 260, "applicationDeviceId": 81, "applicationDeviceVersion": 0, "_reserved1": 1, "inputClusters": [ 0, 4, 5, 61184 ], "outputClusters": [ 25, 10 ] } ], "deviceType": "router", "receiveWhenIdle": true, "capabilities": { "alternatePANCoordinator": false, "deviceType": true, "powerSourceMains": true, "receiveWhenIdle": true, "security": false, "allocateAddress": true }, "extendedEndpointDescriptors": { "1": { "clusters": { "basic": { "attributes": [ { "acl": [ "readable", "reportable" ], "id": 0, "name": "zclVersion", "value": 3, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 1, "name": "appVersion", "value": 68, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 2, "name": "stackVersion", "value": 0, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 3, "name": "hwVersion", "value": 1, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 4, "name": "manufacturerName", "value": "_TZE200_p0gzbqct", "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 5, "name": "modelId", "value": "TS0601", "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 6, "name": "dateCode", "value": "", "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 7, "name": "powerSource", "value": "mains", "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "writable", "reportable" ], "id": 65502, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65533, "name": "clusterRevision", "value": 2, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65534, "name": "attributeReportingStatus", "value": "PENDING", "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65504, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65505, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65506, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65507, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } } ], "commandsGenerated": "UNSUP_GENERAL_COMMAND", "commandsReceived": "UNSUP_GENERAL_COMMAND" }, "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" } } ], "commandsGenerated": "UNSUP_GENERAL_COMMAND", "commandsReceived": "UNSUP_GENERAL_COMMAND" }, "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" } } ], "commandsGenerated": "UNSUP_GENERAL_COMMAND", "commandsReceived": "UNSUP_GENERAL_COMMAND" } }, "bindings": { "ota": {}, "time": { "attributes": [], "commandsGenerated": "UNSUP_GENERAL_COMMAND", "commandsReceived": "UNSUP_GENERAL_COMMAND" } } } } }

henkdeboom avatar Sep 12 '23 15:09 henkdeboom

https://www.aliexpress.com/item/1005005723573660.html?spm=a2g0o.order_list.order_list_main.5.23f418021i31Bn

Link to the MOES dimmer

henkdeboom avatar Sep 19 '23 11:09 henkdeboom

i got the rotary dimmer and it has the same _TZE200_p0gzbqct / TS0601

https://www.aliexpress.com/item/1005006054787238.html?spm=a2g0o.order_list.order_list_main.5.49ba1802hsMZrJ

just adding my interview to this as well...

"ids": { "modelId": "TS0601", "manufacturerName": "_TZE200_p0gzbqct" }, "endpoints": { "ieeeAddress": "a4:9e:69:ff:fe:e7:39:b9", "networkAddress": 28521, "modelId": "TS0601", "manufacturerName": "_TZE200_p0gzbqct", "endpointDescriptors": [ { "status": "SUCCESS", "nwkAddrOfInterest": 28521, "_reserved": 20, "endpointId": 1, "applicationProfileId": 260, "applicationDeviceId": 81, "applicationDeviceVersion": 0, "_reserved1": 1, "inputClusters": [ 0, 4, 5, 61184 ], "outputClusters": [ 25, 10 ] } ], "deviceType": "router", "receiveWhenIdle": true, "capabilities": { "alternatePANCoordinator": false, "deviceType": true, "powerSourceMains": true, "receiveWhenIdle": true, "security": false, "allocateAddress": true }, "extendedEndpointDescriptors": { "1": { "clusters": { "basic": { "attributes": [ { "acl": [ "readable", "reportable" ], "id": 0, "name": "zclVersion", "value": 3, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 1, "name": "appVersion", "value": 68, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 2, "name": "stackVersion", "value": 0, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 3, "name": "hwVersion", "value": 1, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 4, "name": "manufacturerName", "value": "_TZE200_p0gzbqct", "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 5, "name": "modelId", "value": "TS0601", "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 6, "name": "dateCode", "value": "", "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 7, "name": "powerSource", "value": "mains", "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "writable", "reportable" ], "id": 65502, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65533, "name": "clusterRevision", "value": 2, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65534, "name": "attributeReportingStatus", "value": "PENDING", "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65504, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65505, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65506, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } }, { "acl": [ "readable", "reportable" ], "id": 65507, "reportingConfiguration": { "status": "NOT_FOUND", "direction": "reported" } } ], "commandsGenerated": "UNSUP_GENERAL_COMMAND", "commandsReceived": "UNSUP_GENERAL_COMMAND" }, "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" } } ], "commandsGenerated": "UNSUP_GENERAL_COMMAND", "commandsReceived": "UNSUP_GENERAL_COMMAND" }, "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" } } ], "commandsGenerated": "UNSUP_GENERAL_COMMAND", "commandsReceived": "UNSUP_GENERAL_COMMAND" } }, "bindings": { "ota": {}, "time": { "attributes": [], "commandsGenerated": "UNSUP_GENERAL_COMMAND", "commandsReceived": "UNSUP_GENERAL_COMMAND" } } } } }

late4marshmellow avatar Mar 01 '24 15:03 late4marshmellow

Want to inform that I tried to add the manufacturer id to the "wall_dimmer_tuya" driver and manually install the app to homey..

My device then got installed and I could control dimmer also on/off, but issue is that when I did changes on the device physically this wont get reflected back to homey. leaving the homey state desynced with the device....

Not sure how to resolve this though, else I would have given you a PR😅

late4marshmellow avatar Sep 20 '24 11:09 late4marshmellow

@late4marshmellow added to next release. Please report back if this works.

JohanBendz avatar Sep 20 '24 15:09 JohanBendz

@JohanBendz thank you for your effort in this, i am very gratefull a small donation will be on its way :):)! it is possible to add and control the device from homey now, but changed done physically on the device is not reported back to homey. e.g if i switch the lights on from homey, then physically turns it off from the switch. in homey it still says lights is on. it is then neccessary to do switch light onoff from the app a couple times for status to it to resync tough this dont affect the dimming status.. same goes to dimming. assume that maybe theres a part of the code missing to repport status changes back to homey?

late4marshmellow avatar Sep 21 '24 11:09 late4marshmellow

Hi and thanks @late4marshmellow, I will push some new code to the driver in the upcoming Test version. Hopefully this will solve the problem.

JohanBendz avatar Sep 22 '24 20:09 JohanBendz

@JohanBendz works now small quirks but im ok with that 😊 But if you want to investigate i made a diag report

22e8834a-14e5-41b9-9cc9-3185b6005473

late4marshmellow avatar Sep 23 '24 10:09 late4marshmellow

Hi @late4marshmellow, the report show Radar, Pir and Plug but no Dimmer. Can you restart the app and try the dimmer a few times before sending a new report?

JohanBendz avatar Sep 23 '24 14:09 JohanBendz

@JohanBendz 95647964-265a-42ec-901a-0c15d0c7f08f

Restarted then some control on the deveice then some from homey

late4marshmellow avatar Sep 23 '24 14:09 late4marshmellow

Hmm, nothing out of the ordinary in the log. What small quirks?

Closing this issue and moving the discussions to this issue as it's the same device: https://github.com/JohanBendz/com.tuya.zigbee/issues/448

JohanBendz avatar Sep 23 '24 16:09 JohanBendz