javicalle
javicalle
We can remove the switch, this part is the easy one. For all the other entities we need to collect the info that report the device and map it against...
The device is calling some custom command `0x25` every 4 ~~minutes~~ seconds with ~~one~~ five repetitions. I have no idea what is this command. There is nothing in ZHA and...
Ok, let's try it... That's my (quick & dirty) proposal: 1. copy the current `ts0601_din_power.py` file: * https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/tuya/ts0601_din_power.py 2. edit the `HikingManufClusterDinPower` and add the following code (ie: between `attributes`...
I have updated the code in my comment adding a new class and updating its use in the commands update and method definition. Please, be sure to put your logs...
Have you updated also this part? ```python def handle_mcu_connection_status(self, payload: TuyaTsn) -> foundation.Status: ```
Not sure if related but it lacks an break like before the `_update_attribute` method. I'll check later.
Sorry for the late response. > The only thing I see, is that in this comand the `client_commands` are copied from the `TuyaNewManufCluster` class instead of the `TuyaManufClusterAttributes` class. so...
> If I check the `status: t.uint8_t` I get `x11` This value change over time? Or is exactly `x11` always?
Thanks for testing. I'm a bit confused here. Can you try replacing the copy() parr like this? ```python client_commands = TuyaManufCluster.client_commands.copy() ``` ```python server_commands = TuyaManufCluster.server_commands.copy() ```
IMHO all this code should go inside the current `ts0601_motion.py` file. Your `TuyaMmwRadarCluster` must replace the current `MmwRadarManufCluster` class for sure. Then `MmwRadarMotion` would be replaced with the `TuyaMmwRadarOccupancy` (merging...