Skip to content

Commit

Permalink
Update scene/group devices
Browse files Browse the repository at this point in the history
  • Loading branch information
DewGew authored Feb 2, 2024
1 parent b6a1ef3 commit 8e6f44c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions static/js/smarthome.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8e6f44c

Please sign in to comment.