notoriousbdg / Home-AssistantConfig

Apache License 2.0
180 stars 49 forks source link

"Already running" warnings #29

Open baurmatt opened 3 years ago

baurmatt commented 3 years ago

The HA log get's spammed with the following error after enabling this package:

WARNING (MainThread) [homeassistant.components.automation.battery_sensor_from_attributes] battery_sensor_from_attributes: Already running

I think this is due to the new automation running mode feature in HA > 0.113 -> https://www.home-assistant.io/blog/2020/07/22/release-113/#automations--scripts-running-modes

I currently use HA 2021.1.5.

jonwaland commented 3 years ago

add mode: queued to the battery_sensor_from_attributes automation.

SamuelCarson commented 3 years ago

If you add Mode: to the battery_sensor_from_attributes automation, then you trade the "Already running" warnings for the Maximum number of runs exceeded warnings when the number of queued automations exceeds the maximum allowed. Better the user mode: single and fix the recurring invocations of battery_sensor_from_attributes automation. That way only one automation runs. This is probably enough since the battery_sensor_from_attributes automation runs every minute.