trying script blueprint

This commit is contained in:
Stephen Kuntz 2024-09-24 08:35:56 -04:00
parent 5ae494ddad
commit d33faa0a01

View File

@ -14,76 +14,62 @@ blueprint:
selector:
color_temp:
unit: kelvin
required: true
default: 6500
name: Coldest Kelvin
example: 6500
start_kelvin:
description: >-
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.
example: 2500
selector:
color_temp:
unit: kelvin
min: 2500
max: 6500
default: 6500
required: true
name: Warmest Kelvin
max_brightness_pct:
description: Maximum brightness in percent to reach by the end of the script
example: 80
selector:
number:
min: 1
max: 100
default: 80
required: true
name: Max brightness
alarm_length:
description: >-
This is the start to finish time. Take this into account when setting up
the automation this script is called by.
example: 10
selector:
number:
min: 1
max: 60
default: 10
required: true
name: Alarm Length
steps_per_minute:
description: How many steps per minute
example: 4
selector:
number:
min: 1
max: 12
default: 12
name: Steps Per minute
required: true
target_light:
description: A single light or group
example: light.master_lamp
selector:
entity:
filter:
domain: light
name: Target Light
required: true
light_timeout:
description: >-
Minutes to delay after Max Brightness has been reached to turn the light
back off. Value of 0 disables the timeout
example: 5
selector:
number:
min: 0
max: 60
default: 5
name: Light Timeout
required: true
variables:
steps: "{{ !input alarm_length * !input steps_per_minute }}"
min_brightness: |-