ha.appdaemon.aqara_motion_sensors
ha.appdaemon.aqara_motion_sensors copied to clipboard
An AppDaemon app to reset Xiaomi Aqara motion sensors after a given timeout.
Aqara Motion Sensors
Introduction
An AppDaemon app to reset Xiaomi Aqara motion sensors after a given timeout.
This hardware motion sensor hack allows motion to be detected every 5 seconds, however it still takes 300 seconds to reset the state to off. This app will motions sensor state to off after a given timeout, e.g. 5 seconds. Together your Xiaomi Aqara motion sensors can toggle state on or off every 5 seconds.
HACS Installation
- Make sure you have the option "Enable AppDaemon apps discovery & tracking". This is located in: Configuration -> Integrations -> HACS (options).
- Restart HA
- Go to HACS -> Automation -> search for "Aqara Motion Sensors" and install it.
- Follow app configuration section.
ℹ️ NOTE: If you also ControllerX, then you might have naming conflicts within HACS. To get around this you can rename either of the two integrations to e.g.
aqaramotionin thecustom_componentsfolder and do the same in yourapps.yaml.
Manual Installation
Download the aqara directory from inside the apps directory to your local apps directory, then configure the aqara module in apps.yaml.
App configuration
aqara:
module: aqara
class: Aqara
timeout: 5
motion_sensors:
- binary_sensor.bathroom_motion_sensor
- binary_sensor.bedroom_motion_sensor
- binary_sensor.kitchen_motion_sensor
- binary_sensor.lounge_motion_sensor
| key | optional | type | default | description |
|---|---|---|---|---|
module |
False | string | The module name of the app. | |
class |
False | string | The name of the Class. | |
timeout |
True | int | 5 | Timeout after which motion sensor state is set to off. |
motion_sensors |
False | list | A list of motion sensor entity_ids. |
