From f3fe35e778de442a5936ca822007ace47439d82d Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm Date: Wed, 1 Apr 2026 21:02:55 +0200 Subject: [PATCH] Only obay value on item update --- remote.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/remote.html b/remote.html index 8c4c77f..4765978 100644 --- a/remote.html +++ b/remote.html @@ -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') {