I have an automation with a time pattern trigger which checks all the motion sensors in the house and sets an input_boolean to “on” if there is no movement anywhere. It’s supposed to run every 30 minutes.
Sounds simple, and all has been well for several weeks, but suddenly I get a massive queue:
Logger: homeassistant.components.automation.no_movement Source: helpers/script.py:1344 Integration: Automation (documentation, issues) First occurred: 01:38:35 (202605 occurrences) Last logged: 01:59:59 No movement: Already running
Presumably something to do with Summer Time ending and the clocks going back? If so, how do I stop it happening next year? The automation is pretty simple:
- id: '1630684772441' alias: No movement description: Runs every 30 min. If no movement has been registered by any motion sensor for 30 min , set flag to on (flag turned off again when movement detected in any room). trigger: - platform: time_pattern minutes: /30 condition: - condition: state entity_id: binary_sensor.bedroom_motion_sensor_motion state: 'off' for: hours: 0 minutes: 30 seconds: 0 milliseconds: 0 - condition: state entity_id: binary_sensor.landing_motion_sensor_motion state: 'off' for: hours: 0 minutes: 30 seconds: 0 milliseconds: 0 # Condition repeated for each motion sensor... Left out here for brevity's sake. action: - service: input_boolean.turn_on target: entity_id: input_boolean.no_movement mode: single