Quirk for TS0003 by Zemismart not working [BUG] #2527
Labels
likely easy fix
It's likely that this issue is easily fixable
stale
Issue is inactivate and might get closed soon
Tuya
Request/PR regarding a Tuya device
@TheJulianJES
Bug description
Hello,
So I bought both TS0003 (shown as TS0013 on HA) and TS0004 from the Zemismart store on Ali Express. I managed to make the TS0004 work perfectly using the quirk given as example here. I added a TS0004.py to the custom_zha_quirks folder and it worked.
I tried to do the same process to the 3-gang version, but the switches are still all grouped on HA. I even tried a TS000X.py file that contained instructions for both devices and still only the 4-gang one works as expected.
PS: running ZHA on embedded Zigbee coordinator from Home Assistant Yellow. I tried the Sonoff Dongle P for a while, but decided to use it as a repeater and make use of the zigbee embedded module which works very well.
Steps to reproduce
Add this lines to configuration. yaml:
zha: custom_quirks_path: /config/custom_zha_quirks/ enable_quirks: true
Add the quirk below (TS0003_custom_quirk.py) to /config/custom_zha_quirks/: (Everything below is supposed to be shown here as code but for some reason the beginning of the code is shown as text)
Custom quirk test code (click to exapnd)
Expected behavior
The 3 switches provided by the device are still all grouped on HA.
They work fine when I press the physical buttons, but whenever I turn on or off one of the switches in HA, all 3 behave the same way. i.e: turn on the stairs light and the corridor light + living room light all follow the same command.
Screenshots/Video
Screenshots/Video
[Paste/upload you
r media here]
Device signature
Device signature
Diagnostic information
Diagnostic information
Logs
Logs
Additional information
I have tried the file TS000X.py which contained info for plenty of devices including the TS0003. It didn't work.
I have also edited the TS0003.py replacing TS0003 for TS0013 (The model that appears on HA), whenever applicable, but still no success.
I had to cut part of the logs out because github said my text was too long.
Any help will be appreciated.
Thanks,
Airton
The text was updated successfully, but these errors were encountered: