Hi There,
Hope you are well.
I am having issues with the below code, which is a condition in an automation, that’s designed to prevent heating turning on, unless the outside temperature (taken from the met office) is less than or equal to the set point (which is a helper).
This seemed to work until temperatures got down to below freezing (so less than 0 degrees). It seems that the logic doesn’t see anything below “0 degrees” unless I set the override temperature to minus numbers, and it also seems to miss the temperatures that aren’t whole numbers, so 0.5 incriminates.
{{states('input_number.hc_mb_et_override') | float <= state_attr('weather.met_office_town_name', 'temperature') | float}}
Any idea as to how I can fix this?
Thanks.