Closed pbvdven closed 1 year ago
I would suggest to add your device in the TuyaTempHumiditySensor
quirk:
https://github.com/zigpy/zha-device-handlers/blob/1bfe93211342b370aa0c3ab37f384c35fceb4c32/zhaquirks/tuya/ts0601_sensor.py#L78-L103
Here are a good guide to config your local quirk folder.
Put the current ts0601_sensor.py
inside:
https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/tuya/ts0601_sensor.py
Edit the TuyaTempHumiditySensor
class adding your device like:
class TuyaTempHumiditySensor(CustomDevice):
"""Custom device representing tuya temp and humidity sensor with e-ink screen."""
# RelativeHumidity multiplier
RH_MULTIPLIER = 10
signature = {
# <SimpleDescriptor endpoint=1, profile=260, device_type=81
# device_version=1
# input_clusters=[4, 5, 61184, 0]
# output_clusters=[25, 10]>
MODELS_INFO: [
("_TZE200_bjawzodf", "TS0601"),
("_TZE200_zl1kmjqx", "TS0601"),
],
ENDPOINTS: {
1: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
INPUT_CLUSTERS: [
Basic.cluster_id,
Groups.cluster_id,
Scenes.cluster_id,
TemperatureHumidityManufCluster.cluster_id,
],
OUTPUT_CLUSTERS: [Ota.cluster_id, Time.cluster_id],
}
},
}
.../...
Save changes, restart HA and repair your device.
@javicalle i only put the quirk in the folder and restarted ha not changed anything but i get this error in home assistant after reboot and zha entities are not available any idea what im doing wrong?
Logger: homeassistant.config_entries Source: custom_zha_quirks/ts0601_sensor.py:54 First occurred: 22:51:46 (1 occurrences) Last logged: 22:51:46
Error setting up entry ConBee II, s/n: DE2423162 - dresden elektronik ingenieurtechnik GmbH for zha
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/zha/init.py", line 100, in async_setup_entry
setup_quirks(config)
File "/usr/local/lib/python3.10/site-packages/zhaquirks/init.py", line 409, in setup
importer.find_module(modname).load_module(modname)
File "
@javicalle thanks for helping someone changed the file https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/tuya/ts0601_sensor.py and that's not working for me but i took a previous version and edit that one and now the device is working.
i took a previous version and edit that one and now the device is working.
👍🏻 I didn't realize that this change was pending.
Can you confirm that RH values are fine too?
i took a previous version and edit that one and now the device is working.
👍🏻 I didn't realize that this change was pending.
Can you confirm that RH values are fine too?
Yes the values are correct. Thanks
@javicalle thanks for helping someone changed the file https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/tuya/ts0601_sensor.py and that's not working for me but i took a previous version and edit that one and now the device is working.
Hello,
I am facing same problem. Which previous version did you take ?
Logger: homeassistant.config_entries Source: custom_zha_quirks/ts0601_sensor.py:54 First occurred: 19:04:46 (1 occurrences) Last logged: 19:04:46
Error setting up entry Sonoff Zigbee 3.0 USB Dongle Plus, s/n: ac5316c0b819ec1182847fe5f01c6278 - ITead for zha
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/zha/init.py", line 100, in async_setup_entry
setup_quirks(config)
File "/usr/local/lib/python3.10/site-packages/zhaquirks/init.py", line 409, in setup
importer.find_module(modname).load_module(modname)
File "
That would be fixed in the 2022.03 HA release.
Is your feature request related to a problem? Please describe. The device shows no entities![image](https://user-images.githubusercontent.com/39600990/216788786-e929461a-cf42-4dcb-988c-6ea3ea306726.png)
Describe the solution you'd like Would be nice that this device would work with zha. i thought it would because it says here its supported https://zigbee.blakadder.com/Tuya_MIR-TE100.html but maybe its a newer version?