From 9661572b33696c2fdef33ddc4e7cf8189c326576 Mon Sep 17 00:00:00 2001 From: Glenn Carremans Date: Tue, 15 Oct 2024 09:21:39 +0200 Subject: [PATCH] Fixed brightness 0 --- ha-scenes.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ha-scenes.yaml b/ha-scenes.yaml index 625add8..6af4015 100644 --- a/ha-scenes.yaml +++ b/ha-scenes.yaml @@ -643,7 +643,7 @@ variables: {% endif %} brightness_value: |- {% if use_scene_brightness %} - {{ scenes[scene_name].b*100 }} + {{ (scenes[scene_name].b*100)|round(0, 'ceil') }} {% elif brightness %} {{ brightness }} {% else %} @@ -839,4 +839,4 @@ sequence: else: - if: "{{ repeat_delay.hours > 0 or repeat_delay.minutes > 0 or repeat_delay.seconds > 0 }}" then: - - delay: "{{ repeat_delay }}" \ No newline at end of file + - delay: "{{ repeat_delay }}"