adds comments

This commit is contained in:
2026-03-03 08:27:57 +01:00
parent ed27372199
commit 3a451a034e

View File

@@ -92,13 +92,41 @@ blueprint:
mode: restart mode: restart
max_exceeded: silent max_exceeded: silent
trigger: ################################################################################
- platform: state # TRIGGER VARIABLES
# Everything defined here can be used inside Jinja code in triggers
################################################################################
trigger_variables:
motion_sensors: !input motion_sensors
################################################################################
# VARIABLES
################################################################################
variables:
version: "2026.03.2"
#blind_entities: "{{ expand(blind) | map(attribute='entity_id') | list }}"
################################################################################
# TRIGGERS
################################################################################
triggers:
# Trigger when motion is detected by any of the defined motion sensors
- trigger: state
entity_id: !input motion_sensors entity_id: !input motion_sensors
from: "off" from: "off"
to: "on" to: "on"
action: # - trigger: template
# value_template: >
# {{ expand('binary_sensor.window1', 'binary_sensor.window2',
# 'binary_sensor.window3', 'binary_sensor.window4')
# | selectattr('state', 'eq', 'on') | list | count == 4 }}
################################################################################
# ACTIONS
################################################################################
actions:
- choose: - choose:
# "Activate off-scene if illuminance is above threshold" # "Activate off-scene if illuminance is above threshold"
- conditions: - conditions: