conditions and advanced target

This commit is contained in:
Unknown
2025-11-10 11:22:29 -05:00
parent 18ebe99a41
commit a47dedcae5

View File

@ -11,7 +11,7 @@ blueprint:
action: {} action: {}
conditions: conditions:
name: Conditions name: Conditions
description: Set your own conditions for this automation. All conditions must pass unles you add your own OR block description: Set your own conditions for this automation. All conditions must pass unless you add your own OR block
default: [] default: []
selector: selector:
condition: condition:
@ -46,8 +46,8 @@ blueprint:
target_light: target_light:
description: A single light or group description: A single light or group
selector: selector:
entity: target:
filter: entity:
domain: light domain: light
name: Target Light name: Target Light
light_timeout: light_timeout:
@ -220,9 +220,8 @@ action:
light_timeout: 0 light_timeout: 0
target_light: !input target_light target_light: !input target_light
- if: - if:
- condition: state - condition: template
state: "on" value_template: "{{ expand(target_light.entity_id) | selectattr('state', '==', 'on') | list | count > 0 }}"
entity_id: !input target_light
then: then:
- action: !input alarm_script - action: !input alarm_script
data: data: