Closed RamiRihawi closed 2 years ago
Its one "clasic" quirk for this device but your new device ID is not added but can being done in the quirk and also in ZHA for getting all functions if it. Add your ID on one new line here: https://github.com/zigpy/zha-device-handlers/blob/039a31f1ca15821e800bdb347eb47fdb02455f31/zhaquirks/tuya/ts0601_trv.py#L1422-L1429 And also in ZHA here https://github.com/home-assistant/core/blob/78a41022ade7f070db6ed5c7678a0ba1171b72e6/homeassistant/components/zha/climate.py#L595-L608 Its also one working local quirk with more function but its not merged by you can installing it as local quirk: https://github.com/zigpy/zha-device-handlers/pull/1192 (its also need the adding in ZHA climate.py).
Using local quirk is described here https://github.com/zigpy/zha-device-handlers/discussions/693#discussioncomment-857274. The ZHA climate.py need being edited in the HA container https://github.com/zigpy/zha-device-handlers/discussions/693#discussion-1237451.
Patched climate.py
for ZHA container and ts0601_trv.py
(classic) and and (neo) ts0601_trv_moes.py
. Dont use both at the same time then it can making problems.
ts0601_trv.zip
Copy the climate.py
to /usr/src/homeassistant/homeassistant/components/zha/climate.py
in the HA container with command cp /usr/src/homeassistant/homeassistant/components/zha/climate.py /config/climate.py
inside the HA container after have copy the climate.py to the HA confing directory.
The quirk you can configure local quirk and copy one of them in the new folder and restarting HA and it shall being loaded is all is OK.
Thank you very much for your help, One thing though, i do not have HA installed as a container, but as a full system on RPi4. That means i cannot use cp commands.
I already created "custom_zha_quirks" folder, and added the path to configuration file. What shall i do for climate.py?
Do you have another suggestion?
If you is running on one real OS is the path different but i dont remember it but the end is the same then you is finding the local ha files in your system. Use google for command finding files in your system.
All is working now, Thank you a lot.
Witch version did you trying ? I like making one PR for adding it in the system permanent so not need doing all one more time then updating HA.
From the Zip folder you sent me i used first "ts0601_trv.py" which reviled only three entities. and i added the climate.py to the config folder of HA.
Then i tried the second one "ts0601_trv_moes.py" after removing the first one. now i have all entities listed.
Great !!! The first one have more or less the same functions but not in ZHA GUI and must being made with cluster commands and attribute.
I making one PR for adding it in the classic one and then you can using it then HA is getting it in the release and can using the new one as custom quirk is you like until we is getting it merged.
Hi all, I get this problem when launching HA with this quirk (HA 2022.11):
TypeError: `manufacturer_attributes` is deprecated. Copy the parent class's `attributes` dictionary and update it with your manufacturer-specific `attributes`. Make sure to specify that it is manufacturer-specific through the appropriate constructor or tuple!
Any ideas?
Same problem here as Reproduktor. Is the quirk not compatible with newer HA versions or what can be the problem ?
I get a lot of functions from this tvr, but what i need is force valve open and close. This one does not show up. Any idea what the problem can be ? All other functions are there.
I get a lot of functions from this tvr, but what i need is force valve open and close. This one does not show up. Any idea what the problem can be ? All other functions are there.
How did you fix the problem?
I have HA with ZHA lasted version and my valve _TZE200_cpmgn2cf TS0601 does not show entities like valve position, window open etc. like in zigbee2mqtt. Is it possible to have this entities in ZHA?
Same here, same device same behaviour.
Is your feature request related to a problem? Please describe. This version of the device is not compatible with ZHA yet.
Describe the solution you'd like The device is added without any entities. I want to be able to control at least the close and open functionality of the device
**Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen.
Please find below device signature in code block and Logs while adding the device
LOGS:
Additional context https://www.aliexpress.com/item/4001065119510.html?spm=a2g0o.order_list.0.0.21ef1802WETkFk