Home-AssistantConfig
Home-AssistantConfig copied to clipboard
"Already running" warnings
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.
add mode: queued to the battery_sensor_from_attributes automation.
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.