From 03af305761e38d5b80f291973000ffb2485bdb38 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 27 Mar 2022 16:20:19 +0200 Subject: [PATCH] send state to WebUI (only the high nibble mask bits) --- src/emsdevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emsdevice.cpp b/src/emsdevice.cpp index 715484bb0..a3810236b 100644 --- a/src/emsdevice.cpp +++ b/src/emsdevice.cpp @@ -861,8 +861,8 @@ void EMSdevice::generate_values_web_all(JsonArray & output) { obj["s"] = dv.short_name; } - // is it marked as excluded? - obj["x"] = dv.has_state(DeviceValueState::DV_WEB_EXCLUDE); + // send back the mask state. We're only interested in the high nibble + obj["m"] = dv.state >> 4; // add the unique ID obj["i"] = dv.id;