issue #10 #11 fixed didn't power off when issued stop mqtt event.

This commit is contained in:
Paul Kim
2024-04-18 18:10:21 +09:00
parent ed75e5f8fb
commit f679231d2d
3 changed files with 7 additions and 6 deletions

View File

@@ -7124,13 +7124,13 @@ HotelTV.ui_appfull = (function() {
$('.error #countdown #message').text(`System will be shutdown in ${_tmval} second...`);
},
"cb_eoe": function() {
setTimeout(HotelTV.hcap.PwrOff, 500);
setTimeout(HotelTV.hcap.Reboot, 500);
HotelTV.api.ReportEvent([{'power': false, 'location':null}])
}
});
} else if (_evt == "COMMAND-GUEST-CHECKIN") {
} else if (_evt == "COMMAND-GUEST-CHECKOUT") {
} else if (_evt == "COMMAND-GUEST-CHECKOUT" || _evt == "COMMAND-SYSTEM-STOP") {
let _tmval = 30;
let _state = HotelTV.state;
let _trTbl = HotelTV.translation;