Page 1 of 2

Zigate and TS0044 (Tuya 4-way switch)

Posted: Thursday 04 March 2021 17:41
by JanZorz
Hi,

Zigate controller and Domoticz module works fine and I like it a lot.

Lately I got a Tuya 4 way switch (TS0044) and latest version of Zigate module recognise it correctly as TS0044 and creates 4 "voltage" devices and 4 "switch" devices in Domoticz.
Screenshot 2021-03-04 at 17.36.19.png
Screenshot 2021-03-04 at 17.36.19.png (88.86 KiB) Viewed 1545 times
Screenshot 2021-03-04 at 17.40.55.png
Screenshot 2021-03-04 at 17.40.55.png (184.24 KiB) Viewed 1545 times
However - whatever I try - status of switches in devices tab is always "Off" and I have no idea how to detect any change and make Domoticz understand which button I presses once or twice.

I also have many Aqara buttons connected to Zigate and there "1-Click" and "2-Clicks" and so on works fine.

Here - I can't make it work. Anyone already played with this switch?

Cheers, Jan Zorz

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Thursday 04 March 2021 17:58
by pipiche
Could have a look to the Wiki and provide the export.json of "Plugin Device list (RAW) json"
I'll have a look what can be done

Please provide also what branche of the plugin you are and the plugin version

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Thursday 04 March 2021 18:16
by pipiche
Please make sure that you are on beta branch latest version 4.12.181

you need to remove all widgets whcih have been precedently created, then redo the pairing while running the latest plugin version

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Thursday 04 March 2021 19:10
by JanZorz
pipiche wrote: Thursday 04 March 2021 18:16 Please make sure that you are on beta branch latest version 4.12.181

you need to remove all widgets whcih have been precedently created, then redo the pairing while running the latest plugin version
I'm on 4.11.017. Let me update to latest beta and try again.

Cheers, Jan

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Friday 05 March 2021 13:07
by JanZorz
A bit better now, but it's still not working.

Zigate module recognises it:
Screenshot 2021-03-05 at 12.36.14.png
Screenshot 2021-03-05 at 12.36.14.png (68 KiB) Viewed 1526 times
Now I get just "switch" devices in Devices tab and no Voltage devices:
Screenshot 2021-03-05 at 12.36.53.png
Screenshot 2021-03-05 at 12.36.53.png (110.65 KiB) Viewed 1526 times
...and when I include them I get 4 switches with a selector:
Screenshot 2021-03-05 at 12.37.48.png
Screenshot 2021-03-05 at 12.37.48.png (29.64 KiB) Viewed 1526 times
Here is export JSON:

