I’d need your help to identify the best way to create the automation I have on my mind. I’m pretty sure I have to use templates, and I’m not good at it at all… Basically this is in summary what I’d like to accomplish:
I do have an energy monitoring device which helps to check the power consumption
the automation should turn off my climate in case the power consumption goes too high, this action should run only if the climate is running
after the power consumption goes back to normal, the automation should then turn back on the climate
Please if somebody would help it will be much appreciated. At least to give me some directions, I’m not expecting to get the code ready to use
I already know the first automation will require enhancement to handle the situation where the power consumption is already above 3500 and then someone turns on the clima_soggiorno. However, to make that enhancement, I need to know what are the possible states for clima_soggiorno (such as heat, cool, auto, etc).
as of the second automation instead, I believe that’s going to turn on the climate every time the consumption goes below 2000, and that’s not good as I would need that only in case the previous automation ran. Perhaps this can be used as condition?
So I tried the automation and the “Normal Power” doesn’t work. I managed to get it to work by removing the input_boolean condition. What could it be wrong?
Copied and pasted your code into the automation.yaml file. But now I’m probably getting the reason why it is not working, I have to create the entity first, right ? I’ve never played with it so I’m probably missing something…