zha-device-handlers icon indicating copy to clipboard operation
zha-device-handlers copied to clipboard

[Device Support Request] add soil moisture and temperature sensor Tuya _TZE284_awepdiwi

Open dethegeek opened this issue 5 months ago • 1 comments

Problem description

I bought the following device : https://fr.aliexpress.com/item/1005008785131043.html

My HomeAssistant is up to date, I had to update ts0601_sensor.py to make it work.

See the following diff: https://github.com/zigpy/zha-device-handlers/compare/dev...dethegeek:zha-device-handlers:patch-1

Image

Solution description

The following diff seems to work: https://github.com/zigpy/zha-device-handlers/compare/dev...dethegeek:zha-device-handlers:patch-1

Screenshots/Video

Screenshots/Video

Image

Diagnostics information

No response

Device signature

Device signature

{
  "node_descriptor": {
    "logical_type": 2,
    "complex_descriptor_available": 0,
    "user_descriptor_available": 0,
    "reserved": 0,
    "aps_flags": 0,
    "frequency_band": 8,
    "mac_capability_flags": 128,
    "manufacturer_code": 4417,
    "maximum_buffer_size": 66,
    "maximum_incoming_transfer_size": 66,
    "server_mask": 10752,
    "maximum_outgoing_transfer_size": 66,
    "descriptor_capability_field": 0
  },
  "endpoints": {
    "1": {
      "profile_id": "0x0104",
      "device_type": "0x0051",
      "input_clusters": [
        "0x0000",
        "0x0001",
        "0x0004",
        "0x0005",
        "0x0402",
        "0x0408",
        "0xed00",
        "0xef00"
      ],
      "output_clusters": [
        "0x000a",
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TZE284_awepdiwi",
  "model": "TS0601",
  "class": "zigpy.quirks.v2.CustomDeviceV2"
}

Logs

Logs

[Paste the logs here]

Custom quirk

Custom quirk

(
    TuyaQuirkBuilder("_TZE284_aao3yzhs", "TS0601")
    .applies_to("_TZE284_sgabhwa6", "TS0601")
    .applies_to("_TZE284_nhgdf6qr", "TS0601")  # Giex GX04
    .applies_to("_TZE284_ap9owrsa", "TS0601")  # Novadigital SG-ZB
    .applies_to("_TZE284_awepdiwi", "TS0601")  
    .tuya_temperature(dp_id=5, scale=10)
    .tuya_battery(dp_id=15)
    .tuya_soil_moisture(dp_id=3)
    .skip_configuration()
    .add_to_registry()
)

Additional information

No response

dethegeek avatar Jun 23 '25 18:06 dethegeek