{"Version":"3","ZDeviceName":"4-way switch","Status":"inDB","SQN":"61","Heartbeat":"12744","RIA":"0","LQI":99,"Battery":100,"Model":"TS0044","ForceAckCommands":[],"MacCapa":"80","IEEE":"847127fffed092da","Type":"Button_3","ProfileID":"0104","ZDeviceID":"0000","App Version":"67","Attributes List":{},"DeviceType":"RFD","HW Version":"","Last Cmds":[[null,"02","4d09","0100","0102000000000000010000"],[null,"02","4d09","0100","0102000000000000010001"],[null,"02","4d09","0100","0102000000000000010000"],[null,"02","4d09","0100","0102000000000000010001"],[null,"02","4d09","0100","0103000000000000010000"],[null,"02","4d09","0100","0103000000000000010001"],[null,"02","4d09","0100","0103000000000000010000"],[null,"02","4d09","0100","0103000000000000010001"],[null,"02","4d09","0100","0103000000000000010000"],[null,"02","4d09","0100","0103000000000000010001"]],"LogicalType":"End Device","Manufacturer":"","Manufacturer Name":"_TZ3000_vp6clf9d","NbEp":"4","PowerSource":"Battery","ReadAttributes":{"Ep":{"01":{"0000":{"TimeStamp":"04/03/2021 19:18:34","iSQN":{"0000":null,"0001":null,"0004":null,"0005":null},"Attributes":{"0000":"00","0001":"00","0004":"00","0005":"00"},"ZigateRequest":{}},"0001":{"TimeStamp":"05/03/2021 12:58:07","iSQN":{"0020":50,"0021":51},"Attributes":{"0020":"00","0021":"00"},"ZigateRequest":{}}},"02":{"0000":{"TimeStamp":"04/03/2021 19:18:23","iSQN":{"0004":31,"0005":35,"0000":null,"0001":null},"Attributes":{"0004":"86","0005":"86"},"ZigateRequest":{}}},"03":{"0000":{"TimeStamp":"04/03/2021 19:18:23","iSQN":{"0004":32,"0005":36,"0000":null,"0001":null},"Attributes":{"0004":"86","0005":"86"},"ZigateRequest":{}}},"04":{"0000":{"TimeStamp":"04/03/2021 19:18:24","iSQN":{"0004":33,"0005":37},"Attributes":{"0004":"86","0005":"86"},"ZigateRequest":{}}}}},"ReceiveOnIdle":"","Stack Version":"","Stamp":{"time":1614945487.0713203,"Time":"2021-03-05 12:58:07","MsgType":"8102","LastSeen":"05/03/2021 12:58:07"},"ZCL Version":"3","Health":"Live","Capability":["Reduced-Function Device","Standard security","NwkAddr should be allocated"],"PairingInProgress":false,"RollingLQI":[93,93,96,99,99,48,54,84,60,63,99],"Epv2":{"04":{"ClusterIn":{},"ClusterOut":{},"ProfileID":"0104","ZDeviceID":"0000"},"01":{"ProfileID":"0104","ZDeviceID":"0000"},"02":{"ProfileID":"0104","ZDeviceID":"0000"},"03":{"ProfileID":"0104","ZDeviceID":"0000"}},"ConfigSource":"DeviceConf","Ep":{"01":{"0000":{"0004":"_TZ3000_vp6clf9d","0005":"TS0044","0000":"3","0001":"67"},"0001":{"0020":30,"0021":200},"0006":{},"000a":{},"0019":{},"Type":"Button_3","ClusterType":{"622":"Button_3"}},"02":{"0006":{},"Type":"Button_3","0000":{},"ClusterType":{"623":"Button_3"}},"03":{"0006":{},"Type":"Button_3","0000":{},"ClusterType":{"624":"Button_3"}},"04":{"0006":{},"Type":"Button_3","ClusterType":{"625":"Button_3"},"0000":{}}},"Bind":{"01":{"0006":{"Target":"0000","Stamp":"04/03/2021 19:18:23","Phase":"requested","Status":"","i_sqn":42}},"02":{"0006":{"Target":"0000","Stamp":"04/03/2021 19:18:23","Phase":"requested","Status":"","i_sqn":43}},"03":{"0006":{"Target":"0000","Stamp":"04/03/2021 19:18:23","Phase":"requested","Status":"","i_sqn":44}},"04":{"0006":{"Target":"0000","Stamp":"04/03/2021 19:18:23","Phase":"requested","Status":"","i_sqn":45}}},"ConfigureReporting":{"Ep":{"01":{"0006":{"TimeStamp":"04/03/2021 19:18:23","iSQN":{"0000":46},"Attributes":{},"ZigateRequest":{}}},"02":{"0006":{"TimeStamp":"04/03/2021 19:18:23","iSQN":{"0000":47},"Attributes":{},"ZigateRequest":{}}},"03":{"0006":{"TimeStamp":"04/03/2021 19:18:23","iSQN":{"0000":48},"Attributes":{},"ZigateRequest":{}}},"04":{"0006":{"TimeStamp":"04/03/2021 19:18:23","iSQN":{"0000":49},"Attributes":{},"ZigateRequest":{}}}}},"ZDeviceVersion":"0001","BatteryUpdateTime":"04/03/2021 19:18:30","WriteAttributes":{"Ep":{"01":{"0000":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}},"0001":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}},"0006":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}},"000a":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}},"0019":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}}},"02":{"0006":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}},"0000":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}}},"03":{"0006":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}},"0000":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}}},"04":{"0006":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}},"0000":{"TimeStamp":0,"iSQN":{},"Attributes":{},"ZigateRequest":{}}}}},"Param":{},"CheckParam":false,"MapLQI":{"0000":81},"NwkID":"4d09"}

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Friday 05 March 2021 13:56
by pipiche
what is not working ?

If I understood this is a 4 buttons type of switch and for each button you can have click, double click and long click event.

If the not working is when you press on a button nothing happen, then please enable some dbeug mode


debugInput
debugCluster

press on every button and provides the corresponding logs

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Friday 05 March 2021 14:00
by JanZorz
pipiche wrote: Friday 05 March 2021 13:56 what is not working ?

If I understood this is a 4 buttons type of switch and for each button you can have click, double click and long click event
Whatever I press - the state on Domoticz switches is always Off and doesn't change. Also no sign in domoticz log file that anything was received from the switch, no "UpdateDevice" messages whatsoever.

Thnx, Jan

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Friday 05 March 2021 14:15
by JanZorz
If I press lower left button - I get this in the log:

