Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tuya Air Sensor TS0601 _TZE200_mja3fuja variation #2660

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

hourliert
Copy link
Contributor

@hourliert hourliert commented Oct 19, 2023

Fix: #2659

Similar to #1013, I bought a TS0601 Tyua Air Sensor and all its entities aren't detected by HomeAssistant. It's signature is identical to the other TS0601 Tuya Air sensor devices, the only difference is the manufacturer name which seems to have a random bit added at the end.

Device signature

{
  "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.FullFunctionDevice|MainsPowered|RxOnWhenIdle|AllocateAddress: 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": "0x0104",
      "device_type": "0x0051",
      "input_clusters": [
        "0x0000",
        "0x0004",
        "0x0005",
        "0xef00"
      ],
      "output_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "242": {
      "profile_id": "0xa1e0",
      "device_type": "0x0061",
      "input_clusters": [],
      "output_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "_TZE200_mja3fuja",
  "model": "TS0601",
  "class": "zigpy.device.Device"
}

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (28da816) 86.62% compared to head (b88bc32) 86.62%.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #2660   +/-   ##
=======================================
  Coverage   86.62%   86.62%           
=======================================
  Files         279      279           
  Lines        8551     8551           
=======================================
  Hits         7407     7407           
  Misses       1144     1144           
Files Coverage Δ
zhaquirks/tuya/air/ts0601_air_quality.py 100.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TheJulianJES
Copy link
Collaborator

Thanks for the PR! Just to confirm, did you install this as a custom quirk to verify if the change works correctly for your sensor model?
If not, see my comment here on how to do that: #2661 (comment)

@hourliert
Copy link
Contributor Author

Yep, this works. Should have added that to the PR description. Thanks 🙏

Screenshot 2023-10-19 at 20 26 32

(Some value looks very off, but I wouldn't be surprised if that's because of the cheap sensor)

@TheJulianJES TheJulianJES changed the title Added another variation of TS0601 Tyua Air Sensor Add Tuya Air Sensor TS0601 _TZE200_mja3fuja variation Oct 19, 2023
Copy link
Collaborator

@TheJulianJES TheJulianJES left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TheJulianJES TheJulianJES merged commit d85ec9b into zigpy:dev Oct 19, 2023
14 checks passed
@hourliert hourliert deleted the patch-1 branch October 19, 2023 19:30
elupus pushed a commit to elupus/zha-device-handlers that referenced this pull request Jan 17, 2024
Added another variation of TS0601 Tyua Air Sensor
lgraf pushed a commit to lgraf/zha-device-handlers that referenced this pull request May 6, 2024
Added another variation of TS0601 Tyua Air Sensor
@lc8DrBean
Copy link

Hi,

I also bought this sensor : Tuya Air Sensor TS0601_TZE200_mja3fuja
I tried the Quirk: zhaquirks.tuya.air.ts0601_smart_air.TuyaSmartAirSensorGPP (and confirmed in ZHA it is using it): but it doesn't fix the issue of swapped entities.

any update on how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tuya Request/PR regarding a Tuya device
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Device Support Request] _TZE200_mja3fuja TS0601 Tuya Smart Air Box RSH-AirBox02
3 participants