Skip to content

[BUG] _TZE200_qrztc3ev TS0601 quirk errors #4192

@soosp

Description

@soosp

Bug description

_TZE200_qrztc3ev TS0601 temperature and humidity sensor is supported by the general tuya sensor quirk, but it have some errors (at least for this device).

  1. The correct alarm enum is:
class TuyaNousTempHumiAlarm(t.enum8):
    """Tuya temperature and humidity alarm enum."""

    Canceled = 0x00
    LowerAlarm = 0x01
    UpperAlarm = 0x02
  1. The minimal accepted temperature alarm value is 0 instead of -20. You get error message if you try to set below 0.

Steps to reproduce

  1. Open the sensor configuration in ZHA
  2. Set the alarm limits
  3. See the result.

Expected behavior

The alarm states are consistent with the limits are set.

Screenshots/Video

Screenshots/Video

[Paste/upload your media here]

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": 4742,
    "maximum_buffer_size": 74,
    "maximum_incoming_transfer_size": 404,
    "server_mask": 10752,
    "maximum_outgoing_transfer_size": 404,
    "descriptor_capability_field": 0
  },
  "endpoints": {
    "1": {
      "profile_id": "0x0104",
      "device_type": "0x0302",
      "input_clusters": [
        "0x0000",
        "0x0001",
        "0x0004",
        "0x0020",
        "0x0402",
        "0x0405",
        "0xef00"
      ],
      "output_clusters": [
        "0x000a",
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TZE200_qrztc3ev",
  "model": "TS0601",
  "class": "zhaquirks.tuya.builder.EnchantedDeviceV2"
}

Logs

Logs
[Paste the logs here]

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    possible bugPossible bug, yet to be confirmed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions