Add support for Aqara Cube T1 Pro (lumi.remote.cagl02)#4825
Open
kapniksuper wants to merge 8 commits intozigpy:devfrom
Open
Add support for Aqara Cube T1 Pro (lumi.remote.cagl02)#4825kapniksuper wants to merge 8 commits intozigpy:devfrom
kapniksuper wants to merge 8 commits intozigpy:devfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #4825 +/- ##
==========================================
- Coverage 92.66% 92.64% -0.02%
==========================================
Files 380 381 +1
Lines 12766 12789 +23
==========================================
+ Hits 11829 11848 +19
- Misses 937 941 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds support for the Aqara Cube T1 Pro (
lumi.remote.cagl02). This quirk correctly parses theOppleCluster(0xFCC0) attributes to emitzha_send_eventfor flip events and active face status, utilizing the existingCubeAQGL01automation triggers andMultistateInputCluster. This allows the cube to function properly in its default "Scene Mode".Device signature
{ "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=4151, 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": "0x0103", "in_clusters": [ "0x0000", "0x0001", "0x0003", "0x0006", "0x0012" ], "out_clusters": [ "0x0000", "0x0003", "0x0019" ] }, "2": { "profile_id": 260, "device_type": "0x0103", "in_clusters": [ "0x0012" ], "out_clusters": [ "0x0012" ] }, "3": { "profile_id": 260, "device_type": "0x0103", "in_clusters": [ "0x000c" ], "out_clusters": [ "0x000c" ] } }, "manufacturer": "LUMI", "model": "lumi.remote.cagl02", "class": "zigpy.device.Device" }