Tuya 4 gang scene switch

I bought one of these https://www.amazon.co.uk/Control-Battery-Powered-Automation-Scenario/dp/B08N19CLGV with the intention of replacing a standard light switch (covering switch)

I tried to add it to my sonoff zigbee bridge, and it totally wiped everything out, had to reconnect my bridge to the app, then reconnect all my sensors to the bridge

I had a spare sonoff zigbee bridge, so went down the tasmota route, got it integrated into HA with ZHA, added a lidl socket to it (which i had also tried with sonoff) which works fine, then also added the scene switch

ZHA has found the switch, but instead of it showing as 4 switches that i can use to trigger things within HA (like a sonoff switch snzb-01 that i have), it shows up as 4 sockets that can be controlled from within HA

Has anyone got one of these working in ZHA by any chance?

Ive also tried Developer tools / events, and listening to events with * entered, while pressing every button, double clicking and long pressing, and nothing is received

within ZHA i have run ‘show logs’ while clicking each button, and got the following

[0x0000:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [60, <Bool.false: 0>]
[0xd6ba:4:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=85 command_id=253>
[0xd6ba:4:0x0006] Unknown cluster-specific command 253
[0xd6ba:4:0x0006] ZCL request 0x00fd: b'\x00'
[0xd6ba:4:0x0006] No handler for cluster command 253
[0xD6BA:4:0x0006]: received '253' command with b'\x00' args on cluster_id '6' tsn '85'
[0xd6ba:4:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=85 command_id=253>
[0xd6ba:4:0x0006] Unknown cluster-specific command 253
[0xd6ba:4:0x0006] ZCL request 0x00fd: b'\x00'
[0xd6ba:4:0x0006] No handler for cluster command 253
[0xD6BA:4:0x0006]: received '253' command with b'\x00' args on cluster_id '6' tsn '85'
[0xd6ba:3:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=86 command_id=253>
[0xd6ba:3:0x0006] Unknown cluster-specific command 253
[0xd6ba:3:0x0006] ZCL request 0x00fd: b'\x00'
[0xd6ba:3:0x0006] No handler for cluster command 253
[0xD6BA:3:0x0006]: received '253' command with b'\x00' args on cluster_id '6' tsn '86'
[0xd6ba:3:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=86 command_id=253>
[0xd6ba:3:0x0006] Unknown cluster-specific command 253
[0xd6ba:3:0x0006] ZCL request 0x00fd: b'\x00'
[0xd6ba:3:0x0006] No handler for cluster command 253
[0xD6BA:3:0x0006]: received '253' command with b'\x00' args on cluster_id '6' tsn '86'
[0xd6ba:1:0x0001] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=False> manufacturer=None tsn=87 command_id=Command.Report_Attributes>
[0xd6ba:1:0x0001] ZCL request 0x000a: [[Attribute(attrid=33, value=<TypeValue type=uint8_t, value=200>)]]
[0xd6ba:1:0x0001] Attribute report received: battery_percentage_remaining=200
[0xd6ba:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=88 command_id=253>
[0xd6ba:1:0x0006] Unknown cluster-specific command 253
[0xd6ba:1:0x0006] ZCL request 0x00fd: b'\x00'
[0xd6ba:1:0x0006] No handler for cluster command 253
[0xD6BA:1:0x0006]: received '253' command with b'\x00' args on cluster_id '6' tsn '88'
[0xd6ba:2:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=89 command_id=253>
[0xd6ba:2:0x0006] Unknown cluster-specific command 253
[0xd6ba:2:0x0006] ZCL request 0x00fd: b'\x00'
[0xd6ba:2:0x0006] No handler for cluster command 253
[0xD6BA:2:0x0006]: received '253' command with b'\x00' args on cluster_id '6' tsn '89'

any help or pointers would be great

1 Like

after some googling, and posting on the HA facebook page, ive installed portainer, and downloaded and copied some zha-quirks files, but not too sure that ive done things correctly, as the switches are still not showing as they chould, but now, when i press the switches, im getting info in the error log, so i must be at least half way there

heres the error from the log



Logger: zigpy.zcl
Source: /usr/local/lib/python3.8/site-packages/zigpy/zcl/__init__.py:110
First occurred: January 5, 2021, 8:15:53 PM (11 occurrences)
Last logged: 5:50:56 PM

    [0xd6ba:4:0x0006] Unknown cluster-specific command 253
    [0xd6ba:3:0x0006] Unknown cluster-specific command 253
    [0xd6ba:2:0x0006] Unknown cluster-specific command 253
    [0xd6ba:1:0x0006] Unknown cluster-specific command 253


for those following, ive got it working, ill post what i did shortly :slight_smile:

OK, heres how i did it after trying a few different things. This worked for me

Click Supervisor
Click Addon Store
Click the 3 dots at top right
Click repositories
Copy
https://github.com/home-assistant/hassio-addons-development
into the ‘Add repository’ line at the bottom, and click Add
in the Addon Store, search for “Custom deps deployment” and install it
Once installed, click on it and click Configuration
Enter the following

pypi:
  - zha-quirks==0.0.51
apk: []

Click Save
Click ‘Start on Boot’
Restart HA

the switches are now available to use, named first switch, second, etc, and single click, double click or continous press for each one

:slight_smile:

2 Likes

Hi,
Can you elaborate on how this add-on made the switch ‘available’? How do you config your triggers on button press events?
thanks

after doing this, the switches are all available as events under my device named ‘Quad switch’

To make it easier to use, i then downloaded this blueprint, to create an automation by simply selecting device to manage, and what to do with it

1 Like

since updating to 2021.2.1 this switch has stopped working, and the WAF is about to plummet to the point where all switches, sockets and bulbs will need to be ‘normal’ again

ive checked everything, and even tried (and failed) to restore a snapshot to get back to a working state

the switch is still there, but all of its entities have vanished

Can anyone offer any advise please

managed to revert to version 2021.1.5 after installing SSH into HA, then using the command

ha core update --version=2021.1.5

i had to do this 3 times before it eventually downgraded. I then restored my last good snapshot from before updating (from 2 nights ago, not sure if this was needed, but did it anyway)

My switch(es) are now working properly as intended

Something in 2021.2.1 breaks it

I am on 2021.3.3 but I could not get this to work. I don’t want to downgrade to be honest.
Basically only thing coming in is the battery level, not the switches.

Any Idea?

JW

Got it working… I put this in the configuration:

pypi:
  - zha-quirks==0.0.54
apk: []

restart it, restart HA
Voila…

Jan-Willem