Hi Folks,
Have been trying for almost a week to make this automation work, but I just cannot get it to work.
alias: Start Fan
description: Start fan based on damper status and temperature
trigger:
- platform: numeric_state
entity_id: sensor.inside_temp_temperature
below: '25'
above: '20'
condition:
- condition: state
entity_id: switch.damperrelay
state: 'On'
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.fanrelay
mode: single
There has to be something I am missing? No matter how many setting I change, or other automations I modify this will just not trigger?
Thanks for the feedback… I want the ‘fan’ to turn on if the temperature in the room is between 20 and 25 degrees celsius. So are you saying this script will not trigger based on the automation I shared?
Thank you for the feedback, it is a big help. I have changed the automation to have a Start Fan and Stop Fan.
Here’s the Start Fan
alias: Start Fan
description: Star Fan Based on Temperature and Damper Status
trigger:
- platform: numeric_state
entity_id: sensor.inside_temp_temperature
above: '25'
condition:
- condition: state
entity_id: switch.damperrelay
state: 'on'
action:
- service: switch.turn_on
target:
entity_id: switch.fanrelay
mode: single
My thinking is that when the temperature exceeds 25 then the fan should turn on?