core icon indicating copy to clipboard operation
core copied to clipboard

aqara pir sensors do not detect motion

Open hedevej41 opened this issue 3 years ago • 4 comments

The problem

Since last update aqara pir do not detect motion. temp and lux work fine but the motion wil not go on

What version of Home Assistant Core has the issue?

2022.9

What was the last working version of Home Assistant Core?

2022.8

What type of installation are you running?

Home Assistant OS

Integration causing the issue

zha

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zha/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

hedevej41 avatar Sep 20 '22 19:09 hedevej41

Hey there @dmulcahey, @adminiuga, @puddly, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


zha documentation zha source (message by IssueLinks)

Fill out the issue template. Without diagnostic information and debug logs, there's not enough information.

puddly avatar Sep 20 '22 19:09 puddly

diagnoctic here. i dont know to see debug logs for the specific sensor.

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2022.9.5", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.5", "docker": true, "arch": "x86_64", "timezone": "Europe/Copenhagen", "os_name": "Linux", "os_version": "5.15.67", "supervisor": "2022.09.1", "host_os": "Home Assistant OS 9.0", "docker_version": "20.10.17", "chassis": "embedded", "run_as_root": true }, "custom_components": { "xiaomi_miot_raw": { "version": "v1.3.1", "requirements": [ "construct", "python-miio>=0.5.3" ] }, "eloverblik": { "version": "0.2.0", "requirements": [ "pyeloverblik==0.1.0" ] }, "energidataservice": { "version": "0.4.1", "requirements": [ "CurrencyConverter==0.16.13" ] }, "presence_simulation": { "version": "2.2", "requirements": [] }, "hpprinter": { "version": "1.0.8", "requirements": [ "xmltodict==0.12.0" ] }, "eforsyning": { "version": "2.0.2", "requirements": [] }, "blitzortung": { "version": "1.0.1", "requirements": [ "paho-mqtt>=1.5.0" ] }, "dwains_dashboard": { "version": "3.3.0", "requirements": [] }, "mass": { "version": "2022.8.4", "requirements": [ "music-assistant==1.8.7" ] }, "sonoff": { "version": "3.2.0", "requirements": [ "pycryptodome>=3.6.6" ] }, "average": { "version": "2.3.0", "requirements": [] }, "xiaomi_cloud_map_extractor": { "version": "v2.2.0", "requirements": [ "pillow", "pybase64", "python-miio", "requests", "pycryptodome" ] }, "google_home": { "version": "1.9.15", "requirements": [ "glocaltokens==0.6.8" ] }, "alarmo": { "version": "v1.9.5", "requirements": [] }, "nodered": { "version": "1.0.9", "requirements": [] }, "powercalc": { "version": "v0.25.5", "requirements": [ "numpy>=1.21.1" ] }, "dukaone": { "version": "1.0.6", "requirements": [ "dukaonesdk==1.0.4" ] }, "localtuya": { "version": "4.1.0", "requirements": [] }, "nordpool": { "version": "0.0.7", "requirements": [ "nordpool>=0.2" ] }, "hacs": { "version": "1.27.2", "requirements": [ "aiogithubapi>=22.2.4" ] } }, "integration_manifest": { "domain": "zha", "name": "Zigbee Home Automation", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/zha", "requirements": [ "bellows==0.33.1", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.79", "zigpy-deconz==0.18.1", "zigpy==0.50.3", "zigpy-xbee==0.15.0", "zigpy-zigate==0.9.2", "zigpy-znp==0.8.2" ], "usb": [ { "vid": "10C4", "pid": "EA60", "description": "2652", "known_devices": [ "slae.sh cc2652rb stick" ] }, { "vid": "1A86", "pid": "55D4", "description": "sonoffplus*", "known_devices": [ "sonoff zigbee dongle plus v2" ] }, { "vid": "10C4", "pid": "EA60", "description": "sonoffplus*", "known_devices": [ "sonoff zigbee dongle plus" ] }, { "vid": "10C4", "pid": "EA60", "description": "tubeszb", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "tubeszb", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "zigstar", "known_devices": [ "ZigStar Coordinators" ] }, { "vid": "1CF1", "pid": "0030", "description": "conbee", "known_devices": [ "Conbee II" ] }, { "vid": "10C4", "pid": "8A2A", "description": "zigbee", "known_devices": [ "Nortek HUSBZB-1" ] }, { "vid": "0403", "pid": "6015", "description": "zigate", "known_devices": [ "ZiGate+" ] }, { "vid": "10C4", "pid": "EA60", "description": "zigate", "known_devices": [ "ZiGate" ] }, { "vid": "10C4", "pid": "8B34", "description": "bv 2010/10", "known_devices": [ "Bitron Video AV2010/10" ] } ], "codeowners": [ "@dmulcahey", "@adminiuga", "@puddly" ], "zeroconf": [ { "type": "_esphomelib._tcp.local.", "name": "tube*" }, { "type": "_zigate-zigbee-gateway._tcp.local.", "name": "zigate" } ], "dependencies": [ "file_upload" ], "after_dependencies": [ "onboarding", "usb", "zeroconf" ], "iot_class": "local_polling", "loggers": [ "aiosqlite", "bellows", "crccheck", "pure_pcapy3", "zhaquirks", "zigpy", "zigpy_deconz", "zigpy_xbee", "zigpy_zigate", "zigpy_znp" ], "is_built_in": true }, "data": { "ieee": "REDACTED", "nwk": 17002, "manufacturer": "LUMI", "model": "lumi.sensor_motion.aq2", "name": "LUMI lumi.sensor_motion.aq2", "quirk_applied": true, "quirk_class": "zhaquirks.xiaomi.aqara.motion_aq2.MotionAQ2", "manufacturer_code": 4151, "power_source": "Battery or Unknown", "lqi": 167, "rssi": null, "last_seen": "2022-09-20T21:09:20", "available": true, "device_type": "EndDevice", "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=0, 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": "0x0107", "in_clusters": [ "0x0000", "0x0001", "0x0002", "0x0003", "0x0400", "0x0406", "0x0500", "0xffff" ], "out_clusters": [ "0x0000", "0x0019" ] } } }, "active_coordinator": false, "entities": [ { "entity_id": "binary_sensor.pir_sensor_ude_occupancy", "name": "LUMI lumi.sensor_motion.aq2" }, { "entity_id": "binary_sensor.pir_sensor_ude_ias_zone", "name": "LUMI lumi.sensor_motion.aq2" }, { "entity_id": "button.lumi_lumi_sensor_motion_aq2_c9444d05_identify", "name": "LUMI lumi.sensor_motion.aq2" }, { "entity_id": "sensor.pir_sensor_ude_battery", "name": "LUMI lumi.sensor_motion.aq2" }, { "entity_id": "sensor.pir_sensor_ude_illuminance", "name": "LUMI lumi.sensor_motion.aq2" }, { "entity_id": "sensor.pir_sensor_ude_temperature", "name": "LUMI lumi.sensor_motion.aq2" } ], "neighbors": [], "endpoint_names": [ { "name": "OCCUPANCY_SENSOR" } ], "user_given_name": "Pir Sensor Ude", "device_reg_id": "94cb0016541a0b4e374def29fc174c21", "area_id": "ude", "cluster_details": { "1": { "device_type": { "name": "OCCUPANCY_SENSOR", "id": 263 }, "profile_id": 260, "in_clusters": { "0x0000": { "endpoint_attribute": "basic", "attributes": { "0x0001": { "attribute_name": "app_version", "value": 5 }, "0x0004": { "attribute_name": "manufacturer", "value": "LUMI" }, "0x0005": { "attribute_name": "model", "value": "lumi.sensor_motion.aq2" } }, "unsupported_attributes": {} }, "0x0001": { "endpoint_attribute": "power", "attributes": { "0x0020": { "attribute_name": "battery_voltage", "value": 30.6 }, "0x0021": { "attribute_name": "battery_percentage_remaining", "value": 168 } }, "unsupported_attributes": {} }, "0x0003": { "endpoint_attribute": "identify", "attributes": {}, "unsupported_attributes": {} }, "0x0002": { "endpoint_attribute": "device_temperature", "attributes": { "0x0000": { "attribute_name": "current_temperature", "value": 1600 } }, "unsupported_attributes": {} }, "0x0400": { "endpoint_attribute": "illuminance", "attributes": { "0x0000": { "attribute_name": "measured_value", "value": 8451.980400142567 } }, "unsupported_attributes": {} }, "0x0406": { "endpoint_attribute": "occupancy", "attributes": { "0x0000": { "attribute_name": "occupancy", "value": 0 } }, "unsupported_attributes": {} }, "0x0500": { "endpoint_attribute": "ias_zone", "attributes": { "0x0000": { "attribute_name": "zone_state", "value": 0 }, "0x0001": { "attribute_name": "zone_type", "value": 13 } }, "unsupported_attributes": {} }, "0xffff": { "endpoint_attribute": "manufacturer_specific", "attributes": {}, "unsupported_attributes": {} } }, "out_clusters": { "0x0000": { "endpoint_attribute": "basic", "attributes": {}, "unsupported_attributes": {} }, "0x0019": { "endpoint_attribute": "ota", "attributes": {}, "unsupported_attributes": {} } } } } } }

hedevej41 avatar Sep 20 '22 19:09 hedevej41

lumi.sensor_motion.aq2 is effectively a push-only sensor, it has no configuration and just sends updates. If you aren't receiving motion events but receiving SoC temperature and luminosity readings, the device is active. Try changing its battery.

puddly avatar Sep 20 '22 19:09 puddly

@puddly Change battery do not help. but after core update 2022.9.6 the sensors work again

hedevej41 avatar Sep 22 '22 18:09 hedevej41