From 279d7e6c887684275493edf2b40319ee0f2c6828 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Thu, 15 Aug 2024 22:22:46 +0200 Subject: [PATCH] Longer transition duration --- light-loop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/light-loop.js b/light-loop.js index 22771bc..3b2dee2 100644 --- a/light-loop.js +++ b/light-loop.js @@ -20,7 +20,7 @@ async function send_color( brightness, }); } - let body = { entity_id: `light.${light_data.id}`, transition: 0.18 }; + let body = { entity_id: `light.${light_data.id}`, transition: duration }; if (light_data.type == "rgb") { body.rgb_color = color; @@ -73,7 +73,7 @@ module.exports = async function light_loop(light_index, max_brightness, debug) { lights[light_index], current_color, max_brightness, - duration, + 0.25, debug ); const after = Date.now();