2024-03-20 15:43:10 +00:00
|
|
|
blueprint:
|
|
|
|
name: Parabolic Alarm Automation
|
|
|
|
description: Turn a light on based on detected motion
|
|
|
|
domain: automation
|
|
|
|
input:
|
|
|
|
alarm_start_time:
|
|
|
|
name: Start Time
|
|
|
|
description: Datetime helper for alarm to start. Use time only and Workday sensor to determine what days to run.
|
|
|
|
selector:
|
|
|
|
entity:
|
|
|
|
filter:
|
|
|
|
- domain: input_datetime
|
|
|
|
workday_sensor:
|
|
|
|
name: Workday Sensor
|
2024-09-13 19:41:48 +00:00
|
|
|
description: Binary Sensor for determining whether it should run. Typically from Workday Integration
|
2024-03-20 15:43:10 +00:00
|
|
|
selector:
|
|
|
|
entity:
|
|
|
|
filter:
|
|
|
|
- domain: binary_sensor
|
|
|
|
alarm_script:
|
|
|
|
name: Script to trigger
|
2024-09-13 19:41:48 +00:00
|
|
|
description: Light Alarm Script
|
2024-03-20 15:43:10 +00:00
|
|
|
selector:
|
|
|
|
entity:
|
|
|
|
filter:
|
|
|
|
- domain: script
|
|
|
|
target_light:
|
|
|
|
name: Lights
|
2024-09-13 19:41:48 +00:00
|
|
|
description: The light(s) with kelvin
|
2024-03-20 15:43:10 +00:00
|
|
|
selector:
|
|
|
|
entity:
|
|
|
|
filter:
|
|
|
|
- domain: light
|
|
|
|
light_timeout:
|
|
|
|
name: Timeout
|
|
|
|
description: Light will turn off after this time on last run
|
|
|
|
default: 10
|
|
|
|
selector:
|
|
|
|
number:
|
|
|
|
min: 1
|
|
|
|
max: 60
|
|
|
|
steps_per_minute:
|
|
|
|
name: Steps per minute for all runs
|
|
|
|
description: Used for configuring percentage of each step for brightness and color temperature
|
|
|
|
default: 12
|
|
|
|
selector:
|
|
|
|
number:
|
|
|
|
min: 1
|
|
|
|
max: 60
|
|
|
|
|
2024-09-13 19:41:48 +00:00
|
|
|
start_kelvin_temp:
|
|
|
|
description: Start Kelvin value (warm) for 1st run
|
2024-03-20 15:43:10 +00:00
|
|
|
selector:
|
|
|
|
color_temp:
|
2024-09-13 19:41:48 +00:00
|
|
|
unit: kelvin
|
|
|
|
default: 2500
|
|
|
|
name: Starting Kelvin
|
|
|
|
target_kelvin_1:
|
2024-03-20 15:43:10 +00:00
|
|
|
description: >-
|
2024-09-13 19:41:48 +00:00
|
|
|
Target Kelvin value (cold) for the end of the first run
|
2024-03-20 15:43:10 +00:00
|
|
|
selector:
|
|
|
|
color_temp:
|
2024-09-13 19:41:48 +00:00
|
|
|
unit: kelvin
|
|
|
|
default: 3000
|
|
|
|
name: Target Kelvin 1
|
2024-03-20 15:43:10 +00:00
|
|
|
max_brightness_1:
|
|
|
|
name: Maximum Brightness 1
|
2024-09-13 19:41:48 +00:00
|
|
|
description: Finish value for first run
|
2024-03-20 15:43:10 +00:00
|
|
|
selector:
|
|
|
|
number:
|
|
|
|
min: 1
|
|
|
|
max: 100
|
|
|
|
default: 10
|
|
|
|
alarm_length_1:
|
|
|
|
name: Alarm Length 1
|
|
|
|
description: >-
|
|
|
|
This is the start to finish time for the first run
|
|
|
|
selector:
|
|
|
|
number:
|
|
|
|
min: 1
|
|
|
|
max: 60
|
|
|
|
default: 10
|
|
|
|
|
2024-09-13 19:41:48 +00:00
|
|
|
target_kelvin_2:
|
2024-03-20 15:43:10 +00:00
|
|
|
description: >-
|
2024-09-13 19:41:48 +00:00
|
|
|
Target Kelvin value (cold) for second run
|
2024-03-20 15:43:10 +00:00
|
|
|
selector:
|
|
|
|
color_temp:
|
2024-09-13 19:41:48 +00:00
|
|
|
unit: kelvin
|
|
|
|
default: 4000
|
|
|
|
name: Target Kelvin 2
|
2024-03-20 15:43:10 +00:00
|
|
|
max_brightness_2:
|
2024-09-13 19:53:40 +00:00
|
|
|
name: Maximum Brightness 2
|
2024-09-13 19:41:48 +00:00
|
|
|
description: Finish value for second run
|
2024-03-20 15:43:10 +00:00
|
|
|
selector:
|
|
|
|
number:
|
|
|
|
min: 1
|
|
|
|
max: 100
|
|
|
|
default: 50
|
|
|
|
alarm_length_2:
|
|
|
|
name: Alarm length 2
|
|
|
|
description: >-
|
|
|
|
This is the start to finish time for the second run
|
|
|
|
selector:
|
|
|
|
number:
|
|
|
|
min: 1
|
|
|
|
max: 60
|
|
|
|
default: 10
|
|
|
|
|
2024-09-13 19:41:48 +00:00
|
|
|
target_kelvin_3:
|
2024-03-20 15:43:10 +00:00
|
|
|
description: >-
|
2024-09-13 19:41:48 +00:00
|
|
|
Target Kelvin value (cold) for third run
|
2024-03-20 15:43:10 +00:00
|
|
|
selector:
|
|
|
|
color_temp:
|
2024-09-13 19:41:48 +00:00
|
|
|
unit: kelvin
|
|
|
|
default: 6500
|
|
|
|
name: Target Kelvin 3
|
2024-03-20 15:43:10 +00:00
|
|
|
max_brightness_3:
|
2024-09-13 19:53:40 +00:00
|
|
|
name: Maximum Brightness 3
|
2024-09-13 19:41:48 +00:00
|
|
|
description: Finish value for third and final run
|
2024-03-20 15:43:10 +00:00
|
|
|
selector:
|
|
|
|
number:
|
|
|
|
min: 1
|
|
|
|
max: 100
|
|
|
|
default: 100
|
|
|
|
alarm_length_3:
|
2024-09-13 19:53:40 +00:00
|
|
|
name: Alarm Length 3
|
2024-03-20 15:43:10 +00:00
|
|
|
description: >-
|
|
|
|
This is the start to finish time for the third run
|
|
|
|
selector:
|
|
|
|
number:
|
|
|
|
min: 1
|
|
|
|
max: 60
|
|
|
|
default: 5
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
- platform: time
|
|
|
|
at: !input alarm_start_time
|
|
|
|
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: !input workday_sensor
|
|
|
|
state: "on"
|
|
|
|
|
|
|
|
action:
|
2024-09-13 19:41:48 +00:00
|
|
|
- action: light.turn_on
|
|
|
|
data:
|
|
|
|
color_temp_kelvin: !input start_kelvin_temp
|
|
|
|
brightness_pct: 1
|
|
|
|
entity_id: !input target_light
|
|
|
|
- delay:
|
|
|
|
seconds: 5
|
|
|
|
- action: !input alarm_script
|
2024-03-20 15:43:10 +00:00
|
|
|
data:
|
2024-09-13 19:41:48 +00:00
|
|
|
target_kelvin: !input target_kelvin_1
|
|
|
|
start_kelvin: !input start_kelvin_temp
|
2024-03-20 15:43:10 +00:00
|
|
|
max_brightness_pct: !input max_brightness_1
|
|
|
|
alarm_length: !input alarm_length_1
|
|
|
|
steps_per_minute: !input steps_per_minute
|
|
|
|
light_timeout: 0
|
|
|
|
target_light: !input target_light
|
2024-09-13 19:41:48 +00:00
|
|
|
|
2024-03-20 15:43:10 +00:00
|
|
|
- if:
|
|
|
|
- condition: state
|
|
|
|
state: "on"
|
|
|
|
entity_id: !input target_light
|
|
|
|
then:
|
2024-09-13 19:41:48 +00:00
|
|
|
- action: !input alarm_script
|
2024-03-20 15:43:10 +00:00
|
|
|
data:
|
2024-09-13 19:41:48 +00:00
|
|
|
target_kelvin: !input target_kelvin_2
|
|
|
|
start_kelvin: !input target_kelvin_1
|
2024-03-20 15:43:10 +00:00
|
|
|
max_brightness_pct: !input max_brightness_2
|
|
|
|
alarm_length: !input alarm_length_2
|
|
|
|
steps_per_minute: !input steps_per_minute
|
|
|
|
light_timeout: 0
|
|
|
|
target_light: !input target_light
|
|
|
|
- if:
|
|
|
|
- condition: state
|
|
|
|
state: "on"
|
|
|
|
entity_id: !input target_light
|
|
|
|
then:
|
2024-09-13 19:41:48 +00:00
|
|
|
- action: !input alarm_script
|
2024-03-20 15:43:10 +00:00
|
|
|
data:
|
2024-09-13 19:41:48 +00:00
|
|
|
target_kelvin: !input target_kelvin_3
|
|
|
|
start_kelvin: !input target_kelvin_2
|
2024-03-20 15:43:10 +00:00
|
|
|
max_brightness_pct: !input max_brightness_3
|
|
|
|
alarm_length: !input alarm_length_3
|
|
|
|
steps_per_minute: !input steps_per_minute
|
|
|
|
light_timeout: !input light_timeout
|
|
|
|
target_light: !input target_light
|
|
|
|
mode: parallel
|
|
|
|
max: 10
|