From 7c28897c56db4fbb09d4d38412973feb8a3588ab Mon Sep 17 00:00:00 2001 From: Stephen Kuntz Date: Tue, 24 Sep 2024 08:46:11 -0400 Subject: [PATCH] trying script blueprint --- blueprint_parabolic_alarm_script.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/blueprint_parabolic_alarm_script.yaml b/blueprint_parabolic_alarm_script.yaml index e7f9c53..ef54f8a 100644 --- a/blueprint_parabolic_alarm_script.yaml +++ b/blueprint_parabolic_alarm_script.yaml @@ -71,18 +71,18 @@ blueprint: default: 5 name: Light Timeout variables: - steps: "{{ !input alarm_length * !input steps_per_minute }}" + steps: !input alarm_length * !input steps_per_minute min_brightness: |- {% if states(!input target_light) == 'off' %} 3 {% else %} {{ state_attr(!input target_light, 'brightness') }} {% endif %} - max_brightness: "{{ !input max_brightness_pct * 2.55 }}" - kelvin_step: "{{ (!input target_kelvin - !input start_kelvin) / steps }}" - bright_step: "{{ (!input max_brightness - !input min_brightness) / steps }}" + max_brightness: !input max_brightness_pct * 2.55 + kelvin_step: (!input target_kelvin - !input start_kelvin) / steps + bright_step: (!input max_brightness - !input min_brightness) / steps start_time: "{{ as_timestamp(now()) }}" - individual_step: "{{ 60 / !input steps_per_minute }}" + individual_step: 60 / !input steps_per_minute mode: parallel sequence: - repeat: