Hi,
I have this script blueprint but it’s not working. When I try to add a script based on it, nothing appears (despite the lines being added in my scripts.yaml).
Here is the script:
blueprint:
name: Humidity Activated HVAC - After leaving Home
description: Turn an air condition on in dry mode based on the humidity level
domain: script
input:
humidity_state_sensor:
name: "Humidity State Sensor"
description: "Must output 3 values: low, medium or high."
selector:
entity:
domain: sensor
target:
name: "Air Conditioner"
description: "Select a HVAC unit or a room."
selector:
target:
entity:
domain: climate
sequence:
- choose:
- conditions:
- condition: state
entity_id: !input humidity_state_sensor
state: high
sequence:
- service: climate.set_hvac_mode
data:
hvac_mode: dry
target:
entity_id: !input target
- wait_for_trigger:
- platform: state
entity_id: !input humidity_state_sensor
from: medium
to: low
- platform: state
entity_id: !input humidity_state_sensor
from: high
to: low
- service: climate.set_hvac_mode
target:
entity_id: !input target
data:
hvac_mode: 'off'
- conditions:
- condition: or
conditions:
- condition: state
entity_id: !input humidity_state_sensor
state: medium
- condition: state
entity_id: !input humidity_state_sensor
state: low
sequence:
- service: climate.set_hvac_mode
data:
hvac_mode: 'off'
target:
entity_id: !input target
default: []
mode: parallel
max: 10
Thanks!