diff --git a/static/js/smarthome.js b/static/js/smarthome.js index 56e6dce..0e3e5f6 100644 --- a/static/js/smarthome.js +++ b/static/js/smarthome.js @@ -249,6 +249,7 @@ function refreshScenes(updateScenes) { $('#lastUpdate_' + idx).html(moment(lastUpdate).fromNow()) } $('button[id="switch_' + idx + '"]').html(data) + $('#data_'+ idx).html(data) if (data != 'Off'){ $('#icon_Group_' + idx).removeClass("bi bi-toggle2-off") $('#icon_Group_' + idx).addClass("bi bi-toggle2-on").css('color', green)