Zigbee temperature sensor & switch only detected as "light"

I’m really new to this so please be patient!

Thanks Suggsy and klib , I’ve just bought 3 of these devices particularly for the remote temperature sensor and can’t get to work. Your post is exactly what I needed and I’ve installed the “quirk” but I can’t get it to work either.

On reboot HA reported an error in the quirk filepath so I added 2 spaces before the second line in the configuration.yaml file so it now looks like this and the error on reboot has gone, but I’m not sure if the quirk is loading correctly.

Loads default set of integrations. Do not remove.

default_config:

Load frontend themes from the themes folder

frontend:
themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

Example configuration.yaml entry

zeroconf:

for nginx

http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24

zha:
custom_quirks_path: /config/zha_quirks/

Also, the raw file I downloaded is called

homeassistant/zha_quirks/ab0188dd-b8d9-42d6-9c19-483aabd51974.txt

And not

candeo_smart_irrigation_timer.py

But the code looks the same - should I download another file from somewhere?
How can I check that the quirk is loaded and running?

Thanks

I created an account here just to thank you for this quirk. A lifesaver.

I also changed the line 93 to: DEVICE_TYPE: zha.DeviceType.SMART_PLUG,

This changes the relay from light switch to a generic switch. If needed, it can be easily converted back to light (or whatever) in the device config in HA, but as a light, it’s not that easy to convert it to anything else.

Anyone has instructions on how/where to submit this and make it official?

You downloaded a text version of a python files, so it won’t be recognised. You need to rename the file from .txt to .py for it to have a chance of being picked up.

Glad my quirk helped you, and you’re absolutely right, it is better configured as a switch than as a light. For me it didn’t matter but it’s neater your way.

Has anyone tried this device in the native Tuya ecosystem? Does the little light indicate on/off state of the switch or is it always on as with ZHA? If it is the former maybe i can try and adopt the quirk for this as well using TuyaZBOnOffAttributeCluster.

After a bit of research, it looks like the indicator light it not meant to show the status of the relay/switch. Apparently it’s a network connectivity indicator.

On the other hand, there are some settings available in the Tuya app that would be nice to have in HomeAssistant (ZHA). Units, calibration, sensitivity, restart status, child lock… Time to read some ZHA documentation :wink:

(image coming in the next post…)

Image related to the previous post (new user embed image limitations…)

Maybe not the answer you were looking for, but all those (except Units) are supported in Z2MQTT :wink:

1 Like

Good to know. Although, i’m not really in the mood for migrating Zigbee2MQTT…
This gives me hope that making it work in ZHA is doable :wink:

1 Like