Replies: 1 comment 5 replies
-
@jacekk015 You dont have the zuya switch but can you helping impanting one command 0x44 on the (tuya) OnOff cluster that is triggering one code block / class in the quirk so i can putting command for reading and writing commands and attribute from it ? And i think you can very easy implanting the other functions or helping my getting them in place with the right formatting and import in the quirk. Thanks in advance !!! Mattias W |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying getting the TS004F dimmer switch changing mode to "tuya scene switch".
The mode switch attribute is implanted and it can changing mode but it cant initiating the 3 new Endpoints. and is only using EP1.
For enabling them its needed having the device in INIT mode (first seconds after its joining) and writing the attribute to it before its leaving INIT mode and cant doing the "hardware" changes.
For getting the device in INIT mode tuya is sending one leave with rejoin flag.
That was not possible doing with ZHA but on fix is on the way and one work around is in place by first defining the flags:
And then in the device class replacement:
This is working so then the device is joining and the quirk is loaded its wait 10 seconds and sending on leave with rejoin flag. Its looping sometimes until the device stop leaving.
Was trying writing attributes from Puddlys instruction:
But i getting problem with device and EP. Was trying setting the EP to 1 but then the system is not getting the device.
Allos good is listening for commands like Puddlys example:
But the same problem with it i is missing to many imports and cant getting it working.
If some with more code knowledge can helping defining one cluster command on OnOff cluster (perhaps 0x44) that can being catched of the quirk and running one script that is doing:
Then i have enough pieces for getting the right timing for getting the device initiating the 3 new endpoints with little testing.
Attaching the last working in progress quirk.
ts004f4.zip
Testing that the quirk is working OK on other device shall not being difficult its only need basic and OnOff cluster and all import and dependency is working OK so i can getting the timing OK.
Beta Was this translation helpful? Give feedback.
All reactions