Home-AssistantConfig icon indicating copy to clipboard operation
Home-AssistantConfig copied to clipboard

"Already running" warnings

Open baurmatt opened this issue 4 years ago • 2 comments

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.

baurmatt avatar Feb 02 '21 20:02 baurmatt

add mode: queued to the battery_sensor_from_attributes automation.

jonwaland avatar Apr 09 '21 04:04 jonwaland

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.

SamuelCarson avatar Aug 17 '21 20:08 SamuelCarson