import { Communicator,State } from './HestiaClasses'; const psState = new State(); window.onload = function() { refreshState(window.document); }; function refreshState(doc) { const igniterStatus = doc.getElementById("igniterStatus"); const exhaustStatus = doc.getElementById("exhaustStatus"); const augerStatus = doc.getElementById("augerStatus"); let statusString; statusString = ''; if (psState.igniter.on) statusString = "On"; else statusString = "Off"; igniterStatus.innerHTML = statusString; statusString = ''; if (psState.exhaust.on) statusString = "On"; else statusString = "Off"; exhaustStatus.innerHTML = statusString; statusString = ''; if (psState.auger.on) statusString = "On"; else statusString = "Off"; augerStatus.innerHTML = statusString; }