Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Device Support Request] TZE200_hvaxb2tc TS0601 Valve #3527

Open
cloudchaserberlin opened this issue Nov 19, 2024 · 9 comments
Open

[Device Support Request] TZE200_hvaxb2tc TS0601 Valve #3527

cloudchaserberlin opened this issue Nov 19, 2024 · 9 comments
Labels
device support request This requests support for a new device Tuya Request/PR regarding a Tuya device

Comments

@cloudchaserberlin
Copy link

cloudchaserberlin commented Nov 19, 2024

Problem description

I can add the device but there are no Sensors. I have allready try to use existent quirks. Sone of them add sensor but there are all in Status „Unknown“

I'm happy to provide further information or data. Unfortunately, I haven't been here long and therefore don't really know much about it.

IMG_6607

Screenshots/Video

Screenshots/Video

[Paste/upload your media here]

Device signature

Device signature
[Paste the device signature here]

Diagnostic information

Diagnostic information
[Paste the diagnostic information here]

Logs

Logs
[Paste the logs here]

Custom quirk

Custom quirk
[Paste your custom quirk here]

Additional information

No response

@TheJulianJES TheJulianJES added the Tuya Request/PR regarding a Tuya device label Nov 25, 2024
@Mattivdp
Copy link

Mattivdp commented Dec 2, 2024

Did u get this working ?? I have 6 off the same ones cant do anything with them ?

@jabouchleih
Copy link

jabouchleih commented Jan 16, 2025

With the latest merge (#3684), I had no problems getting it work with the custom quirk here:
https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/tuya/ts0601_trv.py#L1803C1-L1804C1

As you can see, the exact model ID is supported as well.

Image

@AaronLayton
Copy link

AaronLayton commented Jan 19, 2025

@jabouchleih I am in the same boat and have just added a few of these to my network but no entities exposed.

I did see https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/tuya/ts0601_trv.py#L1803C1-L1804C1 the other day but I am pretty new to Quirks. I believe I followed a setup guide correctly but when I restart the ZHA service it just errors out.

If you have time, would you mind posting a quick guide I could follow?

Edit: When using the custom quirk I get https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/tuya/ts0601_trv.py#L1803C1-L1804C1

Multiple matches found for device <Device model='TS0601' manuf='_TZE200_hvaxb2tc' nwk=0x79AE ieee=a4:c1:38:37:09:97:3b:63 is_initialized=True>

@prairiesnpr
Copy link
Collaborator

@AaronLayton See zigpy/zigpy#1508 There is a bug in zigpy, if you are trying to replace a built-in v2 quirk with a custom one, you need to delete the built-in quirk from the registry first. That said, these were just merged 4 days ago, so there shouldn't be a built-in quirk. Make sure you didn't define it twice or have multiple files with the same model and manufacturer. This will be in the HA release next month.

@jabouchleih
Copy link

jabouchleih commented Jan 19, 2025

Hi @AaronLayton ,

set up was quite straight forward for me (side note: I'm running HA as a Docker container so this might not work with your setup but should be adaptable).

Did you clone the whole ZHA Device Handlers repo into your custom quirks directory?
I only downloaded this one specific quirk in my instance since I also had no use for custom quirks until now.

Edit the Home Assistant configuration.yml found inside the root of your HA config directory by SSHing into your HA host:
Docker Compose YML:

volumes:
      - /srv/mydisk/homeassistant/config:/config

Edit the file:

nano /srv/mydisk/homeassistant/config/configuration.yml

Add the following text to your configuration.yml

zha:
  custom_quirks_path: /config/custom_zha_quirks/

And create a directory called custom_zha_quirks inside the aforementioned configuration directory

mkdir /srv/mydisk/homeassistant/config/custom_zha_quirks/

Copy the file whole content of the Custom quirk into a file called ts0601_trv.py

Download the file from into the custom_zha_quirks/ directory:

cd  /srv/mydisk/homeassistant/config/custom_zha_quirks/

Download the file:

wget https://raw.githubusercontent.com/zigpy/zha-device-handlers/refs/heads/dev/zhaquirks/tuya/ts0601_trv.py

Make sure the correct access rights are set to the directory and file, if you're using specific user IDs for the Home Assistant process or container and finally restart Home Assistant.

That should be it in all detail :-)

@ahimsafantasyname
Copy link

ahimsafantasyname commented Jan 19, 2025 via email

@AaronLayton
Copy link

Hiya both, thanks for the quick replies

Looking at the link @prairiesnpr posted, I think it is this that I am getting. Hopefully it will all get resolved soon as its merged in, for now I will see if I can delete the built-in quirk from the registry.

I have added the below to the custom quirk I am trying to load up. This needs to go underneath the bottom of the other imports.

from zigpy.quirks import DEVICE_REGISTRY
del DEVICE_REGISTRY._registry_v2[("_TZE200_hvaxb2tc", "TS0601")]

Adding the above has now make the ZHA integration load again. However on initial testing there are still no entities exposed. I will continue to look into it and report back.


For anyone else looking at this in the meantime
Here is the relevant entry in my configuration.yml file - just adding in the custom quirks folder. I already had the Ikea section for their firmware updates.
Image

I only have the 1 quirk installed, copied straight from the links mentioned above.
Image

@jabouchleih
Copy link

Adding the above has now make the ZHA integration load again. However on initial testing there are still no entities exposed. I will continue to look into it and report back.

Did you readd the device? I had to do delete the device from HA, do the pairing again and only then the entities were visible.

@AaronLayton
Copy link

AaronLayton commented Jan 19, 2025

Adding the above has now make the ZHA integration load again. However on initial testing there are still no entities exposed. I will continue to look into it and report back.

Did you readd the device? I had to do delete the device from HA, do the pairing again and only then the entities were visible.

I was hopeful that this may be the case for me so just tried it but still no luck. Looks like the quirk isn't applying

Image

This is how I modified the quirk file as well
Image


Note: Just unboxed and setup a brand new TRV but still the same


Just checked the logs and have this

Image


I've just commented back out the 2 lines I added to delete the entry, told the integration to restart and now I get

Image

Getting closer, but now after a full restart I get the same issue as before where ZHA will not start.

@TheJulianJES TheJulianJES added the device support request This requests support for a new device label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
device support request This requests support for a new device Tuya Request/PR regarding a Tuya device
Projects
None yet
Development

No branches or pull requests

7 participants