Hi, Started using HA this week, been happily adding my devices and now looking at automation’s.
I have an evohome system, which I’m creating sensors from for the setpoint and temperature of my bedroom, plus the yr.no outside temperature and then I’m trying to use this to switch on a fan using a meross smart switch.
However, every time I trigger the automation, the action always triggers. The outside temp is >17 as I write this and it still turned the vent switch on. What am I doing wrong? Current version of the code below:
- alias: Bedroom Vent On
trigger:
- platform: time_pattern
minutes: /3
condition:
condition: and
conditions:
- condition: template # Bedroom above 17
value_template: "{{states('sensor.bedroom_temperature') | float > 17}}"
- condition: template # Outside below 17
value_template: "{{states('sensor.weather_temperature') | float < 16}}"
- condition: template # Evohome not heating room
value_template: "{{states('sensor.sensor.bedroom_target_temperature') | float < 17}}"
action:
- service: switch.turn_on
data:
entity_id: switch.meross_1903263838868125183834298f1dbf40
Results of the value templates:
{{states('sensor.bedroom_temperature') | float > 18}}
{{states('sensor.weather_temperature') | float < 16}}
{{states('sensor.sensor.bedroom_target_temperature') | float < 17}}
True
False
True