mirror of
https://github.com/steku/ha_cercadian_alarm.git
synced 2026-02-25 19:01:49 +00:00
conditions and advanced target
This commit is contained in:
@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user