Since I updated to 2023.8 last night a lot of my automations have been failing and I cannot figure out why. It seems to be the ones that employ “mode: restart” as well as a delay before triggering that same automation again.
What happens: The automation is started once and seems to never stop again.
- alias: Upstairs Servercorner Motion starts Lamp
trigger:
- platform: state
entity_id: binary_sensor.motion_servercorner
to: 'on'
action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.motion_servercorner
state: 'on'
sequence:
- service: switch.turn_on
target:
entity_id:
- switch.plug_desk
- delay: "00:05:00"
- service: automation.trigger
target:
entity_id:
- automation.upstairs_servercorner_motion_starts_lamp
default:
- service: switch.turn_off
target:
entity_id:
- switch.plug_desk
mode: restart
max_exceeded: silent
Attributes:
last_triggered: 2023-08-03T08:48:33.218611+00:00
mode: restart
current: 1
friendly_name: Upstairs Servercorner Motion starts Lamp
Turned on triggered by automation Upstairs Servercorner Motion starts Lamp triggered by state of Motion Sensor Servercorner
10:48:33 - 16 minutes ago
Since binary_sensor.motion_servercorner
was off, the automation should have been triggered five minutes later, which it hasn’t.
When I open Settings->Dashboard->Automations, running the automation manually does not work (last triggered stays at 16 minutes ago no matter how often I click “run”).
Also, I cannot seem to disable those automations in question that are running forever. (Other automations can be disabled and re-enabled as expect).
Potentially relevant (?): When I click “traces”, an empty dialogue opens with just an “ok” button in it, which seems to be true for all automations, even the ones working.
Note: Other automations (mode: single
and no delay) seem to work as expected.
All of this has worked for months. So, I do not see why it is failing now after the update to 2023.8.
Please help!