mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
send state to WebUI (only the high nibble mask bits)
This commit is contained in:
@@ -861,8 +861,8 @@ void EMSdevice::generate_values_web_all(JsonArray & output) {
|
|||||||
obj["s"] = dv.short_name;
|
obj["s"] = dv.short_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
// is it marked as excluded?
|
// send back the mask state. We're only interested in the high nibble
|
||||||
obj["x"] = dv.has_state(DeviceValueState::DV_WEB_EXCLUDE);
|
obj["m"] = dv.state >> 4;
|
||||||
|
|
||||||
// add the unique ID
|
// add the unique ID
|
||||||
obj["i"] = dv.id;
|
obj["i"] = dv.id;
|
||||||
|
|||||||
Reference in New Issue
Block a user