mirror of
https://github.com/steku/ha_cercadian_alarm.git
synced 2025-12-15 19:09:36 +00:00
conditions and advanced target
This commit is contained in:
@ -44,12 +44,12 @@ blueprint:
|
|||||||
- script
|
- script
|
||||||
multiple: false
|
multiple: false
|
||||||
target_light:
|
target_light:
|
||||||
name: 💡 Lights
|
description: A single light or group
|
||||||
description: The light(s) with kelvin
|
|
||||||
selector:
|
selector:
|
||||||
target:
|
|
||||||
entity:
|
entity:
|
||||||
|
filter:
|
||||||
domain: light
|
domain: light
|
||||||
|
name: Target Light
|
||||||
light_timeout:
|
light_timeout:
|
||||||
name: ⏱️ Timeout
|
name: ⏱️ Timeout
|
||||||
description: Light will turn off after this time on last run. Setting this to 0 will leave the light on.
|
description: Light will turn off after this time on last run. Setting this to 0 will leave the light on.
|
||||||
@ -206,8 +206,9 @@ action:
|
|||||||
light_timeout: 0
|
light_timeout: 0
|
||||||
target_light: !input target_light
|
target_light: !input target_light
|
||||||
- if:
|
- if:
|
||||||
- condition: template
|
- condition: state
|
||||||
value_template: "{{ expand(lights.entity_id) | selectattr('state', '==', 'on')
|
state: "on"
|
||||||
|
entity_id: !input target_light
|
||||||
then:
|
then:
|
||||||
- action: !input alarm_script
|
- action: !input alarm_script
|
||||||
data:
|
data:
|
||||||
|
|||||||
Reference in New Issue
Block a user