mirror of
https://github.com/steku/ha_cercadian_alarm.git
synced 2025-12-09 16:12:31 +00:00
Compare commits
2 Commits
20251110-1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 04162ac753 | |||
| 18acbb8313 |
@ -9,6 +9,12 @@ blueprint:
|
|||||||
default: []
|
default: []
|
||||||
selector:
|
selector:
|
||||||
action: {}
|
action: {}
|
||||||
|
conditions:
|
||||||
|
name: Conditions
|
||||||
|
description: Set your own conditions for this automation. All conditions must pass unless you add your own OR block
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
condition:
|
||||||
alarm_start_time:
|
alarm_start_time:
|
||||||
name: 🕒 Start Time
|
name: 🕒 Start Time
|
||||||
description:
|
description:
|
||||||
@ -28,26 +34,6 @@ blueprint:
|
|||||||
default: "-00:00:00"
|
default: "-00:00:00"
|
||||||
selector:
|
selector:
|
||||||
text:
|
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:
|
alarm_script:
|
||||||
name: 📄 Script to trigger
|
name: 📄 Script to trigger
|
||||||
description: Light Alarm Script
|
description: Light Alarm Script
|
||||||
@ -58,14 +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:
|
||||||
entity:
|
entity:
|
||||||
filter:
|
filter:
|
||||||
- domain:
|
domain: light
|
||||||
- light
|
name: Target Light
|
||||||
multiple: false
|
|
||||||
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.
|
||||||
@ -199,12 +183,8 @@ trigger:
|
|||||||
entity_id: !input alarm_start_time
|
entity_id: !input alarm_start_time
|
||||||
offset: !input offset_from_start_time
|
offset: !input offset_from_start_time
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
condition: and
|
||||||
entity_id: !input workday_sensor
|
conditions: !input conditions
|
||||||
state: "on"
|
|
||||||
- condition: state
|
|
||||||
entity_id: !input person_sensor
|
|
||||||
state: "home"
|
|
||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions: []
|
- conditions: []
|
||||||
|
|||||||
@ -112,7 +112,7 @@ sequence:
|
|||||||
seconds: "{{ individual_step }}"
|
seconds: "{{ individual_step }}"
|
||||||
- if:
|
- if:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ is_state(target_light, 'on') }}"
|
value_template: "{{ not is_state(target_light, 'off') }}"
|
||||||
then:
|
then:
|
||||||
- data:
|
- data:
|
||||||
brightness: "{{ brightness }}"
|
brightness: "{{ brightness }}"
|
||||||
@ -126,7 +126,7 @@ sequence:
|
|||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ light_timeout != 0 }}"
|
value_template: "{{ light_timeout != 0 }}"
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ is_state(target_light, 'on') }}"
|
value_template: "{{ not is_state(target_light, 'off') }}"
|
||||||
then:
|
then:
|
||||||
- delay:
|
- delay:
|
||||||
minutes: "{{ light_timeout }}"
|
minutes: "{{ light_timeout }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user