2021-03-05 14:16:27.631 Python Plugin System: (Zigate) [ZiGateForwarder_9] ZigateRead - MsgType: 8102, MsgLength: 000e, MsgCRC: 13, Data: 7fa805010001002100200001c8, LQI: 132
2021-03-05 14:16:27.631 Python Plugin System: (Zigate) [ZiGateForwarder_9] Decode8102 - Attribute Reports : [a805:01] MsgSQN: 7f ClusterID: 0001 AttributeID: 0021 Status: 00 Type: 20 Size: 0001 ClusterData: >c8<
2021-03-05 14:16:27.631 Python Plugin System: (Zigate) [ZiGateForwarder_9] ReadCluster - 0001 - a805/01 AttrId: 0021 AttrType: 20 Attsize: 0001 Status: 00 AttrValue: c8
2021-03-05 14:16:27.631 Python Plugin System: (Zigate) [ZiGateForwarder_9] readCluster 0001 - a805 Battery Percentage: 200
2021-03-05 14:16:27.631 Python Plugin System: (Zigate) [ZiGateForwarder_9] readCluster 0001 - Device: a805 Model: TS0044 mainVolt:None , battVolt:None, battRemainingVolt: 30.0, battRemainPer:200.0
2021-03-05 14:16:27.631 Python Plugin System: (Zigate) [ZiGateForwarder_9] readCluster 0001 - Device: a805 Model: TS0044 Updating battery 100 to 100

Interesting is that if I press other buttons - nothing shows up in the log. Just lower left one works currently.

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Friday 05 March 2021 16:05
by pipiche
Interesting ...

Would it be possible to redo the all pairing and get all Logs ? I suspect going wrong during the pairing and discovery process

Could you also let us know what is the firmware level of the ZiGate ? ( I suspect that it needs a firmware which is not yet released). Can you ping me on PM ?

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Friday 05 March 2021 18:01
by JanZorz
pipiche wrote: Friday 05 March 2021 16:05 Interesting ...

Would it be possible to redo the all pairing and get all Logs ? I suspect going wrong during the pairing and discovery process

Could you also let us know what is the firmware level of the ZiGate ? ( I suspect that it needs a firmware which is not yet released). Can you ping me on PM ?
Firmware: 031a

I'll get you all the logs. I'm a bit hesitant to upgrade Zigate firmware because last time all devices were lost and I had to pair them all again. If I upgrade from 031a to something else - am I going to retain Zigate in functional state?

Let's discuss on PM.

Cheers, Jan

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Saturday 06 March 2021 9:19
by waltervl
With current firmware updates of the Zigate no devices are erased anymore so no need to repair those in Domoticz.

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Saturday 06 March 2021 9:21
by pipiche
waltervl wrote: Saturday 06 March 2021 9:19 With current firmware updates of the Zigate no devices are erased anymore so no need to repair those in Domoticz.
what do you mean ?

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Saturday 06 March 2021 14:55
by JanZorz
waltervl wrote: Saturday 06 March 2021 9:19 With current firmware updates of the Zigate no devices are erased anymore so no need to repair those in Domoticz.
So if I update from current firmware to latest one - you say that no device bindings will be lost? I already went through that once and would not repeat it :)

Is it safer to update it with Linux app or is it better to find a Windows machine and do it there with suggested software?

Cheers, Jan

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Sunday 07 March 2021 1:48
by waltervl
I did the latest update with the Linux program. I do not know what is better.
@pipiche with older firmware updates of zigate there was the the erase PDM memory needed. That is not needed anymore.

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Sunday 07 March 2021 9:02
by pipiche
ErasePDM was needed until 30f


Envoyé de mon iPhone en utilisant Tapatalk

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Thursday 11 March 2021 18:52
by codercrack
Hello,

Did you advance on the subject ?

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Thursday 11 March 2021 19:00
by pipiche
I have ordered a ts044 for testing with the future 31e.

But if it works as the ts0043 , the new firmware is needed.


Envoyé de mon iPhone en utilisant Tapatalk

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Saturday 27 March 2021 11:31
by pipiche
I do confirm TS0044 works fine with the up coming firmware

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Thursday 22 April 2021 20:41
by gorstj
Pipiche,

Is there a rough ETA for 3.1e or a beta program?

I have two TS0043 which are having this very issue.

Thanks

Re: Zigate and TS0044 (Tuya 4-way switch)

Posted: Friday 23 April 2021 8:03
by pipiche
Contact me in MP


Envoyé de mon iPhone en utilisant Tapatalk