From 76cacbe33630c012709cec4ab2d4a1c33bb29d51 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 8 Jan 2024 14:58:28 -0500 Subject: [PATCH] Clarify stairwell LED strip script #186 --- scripts.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts.yaml b/scripts.yaml index 7c18bf3..a848843 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -885,9 +885,11 @@ stairwell_led_strip: colortemp: "{% if is_state('input_boolean.goodnight','off') and\n is_state('input_boolean.give_me_darkness','off') and\n is_state('binary_sensor.early_night_mode','off')\n%}\n 4000\n{% else %}\n 2000\n{% endif %}\n" - - if: + - alias: Reset or apply proper settings + if: - condition: template value_template: '{{ brightness == ''reset'' }}' + alias: If this is a reset then: - service: light.turn_on target: @@ -898,6 +900,7 @@ stairwell_led_strip: }}\n{% elif is_state('binary_sensor.early_night_mode','on') %}\n {{ brt3 }}\n{% else %}\n {{ brtmax }}\n{% endif %}\n" color_temp_kelvin: '{{ colortemp }}' + alias: Set brightness and colortemp else: - service: light.turn_on target: