ZHA custom quirk to work with Tuya TS0601 _TZE204_dapwryy7 occupancy sensor

Hi everyone

I recently bought this occupancy sensor Tuya TS0601 _TZE204_dapwryy7 but it shows no available controls on ZHA.

I tried with some custom quirk following this guide here (it’s my first quirk integration - not sure if I’m doing it wrong):

and tried loading this custom quirk

Since my device was not listed on the python script I added this new line to the code
(“_TZE204_laokfqwu”, “TS0601”),

Deleted the existing paired device, rebooted and re-paired the device but unfortunately I still see no available controls after pairing the device to ZHA.

Anybody can point me to what I’m doing wrong?
Is there something wrong while loading thr zha quirks from configuration.yaml?

Thanks

Posting also some snapshot of my configuration.yaml (sorry the forum didn’t allow me to that in a single post)

I’m new to custom quirks but it looks like the device is not picking up the quirk

if this might help I’m running Home Assistant on Synology Nas on a dedicated VM.

You need to start by identifying the Tuya data points. Once you have those you should be able to build a quirk.

You can find them in the zigbee2mqtt source code zigbee-herdsman-converters/src/devices/tuya.ts at d999637d88e2af88e8a065fede3a0919d870ff59 · Koenkk/zigbee-herdsman-converters · GitHub, if it supported there or by using the Tuya dev console, see Find Tuya Data Points | Zigbee2MQTT. You can also get them through the diagnostics of the local Tuya integration.

Hello, here a gift (quirk v2 for this mmwave sensor) Quirk zha pour détecteur millimetrique zigbee mmwave _TZE204_dapwryy7 :wink:

1 Like

I finally got it working with a custom quirk found here, added my own version to the code.

The presence sensor works great. Sensibility control works. However the luminance sensor does not work at all and the other available controls do not work as expected either.
Not sure why but I had to wait for a day or so before I could see all the controls unlocked.

This is great! Are the controls working with this version including luminance sensor?
I’m currently testing this and this looks awesome. It’s much better than I expected it to be!

I haven’t seen the “Luminance” changing yet. Not sure if it only changes every X amount of time.
If this does work this is going to be the PERFECT zigbee device!!

merci beaucoup