Only obay value on item update

This commit is contained in:
Carl Philipp Klemm 2026-04-01 21:02:55 +02:00
parent 4a956d3484
commit f3fe35e778

View file

@ -281,11 +281,15 @@
if (fullList) {
items = {}; // Clear existing items
json.Data.forEach(item => {
items[item.ItemId] = item;
});
}
else {
json.Data.forEach(item => {
items[item.ItemId].Value = item.Value;
});
}
json.Data.forEach(item => {
items[item.ItemId] = item;
});
renderItems();
} else if (json.MessageType === 'SensorUpdate') {