send state to WebUI (only the high nibble mask bits)

This commit is contained in:
proddy
2022-03-27 16:20:19 +02:00
parent 079f4e5ac0
commit 03af305761

View File

@@ -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;