I’m trying to get Zigbee working using ZHA on Hassio running on a Home Assistant Blue (ODROID). I’m using a CC2531 USB stick. This works fine and picks up my Moes TRV but I need quirks to get data/control from that device.
When I try adding quirks using the custom_quirks_path option in configuration.yaml (/config/zhaquirks/) then I get this error:
Logger: homeassistant.config_entries
Source: zhaquirks/bosch/motion.py:12
First occurred: 9:47:23 (1 occurrences)
Last logged: 9:47:23
Error setting up entry TI CC2531 USB CDC, s/n: __0X00124B001CCDFB8C - Texas Instruments for zha
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 293, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File “/usr/src/homeassistant/homeassistant/components/zha/init.py”, line 99, in async_setup_entry
setup_quirks(config)
File “/usr/local/lib/python3.8/site-packages/zhaquirks/init.py”, line 403, in setup
importer.find_module(modname).load_module(modname)
File “”, line 462, in _check_name_wrapper
File “”, line 962, in load_module
File “”, line 787, in load_module
File “”, line 265, in _load_module_shim
File “”, line 702, in _load
File “”, line 671, in _load_unlocked
File “”, line 783, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/config/zhaquirks/bosch/motion.py”, line 12, in
from …const import (
ValueError: attempted relative import beyond top-level package
I googled the error message so understand roughly what it means but can’t understand why it would be doing it. I copied the zhaquirks folder from here: GitHub - zigpy/zha-device-handlers and placed it in the location noted above. Not added anything custom.
OK - thank you. That makes sense and closes this issue for me. Though it opens up another one - why the TRV then isn’t properly recognised if the relevant quirk is already included. Same model seems to have worked for other people with that quirk, if not perfectly (ZHA - ZigPy - Thermostatic valve TS0601 doesn't work - #5 by cyberium)
I’ll do some more digging and try to understand a bit more.
It’s the most recent post I could find about this device. I’m a long time HA user but brand new to Zigbee. My whole system runs on ESPHome so I’m only just getting my head around even terminology. Appreciate you taking the time to respond.
Issue is that the device is recognised by ZHA and added to the network but without any functionality that I can see. I can’t see any data coming from it/way to control it (assuming it should create entities?)
Ok, I’m getting this. Added in the signature ("_TZE200_b6wax7g0", “TS0601”) to a version of valve.py stored in my custom quirks folder and now have some entities. Not perfect yet but I’m starting to understand.
Yep - that’s exactly what I did. I’m still getting my head around clusters so can’t confirm full functionality yet but will once I’ve played some more.
OK - I’m not convinced everything works perfectly yet but I can read and set temperature through the thermostat card so that’s good enough for me for now. Worth doing the PR for other people as it will get them over the initial hump at least.
I am having the same issue as bookofthefutureTom Cheesewright. I have HA setup and am using the ZHA integration to connect my zigbee devices to HA, which I have been successful at doing so far.
I recently bought a new TRV (TRV 02) which ZHA recognizes as the following:
Model: TS0601
Manufacturer: _TZE200_b6wax7g0
I already have a very similar TRV (TRV 1) setup in HA and working perfectly as shown in the picture below:
I was hoping someone can help me setup TRV 02 so it exposes the entities as TRV 1 so I can control it via HA.
I would like to add I am new to HS and only been using it for approx 6 months so can do the basics like edit config files via the Visual Studio Code editor, install addon via HACS etc, but don’t understand what quirks, etc are.
I followed your instruction and got the custom ZHA quirk setup and now my TRV is exposing entities in HA, so thank you.
However, I have a few issues maybe you can help me with:
The set temperature is out by a factor of 10. When I set the temp on the TRV to say 20 degrees, it’s shown as 2 degrees in HA.:
Furthermore, when I set the TRV to 20 degrees and the room temp is 24 degrees (as shown in the pic above), the TRV is off (or idle) but in HA it is showing as heating.
The battery status is not shown at all in HS for the TRV:
Finally, I think the issue might be becuase the TRV in > Developer Tools > States, I can see the TRV only has 1 supported feature, whereas my other TRV (which is very similar) shows 17 supported features:
Can’t help you with the functionalities, I don’t own that device.
Just keep in mind that those tuya devices are produced by people that barely know what they are doing, zigbee-wise.
Tuya, the company, is just a generic integrator that provide “blueprints” firmwares to random chinese producers to include in their “connected” products. Expect anything
I’m a total Zigbee beginner but I think I got this sorted by playing around. Head in to the ‘Manage clusters’ option in the integrations screen and try tweaking the ‘temperature calibration’ under the ‘moesmanufcluster’. I think this is a scaling factor? So you could try 1,10 or 0.1.