I have an automation that is triggered once my energy consumption goes to 0. The problem is: whenever I restart the pod this automation is triggered once more.
I found some old posts about using home assistant uptime however soon I realized that this happens also when I restart mosquitto so I need a better way to do that.
After playing around with the configuration I found a way that seems to be working:
Create an Boolean input
Create an automation that set input to true once the energy consumption goes above 0
Add condition to my automation where input should be true and add an action to set it to false in the end of the automation
IMO this looks like a massive work for a typical use case so I wonder if thereâs anything better. Does anyone have a better way to prevent the automation from running after restart?
The ordering of the trigger parameters looks messed up (platform: comes after below:) because I initially set it up in the UI. Itâs a bit confusing when youâre used to a certain sequence of parameters, but it works just fine.