mirror of
https://github.com/steku/ha_cercadian_alarm.git
synced 2025-12-13 10:02:19 +00:00
conditions and advanced target
This commit is contained in:
@ -2,6 +2,7 @@ blueprint:
|
|||||||
name: Parabolic Alarm Automation
|
name: Parabolic Alarm Automation
|
||||||
description: Turn a light on based on a start time, whether it is a workday and whether a person is home. This is to match the sunrise and allow for a natural wake up.
|
description: Turn a light on based on a start time, whether it is a workday and whether a person is home. This is to match the sunrise and allow for a natural wake up.
|
||||||
domain: automation
|
domain: automation
|
||||||
|
condition:
|
||||||
input:
|
input:
|
||||||
pre_action:
|
pre_action:
|
||||||
name: 🎮 Pre Script Action
|
name: 🎮 Pre Script Action
|
||||||
@ -28,26 +29,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
|
||||||
@ -61,11 +42,12 @@ blueprint:
|
|||||||
name: 💡 Lights
|
name: 💡 Lights
|
||||||
description: The light(s) with kelvin
|
description: The light(s) with kelvin
|
||||||
selector:
|
selector:
|
||||||
entity:
|
target:
|
||||||
filter:
|
entity:
|
||||||
- domain:
|
filter:
|
||||||
- light
|
- domain:
|
||||||
multiple: false
|
- 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.
|
||||||
|
|||||||
@ -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