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

[Device Support Request] _TZE200_c2fmom5z", "TS0601 #1512

Closed Hogesyx closed 8 months ago

Hogesyx commented 2 years ago

This new Tuya Air Box seems to be similar to the existing TuyaCO2SensorGPP class(ts0601_air_quality.py), I could get the sensor up and working just by adding the new model info entry.

    MODELS_INFO: [
        ("_TZE200_ryfmq5rl", "TS0601"),
        ("_TZE200_yvx5lh6k", "TS0601"),
        ("_TZE200_dwcarsat", "TS0601"),
        ("_TZE200_c2fmom5z", "TS0601"),
    ],

However it seems that the VOC and HCHO sensor values position are swapped? Unless the VOC sensor excludes HCHO values in the calculation, I get impossible HCHO to VOC ratio.

For example VOC: 8 µg/m³ HCHO: 19ppm (assuming unit is wrong and should be ppb, 19 ppb of HCHO is 0.023 mg/m3 which is way above the 0.008 mg/m3

Tropaion commented 2 years ago

You should post the device signature so that people can better help.

padadof2 commented 2 years ago
"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": "0x0051",
      "in_clusters": [
        "0x0000",
        "0x0004",
        "0x0005",
        "0xef00"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "_TZE200_c2fmom5z",
  "model": "TS0601",
  "class": "zigpy.device.Device"
}
egelmex commented 2 years ago

I also have this device, device signatures seem to match

{
  "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": "0x0051",
      "in_clusters": [
        "0x0000",
        "0x0004",
        "0x0005",
        "0xef00"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "_TZE200_c2fmom5z",
  "model": "TS0601",
  "class": "zigpy.device.Device"
}

What other information would you need to get this added?

zatricky commented 1 year ago

New to HA and also have this device. I have an identical signature to that which @egelmex provided. The device is detected and added but of course shows no useful sensor information from HA's perspective.

Please let me know if there's any additional steps I should take or information I could provide. :-)

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.

zatricky commented 1 year ago

Looks like this was resolved in #2073

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.