zigpy / zha-device-handlers

ZHA device handlers bridge the functionality gap created when manufacturers deviate from the ZCL specification, handling deviations and exceptions by parsing custom messages to and from Zigbee devices.
Apache License 2.0
720 stars 669 forks source link

[BUG] Tuya Air Quality gives incoherents values #1707

Closed lhanneus closed 7 months ago

lhanneus commented 2 years ago

The Tuya air quality detector located here zhaquirks/tuya/air/ts0601_air_quality.py gives incoherents values for one of the 2 devices : 149,9°C temperature and 105,% of humidity. Quirk : zhaquirks.tuya.air.ts0601_air_quality.TuyaCO2SensorGPP

The 2 sensors are installed in the same environment and positioned 20cm apart . tuya_air_quality

javicalle commented 2 years ago

Can you share the device's signature for both devices? Please, be sure to format the code putting it inside the ``` marks.

Eales commented 2 years ago

I have a similar problem, I have one such sensor, but the current on the tread for Co2 and formaldehyde were swapped with each other.

image

interlock commented 1 year ago

I am also seeing swapped values for CO2 and Formaldehyd

{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0100",
      "in_clusters": [
        "0x0000",
        "0x0004",
        "0x0005",
        "0x0402",
        "0x0405",
        "0x040d",
        "0x042b",
        "0x042e",
        "0xef00"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "_TZE200_dwcarsat",
  "model": "TS0601",
  "class": "zhaquirks.tuya.air.ts0601_air_quality.TuyaCO2SensorGPP"
}
drmulligan commented 1 year ago

1406 and #1563 are related. Variants of this device is not properly supported yet with missing or sensors mixed up.

In my case my zigbee signature is identical to the one posted by @interlock above and as they reported CO2 and Formaldehyde are reversed but also Voclevel is actually reporting PM2.5 values and the VOC is missing.

pamatika commented 1 year ago

Any updates on this issue? Is there someway to help in debugging?

lhanneus commented 1 year ago

The hardware is badly designed and give incoherent data. Anyone should avoid buying it.

Oliviakrkk commented 1 year ago

Are there any alternatives? Heiman HS2AQ is there, but no one is selling it...

marinswk commented 1 year ago

Is this being investigated? is there a way in which a fix can be pushed? it basically renders a whole set of devices unusable on ZHA, i think there is already a solution on Z2QMTT integration.

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

drmulligan commented 1 year ago

I can confirm that this is still an issue for _TZE200_dwcarsat.

github-actions[bot] commented 8 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.