homebridge-econet-rheem
Version:
Homebridge plugin for control of Rheem and Ruud thermostats and water heaters
25 lines (24 loc) • 1.64 kB
HTML
<style>
.dark-mode {
background-color: #242424;
color: lightgrey;
}
</style>
<p class="text-center">
<img
src="https://raw.githubusercontent.com/mpatfield/homebridge-econet-rheem/refs/heads/latest/img/banner.png"
alt="Homebridge Econet Rheem"
style="width: 60%;"
/>
</p>
<div id="support" class="text-center" style="display: none;">
<p i18n="support"></p>
</div>
<div id="pageIntro" class="text-center" style="display: none;">
<p class="lead" i18n="thankYou"></p>
<p i18n="needed"></p>
</br><button type="button" class="btn btn-primary" id="introContinue" i18n="continue"></button>
</div>
<script>
(()=>{var n={en:{continue:"Continue →",support:'For documentation and support please visit <a target="_blank" href="https://github.com/mpatfield/homebridge-econet-rheem/wiki">GitHub</a>',needed:"You will need your Rheem username and password",thankYou:"Thank you for installing Homebridge Econet Rheem"}};function i(){document.querySelectorAll("[i18n]").forEach(e=>{let t=e.getAttribute("i18n");e.innerHTML=n[t]})}function o(){document.getElementById("pageIntro").style.display="none",document.getElementById("support").style.display="block",homebridge.showSchemaForm(),homebridge.hideSpinner()}function r(){document.getElementById("introContinue").addEventListener("click",async()=>{o()}),document.getElementById("pageIntro").style.display="block",homebridge.hideSpinner()}homebridge.showSpinner();(async()=>{let e=await homebridge.i18nCurrentLang();n=e in n?n[e]:n.en,i(),(await homebridge.getPluginConfig()).length?o():(await homebridge.updatePluginConfig([{name:"EcoNet"}]),r())})();})();
</script>