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
* Blueprint Humidity Activated HVAC - After leaving Home generated invalid script with input OrderedDict([('target', OrderedDict([('entity_id', 'climate.master_bedroom')])), ('humidity_state_sensor', 'sensor.bedroom_humidity_state')]): not a valid value for dictionary value @ data['sequence'][0]['choose'][0]['sequence'][0]['target']['entity_id']. Got None
* Blueprint Humidity Activated HVAC - After leaving Home generated invalid script with input OrderedDict([('humidity_state_sensor', 'sensor.bedroom_humidity_state'), ('target', OrderedDict([('entity_id', 'climate.master_bedroom')]))]): not a valid value for dictionary value @ data['sequence'][0]['choose'][0]['sequence'][0]['target']['entity_id']. Got None
* Blueprint Humidity Activated HVAC - After leaving Home generated invalid script with input OrderedDict([('humidity_state_sensor', 'sensor.kid_s_room_humidity_state'), ('target', OrderedDict([('entity_id', 'climate.kids_room')]))]): not a valid value for dictionary value @ data['sequence'][0]['choose'][0]['sequence'][0]['target']['entity_id']. Got None
And here are the lines in scripts.yaml
humidity_kid_room_leaving:
alias: Humidity Activated HVAC - After leaving Home
use_blueprint:
path: humidity_activated_hvac_after_leaving_home.yaml
input:
humidity_state_sensor: sensor.kid_s_room_humidity_state
target:
entity_id: climate.kids_room
it’s not a bug, I never saw your replies because you didn’t reply to my message. When you reply to the thread, notifications never hit anyone else in the thread. You should get used to replying to the people by using the reply button on the message not the big blue reply button at the bottom.
You need to run the script or config check the script to see what HA doesn’t like. It thinks there’s something wrong with your script format. Can you post the resulting script?
Hi noted for the reply thanks.
How do I get the resulting script? I only see the result as I posted above in scripts.yaml (call to the blueprint with data).