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.
- 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.
Download the aqara
directory from inside the apps
directory to your local apps
directory, then configure the aqara
module in apps.yaml
.
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. |