Skip to content

Commit

Permalink
Add DoorLockInverted
Browse files Browse the repository at this point in the history
  • Loading branch information
DewGew authored Jan 29, 2024
1 parent 974a331 commit ca94edf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/js/smarthome.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ function refreshSwitches(updateSwitches) {
}
if (data == 'Unlocked'){
$('#icon_DoorLock_' + idx).html("lock_open").css('color','#008000')
$('#icon_DoorLockInverted_' + idx).html("lock_open").css('color','#008000')
}
if (data == 'Off'){
$('#icon_OnOff_' + idx).removeAttr('style')
Expand All @@ -122,6 +123,7 @@ function refreshSwitches(updateSwitches) {
}
if (data == 'Locked'){
$('#icon_DoorLock_' + idx).html("lock").css('color','#ED2939')
$('#icon_DoorLockInverted_' + idx).html("lock").css('color','#ED2939')
}
if (data == 'Normal'){
$('#icon_security_' + idx).removeAttr('style')
Expand Down

0 comments on commit ca94edf

Please sign in to comment.