13 Commits

Author SHA1 Message Date
18ebe99a41 conditions and advanced target 2025-11-10 10:54:26 -05:00
c04b71095c conditions and advanced target 2025-11-10 10:53:05 -05:00
1be86b7d48 conditions and advanced target 2025-11-10 10:36:54 -05:00
d32bb93747 conditions and advanced target 2025-11-10 10:36:08 -05:00
c0137387b3 conditions and advanced target 2025-11-10 10:29:44 -05:00
1a63451f87 conditions and advanced target 2025-11-10 10:24:09 -05:00
43c777f75c conditions and advanced target 2025-11-10 10:19:29 -05:00
6c4b80af50 conditions and advanced target 2025-11-10 10:12:32 -05:00
cf0ae4043f conditions and advanced target 2025-11-10 10:11:35 -05:00
bcef0c5e1a conditions and advanced target 2025-11-10 09:43:08 -05:00
3fe5bef2ba conditions and advanced target 2025-11-10 09:36:50 -05:00
8171597885 conditions and advanced target 2025-11-10 09:31:47 -05:00
9ff1580896 conditions and advanced target 2025-11-10 09:19:42 -05:00
2 changed files with 13 additions and 33 deletions

View File

@ -9,6 +9,12 @@ blueprint:
default: []
selector:
action: {}
conditions:
name: Conditions
description: Set your own conditions for this automation. All conditions must pass unles you add your own OR block
default: []
selector:
condition:
alarm_start_time:
name: 🕒 Start Time
description:
@ -28,26 +34,6 @@ blueprint:
default: "-00:00:00"
selector:
text:
workday_sensor:
name: 📆 Workday Sensor
description:
Binary Sensor that is used to determine whether it should run. Typically
from Workday Integration. More information here - https://www.home-assistant.io/integrations/workday/
selector:
entity:
filter:
- domain:
- binary_sensor
multiple: false
person_sensor:
name: 👤 Person Sensor
description: Select the person sensor so that the alarm will only run when you are home.
selector:
entity:
filter:
- domain:
- person
multiple: false
alarm_script:
name: 📄 Script to trigger
description: Light Alarm Script
@ -58,14 +44,12 @@ blueprint:
- script
multiple: false
target_light:
name: 💡 Lights
description: The light(s) with kelvin
description: A single light or group
selector:
entity:
filter:
- domain:
- light
multiple: false
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.
@ -199,12 +183,8 @@ trigger:
entity_id: !input alarm_start_time
offset: !input offset_from_start_time
condition:
- condition: state
entity_id: !input workday_sensor
state: "on"
- condition: state
entity_id: !input person_sensor
state: "home"
condition: and
conditions: !input conditions
action:
- choose:
- conditions: []

View File

@ -112,7 +112,7 @@ sequence:
seconds: "{{ individual_step }}"
- if:
- condition: template
value_template: "{{ is_state(target_light, 'on') }}"
value_template: "{{ not is_state(target_light, 'off') }}"
then:
- data:
brightness: "{{ brightness }}"
@ -126,7 +126,7 @@ sequence:
- condition: template
value_template: "{{ light_timeout != 0 }}"
- condition: template
value_template: "{{ is_state(target_light, 'on') }}"
value_template: "{{ not is_state(target_light, 'off') }}"
then:
- delay:
minutes: "{{ light_timeout }}"