I’ve been trying for awhile to get a blueprint to work properly. For some reason 2 of my conditions it keeps saying are true when they are false. I have tried several different ways so far to try to get it to work with no luck. Even though it says test3 there have been many more tries then that. Any help is much appreciated. The 2 areas of the code are
action:
- choose:
# Turn Fan ON
- conditions:
- condition: state
entity_id: !input thermostat
attribute: hvac_action
state: 'off'
for:
minutes: !input fan_off_time
and
- condition: or
conditions:
- condition: state
entity_id: !input thermostat
attribute: hvac_action
state: fan
for:
minutes: !input fan_on_time
here is the blueprint
blueprint:
name: HVAC Fan Circulate Test 3
description: Control HVAC fan to circulate on and off
domain: automation
input:
thermostat:
name: Thermostat
selector:
entity:
domain: climate
fan_on_time:
name: Fan ON time
default: 15
selector:
number:
min: 5
max: 120
unit_of_measurement: minutes
fan_off_time:
name: Fan OFF time
default: 30
selector:
number:
min: 5
max: 120
unit_of_measurement: minutes
house_state:
name: House State
selector:
entity:
domain: input_select
house_state_not:
name: House State to NOT circulate in
default: ""
turned_on:
name: Virtual Boolean Switch
selector:
entity:
domain: input_boolean
trigger:
- platform: state
entity_id: !input thermostat
attribute: hvac_action
to: 'off'
for:
minutes: !input fan_off_time
- platform: state
entity_id: !input thermostat
attribute: hvac_action
to: fan
for:
minutes: !input fan_on_time
- platform: state
entity_id: !input thermostat
attribute: hvac_action
action:
- choose:
# Turn Fan ON
- conditions:
- condition: state
entity_id: !input thermostat
attribute: hvac_action
state: 'off'
for:
minutes: !input fan_off_time
- condition: not
conditions:
- condition: state
entity_id: !input house_state
state: !input house_state_not
sequence:
- service: climate.set_fan_mode
target:
entity_id: !input thermostat
data:
fan_mode: 'on'
- service: input_boolean.turn_on
target:
entity_id: !input turned_on
# Turn fan OFF if automation started fan
- conditions:
- condition: and
conditions:
- condition: state
entity_id: !input turned_on
state: 'on'
- condition: or
conditions:
- condition: state
entity_id: !input thermostat
attribute: hvac_action
state: fan
for:
minutes: !input fan_on_time
- condition: not
conditions:
condition: state
entity_id: !input thermostat
attribute: hvac_action
state: fan
sequence:
- service: climate.set_fan_mode
target:
entity_id: !input thermostat
data:
fan_mode: auto
- service: input_boolean.turn_off
target:
entity_id: !input turned_on
mode: queued
max: 10