Longer transition duration

master
Kuba Orlik 3 months ago
parent 788ecf9324
commit 279d7e6c88

@ -20,7 +20,7 @@ async function send_color(
brightness, 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") { if (light_data.type == "rgb") {
body.rgb_color = color; body.rgb_color = color;
@ -73,7 +73,7 @@ module.exports = async function light_loop(light_index, max_brightness, debug) {
lights[light_index], lights[light_index],
current_color, current_color,
max_brightness, max_brightness,
duration, 0.25,
debug debug
); );
const after = Date.now(); const after = Date.now();

Loading…
Cancel
Save