All, I would like to have my low level alarm on my hottub dynamic (set via slider entry). The statement (hopefully that’s the correct terminology) is static at 30 as per below…
Based on the results you posted, the water temperature is currently 33.5 degrees, the input number is 32, so the template reports false because 33.5 is not less than 32.
Therefore the current value of binary_sensor.hot_tub_temp_low should be off. Can you confirm that?
Correct, I want the binary sensor to turn on to trigger the alert if the temp is below the setpoint. I assume just change the sign from the current “<=” to “>=” to accomplish this?.
Sorry you are correct, I am thinking in the opposite direction. I appreciate the help and I did learn something with the template editor that is pretty slick. Do you remember my other post from yesterday about the alerts not triggering, then I uploaded and older setup from a few days back and everything worked as it should ?. Well without touching it, other than what we worked on, the alerts do not trigger again (I did not update anything0, any magic tricks to see what is going on ?
hottub_water_temp_sensor:
name: Hot Tub Low Temperature
entity_id: binary_sensor.hot_tub_temp_low
state: "on"
repeat: 1
skip_first: False
message: Hot Tub Temperature is Low
done_message: Hot Tub Temperature has Returned to Normal
notifiers:
- mobile_app_RK_12
- gmail
If the suggestion I made answers your original question, please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.
It appears that you have chosen to mark your own post with the Solution tag, despite the fact it contains no information about how to answer your original question (namely how to create a Template Binary Sensor that compares a sensor’s value to an input number’s value).
This choice of Solution post won’t be helpful to other users who may be looking for answers to similar questions.
You can only mark one post in a topic with the Solution tag.
If you mark a post with the Solution tag and then mark another post, the Solution tag will be automatically removed from the first post and assigned to the second one.