I have created a few trigger and value templates in the past and i thought i understood them, but with the current one i am creating i must me missing something and would very much appreciate some assistance in getting it working.
I am trying to check whether the current temperature attribute on my TRV is greater than a numeric helper + offset. The individual lines work in the dev tools template editor however the comparison although doesnt error doesnt calculate correctly as it seems to not use the value of the input_number but instead takes the default value of 0.
{{ state_attr('climate.bedroom_radiator', 'current_temperature')}}
{{ states('input_number.bedroom_heat_temperature') | int + 3}}
{{ state_attr('climate.bedroom_radiator', 'current_temperature') > ( 'input_number.bedroom_heat_temperature'| int(0)) + 3}}
I have also added a screenshot of the current outputs. If i change the 0 in the brackets to 16 then the comparison will go false, leading me to deduce it’s not taking the input number value but just using the default of 0.
What am i doing wrong here?