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
731 stars 673 forks source link

[Device Support Request] Sonoff Motion Sensor SNZB-03 #1017

Closed janeczku closed 3 years ago

janeczku commented 3 years ago

Is your feature request related to a problem? Please describe. Device is not correctly configured upon pairing (only power state is available)

Screenshot 2021-08-29 at 20 09 54

Describe the solution you'd like Add device quirck handler

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=0, maximum_buffer_size=80, maximum_incoming_transfer_size=160, server_mask=0, maximum_outgoing_transfer_size=160, descriptor_capability_field=<DescriptorCapability.0: 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": [
        "0x0003"
      ]
    }
  },
  "manufacturer": "eWeLink",
  "model": "MS01",
  "class": "zigpy.device.Device"
}

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

https://sonoff.tech/product/smart-home-security/snzb-03/

randomsnack commented 3 years ago

The device is working fine on my system, if you have a problem. You should remove and rejoin. Sometime it does not join properly.

{ "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=0, maximum_buffer_size=80, maximum_incoming_transfer_size=160, server_mask=0, maximum_outgoing_transfer_size=160, 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": [ "0x0003" ] } }, "manufacturer": "eWeLink", "model": "MS01", "class": "zigpy.device.Device"

image

janeczku commented 3 years ago

Thank you, i gave it a second try and it worked indeed!

LeFlairGoD commented 1 year ago

Das Gerät funktioniert auf meinem System einwandfrei, falls Sie ein Problem haben. Sie sollten es entfernen und erneut beitreten. Manchmal fügt es sich nicht richtig zusammen.

Could you adjust the sensitivity of the sensor? Or set it to maintain the detected state for one minute?