Cannot Figure Out Quirks....feeling stooopid

So I have one of these: https://www.aliexpress.us/item/3256805815064396.html

Followed this thread: Troubleshooting TZE284 Temp/Humid sensor Custom quirk in ZHA

Tried to set myself up for the quirks to run

configuration.yaml entered

###### Enable ZHA Custom Quirks ######
zha:
  database_path: /config/zigbee.db
  enable_quirks: true
  custom_quirks_path: /config/zha_quirks/

Have the folder structure
image

Doesn’t appear to be applying the quirk

this post referenced doing an install of sorts

I run my HA on proxmox as supervised

I know this might sound so simple but I dont know what I am missing, I can grab logs but I need a bit of guidance on that, im a pretty Out of Box user nothing crazy set up but struggling with a few of these niches

wondering if anyone can help me out :slight_smile:

no one out there with any info they can share?

Would need to see the actual quirk you are trying to use. Make sure you are in the latest HA version also.

Your quirks path is defined as
‘custom_quirks_path: /config/zha_quirks’ but the screenshot shows you’re saving the file in
‘custom_quirks_path: /config/zha_quirks/tuya’.

I would start by making sure those 2 paths are the same.

1 Like

thank you so much for your response, I assumed you could store your quirks in a structure under the root defined folder, I will move the quirk as I only have one to keep things simple for troubleshooting considering I have zero understanding :sweat_smile:

I have now moved my file to the root folder and deleted the ‘tuya’ folder.

File is tuya_sensor.py which is the same file from here: zha-device-handlers/zhaquirks/tuya/tuya_sensor.py at 8b3560ee6d9cc105df7b698cec021ceacf14af1f · zigpy/zha-device-handlers · GitHub

I have just added my line with the comment “#AliExpress Sensor” in this section:

(
    TuyaQuirkBuilder("_TZE284_aao3yzhs", "TS0601")
    .applies_to("_TZE284_sgabhwa6", "TS0601")
    .applies_to("_TZE284_nhgdf6qr", "TS0601")  # Giex GX04
    .applies_to("_TZE284_vvmbj46n", "TS0601")  # AliExpress Sensor
    .tuya_temperature(dp_id=5, scale=10)
    .tuya_battery(dp_id=15)
    .tuya_soil_moisture(dp_id=3)
    .skip_configuration()
    .add_to_registry()
)

Also these are my current system versions

apologies I replied to the wrong message in the thread, let me know if there’s anything else I can provide to assist :slight_smile:

ok for the first time I finally see the quirk has taken hold

1 Like

So it’s working now? If you still get unknown values, try a single short press the button on your sensor to wake it up & force it to send an update.

so it now at least detects the quirk and applies it to my device, now I would assume my troubleshooting will be to find the right device and ID. I just couldn’t for the life of me understand why I couldn’t get my device to detect the quirk. does this also mean that I can’t keep the quirk folder organised at all?