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

update aqara airmonitor tvoc for 0.0.0_0029 FW #1598

Merged
merged 2 commits into from
Jun 4, 2022

Conversation

tube0013
Copy link
Contributor

@tube0013 tube0013 commented Jun 3, 2022

Updated my sensor to the latest firmware from Koenkk/zigbee-OTA#86

It changed the device signature (which now makes little sense):

{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>,
  complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0,
  frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>,
  manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264,
  maximum_outgoing_transfer_size=100, descriptor_capability_field=<DescriptorCapability.NONE: 0>,
  *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True,
  *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0402",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0003",
        "0x0500"
      ],
      "out_clusters": [
        "0x0019"
      ]
    }
  },
  "manufacturer": "LUMI",
  "model": "lumi.airmonitor.acn01",
  "class": "zigpy.device.Device"
}

PR adds a new class to match the new signature and retains the replacement clusters - tested and working.

Updated my sensor to the latest firmware: Koenkk/zigbee-OTA#86

It totally changed the device signature (makes little sense):
```
{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>,
  complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0,
  frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>,
  manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264,
  maximum_outgoing_transfer_size=100, descriptor_capability_field=<DescriptorCapability.NONE: 0>,
  *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True,
  *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0402",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0003",
        "0x0500"
      ],
      "out_clusters": [
        "0x0019"
      ]
    }
  },
  "manufacturer": "LUMI",
  "model": "lumi.airmonitor.acn01",
  "class": "zigpy.device.Device"
}

```

PR adds a new class to match the new signature - tested and wokring.
@coveralls
Copy link

coveralls commented Jun 3, 2022

Pull Request Test Coverage Report for Build 2435869737

  • 5 of 8 (62.5%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 80.231%

Changes Missing Coverage Covered Lines Changed/Added Lines %
zhaquirks/xiaomi/aqara/tvoc.py 5 8 62.5%
Totals Coverage Status
Change from base Build 2415348107: -0.02%
Covered Lines: 5568
Relevant Lines: 6940

💛 - Coveralls

Whoops - Big clean up from that first try.
@codecov-commenter
Copy link

Codecov Report

Merging #1598 (dd7e090) into dev (a55235f) will decrease coverage by 0.02%.
The diff coverage is 62.50%.

@@            Coverage Diff             @@
##              dev    #1598      +/-   ##
==========================================
- Coverage   80.25%   80.23%   -0.03%     
==========================================
  Files         231      231              
  Lines        6932     6940       +8     
==========================================
+ Hits         5563     5568       +5     
- Misses       1369     1372       +3     
Impacted Files Coverage Δ
zhaquirks/xiaomi/aqara/tvoc.py 73.80% <62.50%> (-2.67%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a55235f...dd7e090. Read the comment docs.

@dmulcahey dmulcahey merged commit b655616 into zigpy:dev Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants