I have an automation for when I press an ikea on off switch it should turn off and on the lights. The lights do accordingly, no problem, But I get a message in the logs:
Logger: homeassistant.components.automation.hallway_spotlights_on
Source: helpers/script.py:1442
Integration: Automation ([documentation](https://www.home-assistant.io/integrations/automation), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+automation%22))
First occurred: 13:51:43 (2 occurrences)
Last logged: 13:51:43
Hallway spotlights on: Already running
Im not sure but maybe it triggers an error when i try to turn off the lights and they already are off? The same happens for both pressing on and off.
That message is logged when the automation is re-triggered while the automation is already running and the automation mode is set to “single” (which is default).
you need to check the automation to see why it might be re-triggering immediately.
Or just ignore the message since it isn’t really a big deal.
It’s actually me triggering the automation by pressing off/on on the switch when it was already off/on.
I wonder if it’s possible to use some logic. It should check if the light is already off/on, then it should stop the off or on automation before it performes the action.