Hey so I’m new to HA and I’[m trying to use helpers in the above and below section of a temperature sensor. I have a trigger if the temperature changes and a template condition.
Then an action to turn on a relay. Every time I test the condition I get an error.
In 'template' condition: ValueError: Template error: int got invalid input 'unavailable' when rendering
template 'trigger: - platform: template value_template: "{{ states('sensor.inside_temp_temperature')|int
> states('input_number.max_temperature')|int or states('inside_temp_temperature')|int <
states('input_number.min_temperature')|int }}"' but no default was specified
I think you’re getting confused over triggers and conditions, though. You’ve posted a template trigger above, not a condition. Post the full YAML of the automation that you have, and explain carefully what you want it to do.
Oh shoot thanks I didn’t even notice that. This is my full YAML. I want the relay to turn on whenever the input min and max temperature is lower or higher than the sensor.