From d87f6124c9030bf92b2f66641532ffc6c4d2d414 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Tue, 26 Feb 2019 16:03:04 +0300 Subject: [PATCH] Send brightness to websocket fixup 868d153f lights status refactor --- code/espurna/light.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/code/espurna/light.ino b/code/espurna/light.ino index 141e366d..3d055385 100644 --- a/code/espurna/light.ino +++ b/code/espurna/light.ino @@ -840,6 +840,7 @@ void _lightWebSocketStatus(JsonObject& root) { for (unsigned char id=0; id < _light_channel.size(); id++) { channels.add(lightChannel(id)); } + root["brightness"] = lightBrightness(); } void _lightWebSocketOnSend(JsonObject& root) {