From d32bb9374781efd7639f0eae849f86b7e9882def Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 10 Nov 2025 10:36:08 -0500 Subject: [PATCH] conditions and advanced target --- parabolic_alarm.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/parabolic_alarm.yaml b/parabolic_alarm.yaml index 34dc214..a78cdaa 100644 --- a/parabolic_alarm.yaml +++ b/parabolic_alarm.yaml @@ -44,12 +44,12 @@ blueprint: - script multiple: false target_light: - name: 💡 Lights - description: The light(s) with kelvin + description: A single light or group selector: - target: - entity: + entity: + filter: domain: light + name: Target Light light_timeout: name: ⏱️ Timeout 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 target_light: !input target_light - if: - - condition: template - value_template: "{{ expand(lights.entity_id) | selectattr('state', '==', 'on') + - condition: state + state: "on" + entity_id: !input target_light then: - action: !input alarm_script data: