Hi There,
Hope everyone is OK.
I am trying to create a condition within an automation that states “if the value of an input number is less than the external outside temperature” do this. I have this so far:
condition: template
value_template: >-
{{state_attr('input_number.hc_mb_et_override') | int <
state_attr('weather.met_office_town_name', 'temperature') | int}}
This isnt working, so i tried the below to see if this would work:
Copy to clipboard
condition: template
value_template: >-
{{state_attr('input_number.hc_mb_et_override', 'state') | int <
state_attr('weather.met_office_town_name', 'temperature') | int}}
And this also doesnt work.
Any ideas?