mirror of
https://github.com/steku/ha_cercadian_alarm.git
synced 2025-12-08 07:32:18 +00:00
trying script blueprint
This commit is contained in:
@ -9,75 +9,75 @@ blueprint:
|
|||||||
homeassistant:
|
homeassistant:
|
||||||
min_version: 2024.9.0
|
min_version: 2024.9.0
|
||||||
fields:
|
fields:
|
||||||
target_kelvin:
|
target_kelvin:
|
||||||
description: Coldest Kelvin value. This is the end value - most white
|
description: Coldest Kelvin value. This is the end value - most white
|
||||||
selector:
|
selector:
|
||||||
color_temp:
|
color_temp:
|
||||||
unit: kelvin
|
unit: kelvin
|
||||||
default: 6500
|
default: 6500
|
||||||
name: Coldest Kelvin
|
name: Coldest Kelvin
|
||||||
start_kelvin:
|
start_kelvin:
|
||||||
description: >-
|
description: >-
|
||||||
This is the start value. If the light is on the current value from the
|
This is the start value. If the light is on the current value from the
|
||||||
state of the light will be used and this will be ignored.
|
state of the light will be used and this will be ignored.
|
||||||
selector:
|
selector:
|
||||||
color_temp:
|
color_temp:
|
||||||
unit: kelvin
|
unit: kelvin
|
||||||
min: 2500
|
min: 2500
|
||||||
max: 6500
|
max: 6500
|
||||||
default: 6500
|
default: 6500
|
||||||
name: Warmest Kelvin
|
name: Warmest Kelvin
|
||||||
max_brightness_pct:
|
max_brightness_pct:
|
||||||
description: Maximum brightness in percent to reach by the end of the script
|
description: Maximum brightness in percent to reach by the end of the script
|
||||||
selector:
|
selector:
|
||||||
number:
|
number:
|
||||||
min: 1
|
min: 1
|
||||||
max: 100
|
max: 100
|
||||||
default: 80
|
default: 80
|
||||||
name: Max brightness
|
name: Max brightness
|
||||||
alarm_length:
|
alarm_length:
|
||||||
description: >-
|
description: >-
|
||||||
This is the start to finish time. Take this into account when setting up
|
This is the start to finish time. Take this into account when setting up
|
||||||
the automation this script is called by.
|
the automation this script is called by.
|
||||||
selector:
|
selector:
|
||||||
number:
|
number:
|
||||||
min: 1
|
min: 1
|
||||||
max: 60
|
max: 60
|
||||||
default: 10
|
default: 10
|
||||||
name: Alarm Length
|
name: Alarm Length
|
||||||
steps_per_minute:
|
steps_per_minute:
|
||||||
description: How many steps per minute
|
description: How many steps per minute
|
||||||
selector:
|
selector:
|
||||||
number:
|
number:
|
||||||
min: 1
|
min: 1
|
||||||
max: 12
|
max: 12
|
||||||
default: 12
|
default: 12
|
||||||
name: Steps Per minute
|
name: Steps Per minute
|
||||||
target_light:
|
target_light:
|
||||||
description: A single light or group
|
description: A single light or group
|
||||||
selector:
|
selector:
|
||||||
entity:
|
entity:
|
||||||
filter:
|
filter:
|
||||||
domain: light
|
domain: light
|
||||||
name: Target Light
|
name: Target Light
|
||||||
light_timeout:
|
light_timeout:
|
||||||
description: >-
|
description: >-
|
||||||
Minutes to delay after Max Brightness has been reached to turn the light
|
Minutes to delay after Max Brightness has been reached to turn the light
|
||||||
back off. Value of 0 disables the timeout
|
back off. Value of 0 disables the timeout
|
||||||
selector:
|
selector:
|
||||||
number:
|
number:
|
||||||
min: 0
|
min: 0
|
||||||
max: 60
|
max: 60
|
||||||
default: 5
|
default: 5
|
||||||
name: Light Timeout
|
name: Light Timeout
|
||||||
variables:
|
variables:
|
||||||
alarm_length: !input alarm_length
|
# alarm_length: !input alarm_length
|
||||||
steps_per_minute: !input steps_per_minute
|
# steps_per_minute: !input steps_per_minute
|
||||||
target_light: !input target_light
|
# target_light: !input target_light
|
||||||
max_brightness_pct: !input max_brightness_pct
|
# max_brightness_pct: !input max_brightness_pct
|
||||||
target_kelvin: !input target_kelvin
|
# target_kelvin: !input target_kelvin
|
||||||
start_kelvin: !input start_kelvin
|
# start_kelvin: !input start_kelvin
|
||||||
light_timeout: !input light_timeout
|
# light_timeout: !input light_timeout
|
||||||
|
|
||||||
steps: "{{ alarm_length * steps_per_minute }}"
|
steps: "{{ alarm_length * steps_per_minute }}"
|
||||||
min_brightness: |-
|
min_brightness: |-
|
||||||
|
|||||||
Reference in New Issue
Block a user