Hello everybody
I’m trying to build up a very easy automation to check the voltage of a couple the batteries using variables, but I can get ride of it. Here the code
Your automation might not have proper indentation (which is critical for YAML) however no one can tell for sure because what you posted is not formatted correctly.
Be aware that the automation does not “check” the voltage… For your numeric state trigger, the voltage has to change from above 2.6 to below 2.6 for the trigger to fire and the actions to be executed. If your batteries are already below 2.6v, they will have to go above 2.6v then back below it to trigger the automation.
I’ve got the point. Thank you very much, I will try it. I could insert a condition to test it … as the voltage value remains below 5 for 2 minutes let’s say. Should it trigger in that case?
It’s a Numeric State Trigger so the value has to cross the threshold. That means it must decrease from a value above 2.6 to a value below 2.6 to trigger.
Fires when the numeric value of an entity’s state (or attribute’s value if using the attribute property, or the calculated value if using the value_template property) crosses (and only when crossing) a given threshold.
Thank you to all. I understood the concept. I forced the value as Drew suggested and it worked. Nevertheless, I will read the text formatting document as the cut and paste doesn’t work as far as I’ve seen
The purpose of the Solution tag is to mark the post that solved the original problem. You marked your own post but it contains no information to help users solve a similar problem.
The problem appears to be that you didn’t understand how a Numeric State Trigger works. Your post, the one you marked as the Solution, doesn’t explain how it works.