mirror of
https://github.com/steku/ha_cercadian_alarm.git
synced 2024-12-22 23:06:46 +00:00
trying script blueprint
This commit is contained in:
parent
d33faa0a01
commit
7c28897c56
@ -71,18 +71,18 @@ blueprint:
|
|||||||
default: 5
|
default: 5
|
||||||
name: Light Timeout
|
name: Light Timeout
|
||||||
variables:
|
variables:
|
||||||
steps: "{{ !input alarm_length * !input steps_per_minute }}"
|
steps: !input alarm_length * !input steps_per_minute
|
||||||
min_brightness: |-
|
min_brightness: |-
|
||||||
{% if states(!input target_light) == 'off' %}
|
{% if states(!input target_light) == 'off' %}
|
||||||
3
|
3
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ state_attr(!input target_light, 'brightness') }}
|
{{ state_attr(!input target_light, 'brightness') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
max_brightness: "{{ !input max_brightness_pct * 2.55 }}"
|
max_brightness: !input max_brightness_pct * 2.55
|
||||||
kelvin_step: "{{ (!input target_kelvin - !input start_kelvin) / steps }}"
|
kelvin_step: (!input target_kelvin - !input start_kelvin) / steps
|
||||||
bright_step: "{{ (!input max_brightness - !input min_brightness) / steps }}"
|
bright_step: (!input max_brightness - !input min_brightness) / steps
|
||||||
start_time: "{{ as_timestamp(now()) }}"
|
start_time: "{{ as_timestamp(now()) }}"
|
||||||
individual_step: "{{ 60 / !input steps_per_minute }}"
|
individual_step: 60 / !input steps_per_minute
|
||||||
mode: parallel
|
mode: parallel
|
||||||
sequence:
|
sequence:
|
||||||
- repeat:
|
- repeat:
|
||||||
|
Loading…
Reference in New Issue
Block a user