Hi,
I’m trying to create my first blueprint.It should automate the behaviour, what to do if I open a windows in a specific room.
I did group my window sensors.
How do I do this right?
blueprint:
name: Heizung-Fenster-Steuerung
domain: automation
input:
area:
name: Raum
selector:
area:
description: ""
variables:
area: !input 'area'
trigger:
- platform: state
entity_id:
- binary_sensor.raum_{{area}}
for:
hours: 0
minutes: 0
seconds: 10
condition:
- condition: not
conditions:
- condition: state
entity_id: switch.schedule_heizperiode_aus
state: "on"
enabled: true
action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.raum_{{area}}
state: "on"
sequence:
- service: scene.create
data:
snapshot_entities:
- switch.schedule_{{area}}
- climate.thermostat_{{area}}
scene_id: temp_{{area}}
- repeat:
sequence:
- service: climate.turn_off
data: {}
target:
entity_id: climate.thermostat_{{area}}
until:
- condition: state
entity_id: climate.thermostat_{{area}}
state: "off"
- conditions:
- condition: state
entity_id: binary_sensor.raum_{{area}}
state: "off"
sequence:
- repeat:
sequence:
- service: climate.turn_on
data: {}
target:
entity_id: climate.thermostat_{{area}}
until:
- condition: not
conditions:
- condition: state
entity_id: climate.thermostat_{{area}}
state: "off"
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- service: scene.turn_on
target:
entity_id: scene.temp_{{area}}
metadata: {}