This is the automation Iāve made but when a state change occurs in the numeric value (up or down) the automation does not fire. What am I doing wrong?
Ahhh okay no its not really I was playing around with it as it seemed not to be working. Ideally Iād want it to be where if the temp goes above 78 itās cuts on. So to properly test it Iād need to set the above value to 78 and let the temp go over it?
I was confused on this part as I thought that if when the state changed, if it was above the desired number regardless if coming down from like 79 to 78.7 it would then trigger it as a state change occurs and the value is above the number.
So in actually if I want it that way it needs to go from like 77 to 78 to cross the threshold?
Is there really an attribute on that entity called temperature? I suspect youāve put ātemperatureā in the attribute box but you donāt know why. Leave it blank unless you know what youāre doing.
You can use to: "18" but that might not achieve what you want.
I understand that, I was hoping I could be using the function to compare numbers rather than strings.
I also looked at the binary sensor approach yesterday but couldnāt get the systax right and HA documentation donāt tell me much or I donāt know where to look.
In short, āstateā canāt compare numbers, right?
But what If I want to have the trigger valve 18,1? Or a value of another sensor, or variable?
I have the entity sensor.baterkovy_thermostat_set_temperature
defined as float(1) template, so, Iām guessing it is a number.
The script works with int as well as real numbers.
Now Iām working on value template that exactly compares values of two entities. The HA swallows the code but doesnāt triggerā¦