Recently I noticed that my logs started filling up with these messages:
Exterior Lights On Before Sunset: Already running
6:33:23 PM – Automation (WARNING) - message first occurred at September 7, 2020, 6:38:35 PM and shows up 4 times
This is the automation in question:
- alias: 'Exterior Lights On Before Sunset'
initial_state: on
trigger:
- platform: sun
event: sunset
offset: '-00:30:00'
action:
- service: script.exterior_lights
There are a few other automation that are also displaying the same error. This mainly started after the most recent update. Everything is working as it should so no complaints there. Just wondering if anyone else is seeing these warnings.
I had a long post written trying to question what was going on with sunset triggering multiple times such that it generates the warning… then I realized this automation is calling a script.
The warning only appears if the automation receives another trigger before the action sequence completes. So a couple things going on, is the automation aware of the script’s sequence such that it’s waiting for it to complete before itself completes, is the script even completing, is there a reason the sequence of the script isn’t in the action section of the automation (which itself is really a script)?
So unless the sunset event triggers multiple times and not just once per day, my guess is the action section/script is not completing and thus the warning.
Maybe your motion sensor is triggering multiple times. Enough so that the previous triggers have started the automation already and since its set to run in single mode the other instances of motion is just throwing the error.
Same issue here with an automation in an room with multiple motion sensors.
Yes, i want to just let it run once at a time → so single ist the correct automation type.