Skip to content

Aqara FP1 - implement region support #2202

Open
@droopanu

Description

@droopanu

Is your feature request related to a problem? Please describe.
Would you be able to implement regions for Aqara FP1?
It makes the sensor actually usable and reduces the false positives.
Zigbee2mqtt has just implemented it but I would rather use zha if possible.

Describe the solution you'd like
The following options should be implemented:

  • possibility to add/remove regions
  • parse region info from sensor and make it available in a event or sensor
  • even better, the device could create one sensor for each region and update it's status :D
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|RxOnWhenIdle|MainsPowered: 140>, manufacturer_code=4660, maximum_buffer_size=108, maximum_incoming_transfer_size=127, server_mask=11264, maximum_outgoing_transfer_size=127, 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=True, *is_receiver_on_when_idle=True, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0xfff0",
      "in_clusters": [
        "0x0000",
        "0x0002",
        "0x0003",
        "0x0406",
        "0xfcc0"
      ],
      "out_clusters": [
        "0x0003",
        "0x0019"
      ]
    }
  },
  "manufacturer": "aqara",
  "model": "lumi.motion.ac01",
  "class": "zhaquirks.xiaomi.aqara.motion_ac01.AqaraLumiMotionAc01"
}
Diagnostic information
Paste the diagnostic information here.
Don't remove the extra line breaks outside the ``` marks.
Additional logs
Paste any additional debug logs here.
Don't remove the extra line breaks outside the ``` marks.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    XiaomiRequest/PR regarding a Xiaomi devicedevice support requestThis requests support for a new deviceenhancementImprove an existing quirk

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions