I bought a Tuya soil sensor from AliExpress and it came as a model "_TZE284_myd45weu" which isn't supported by ZHA yet. It is supported by Z2M though (https://github.com/Koenkk/zigbee-herdsman-converters/commit/eb426d4ce862c392e3b45ac27a6e95cc042ad72a). So according to that file, the same quirk that handles _TZE200_myd45weu will also handle _TZE284_myd45weu. I found a zha quirk here (https://github.com/zigpy/zha-device-handlers/blob/04ac526e91be12a8d994363da4da4003760aa205/zhaquirks/tuya/ts0601_sensor.py) and it handles _TZE200_myd45weu so I tried modifying it to also handle my _TZE284_myd45weu:
MODELS_INFO: [
("_TZE200_myd45weu", "TS0601"),
("_TZE200_ga1maeof", "TS0601"),
("_TZE284_myd45weu", "TS0601"),
],
I saved the file in /config/quirks/ts0601_sensor.py (see image) and added this to my /homeassistant/configuration.yaml file:
zha:
enable_quirks: true
custom_quirks_path: /config/quirks
I restarted HA and readded the device to ZHA, however, it doesn't appear that the quirk is taking effect (see image). Any idea what I'm doing wrong?