To start with I want to apologise if this is posted in the wrong place I am quite new to HA and to the HA community.
I’ve recently begun to explore scripts and input booleans and I thought I had a handle on how to use them and then I tried to put together what I thought would be a simple automation to trigger scripts I had created based on a toggle input boolean… and then it straight up didn’t work.
It would be great if someone could help explain what I’m doing wrong here and educate me on how best to overcome this issue in the future.
What I am trying to Automate: I have a script that I have created to change my Ecobee thermostat service “fan run time” to 60min; and a second script that changes the thermostat service ‘fan run time’ to 0min. I have also created a toggle input boolean which I want to run the “60min” script when it is turned on, and run the “0min” script when it is turned off.
I have tested both the scripts and they trigger the correct service and each runs correctly.
However below is my apparently broken ass attempt at automating this task as it does not run.
Automation:
id: '1647867776674'
alias: Ecobee Fan On
description: ''
trigger:
- platform: state
entity_id: input_boolean.ecobee_fan_on_off
to: 'On'
from: 'Off'
condition: []
action:
- service: script.ecobee_fan_on
mode: single
- id: '1647868083512'
alias: Ecobee Fan Off
description: ''
trigger:
- platform: state
entity_id: input_boolean.ecobee_fan_on_off
to: 'Off'
from: 'On'
condition: []
action:
- service: script.ecobee_fan_off
Scripts:
ecobee_fan_on:
alias: Ecobee Fan On
sequence:
- service: ecobee.set_fan_min_on_time
data:
entity_id: climate.heater
fan_min_on_time: 60
mode: single
icon: mdi:hvac
ecobee_fan_off:
alias: Ecobee Fan Off
sequence:
- service: ecobee.set_fan_min_on_time
data:
fan_min_on_time: 0
entity_id: climate.heater
mode: single
icon: mdi:hvac-off
I’m completely at an impasse as to what I am doing wrong here. Could somebody please help this noob with some noob-friendly instructions on how to get this right if I’m going about it the wrong way.
Thanks in advance