Closed MQTT-ESP8266 closed 1 year ago
Wild A** Guess, but try editing the quirk found here: https://github.com/zigpy/zha-device-handlers/issues/1571
Changing the "MODELS_INFO:" line to match your device.
I tried it like that and it also created a device with an On/Off-Entity but it does nothing. The valve stays silent.
It looks like the same quirk should work as in this case:
The proposed version is the following, but there are several DPs whose meaning and functionality are unknown, or what is the best way to map them in HA.
Some DPs are mapped to the TuyaValveManufCluster
attributes. The same can be done with the rest of DPs just following the indications of DP_102
What is expected to work:
What is expected NOT to work:
Regards.
Thanks for your time. I tried to integrate this quirk but I get an error:
Logger: homeassistant.config_entries
Source: custom_zha_quirks/ts0601_sh1btabb.py:27
First occurred: 14:14:09 (1 occurrences)
Last logged: 14:14:09
Error setting up entry socket://192.168.0.73:8888 for zha
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 339, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 99, in async_setup_entry
setup_quirks(config)
File "/usr/local/lib/python3.9/site-packages/zhaquirks/__init__.py", line 409, in setup
importer.find_module(modname).load_module(modname)
File "<frozen importlib._bootstrap_external>", line 529, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 1029, in load_module
File "<frozen importlib._bootstrap_external>", line 854, in load_module
File "<frozen importlib._bootstrap>", line 274, in _load_module_shim
File "<frozen importlib._bootstrap>", line 711, in _load
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/config/custom_zha_quirks/ts0601_sh1btabb.py", line 27, in <module>
from zhaquirks.tuya.mcu import (
ImportError: cannot import name 'TuyaLevelControlNM' from 'zhaquirks.tuya.mcu' (/usr/local/lib/python3.9/site-packages/zhaquirks/tuya/mcu/__init__.py)
There seems to be a problem with the import of TuyaLevelControlNM from zhaquirks.tuya.mcu. What can I do to get this running?
Uppsssss, I have a diferent local version. I have fixed the code. Can you replace your version and test?
I tested it but it does not work. The valve is not opperated by the generated entity nor is the battery-level shown .
Please, attach the logs from operating the device. both from the physical device and from HA, identifying each one with the associated event.
Sorry, I am a beginner. I attached the LOG that is written during paring of the zigbee device and also the HA system log during this time. Are these the ones you meant?
I cannot get this Tuya water valve to run. There are no entities shown in the device manager.
It would be great if this device could be added to tuva quirks so that it is usable with ZHA. There already exists a solution for zigbee2mqtt (link below). Maybe that makes it easier.
Additional logs
``` [0x0000:zdo] ZDO request ZDOCmd.Mgmt_Permit_Joining_req: [60,Additional context