ctucx.git: smartie-pwa

[js] smarthome web-gui

commit 781571592e1927ad4d56916f0da9fd2542dfd2f2
parent 616ff0a94b96740d0c2cf8336282843f2b233dc3
Author: Milan Pässler <me@pbb.lc>
Date: Sun, 28 Jul 2019 16:55:59 +0200

foo
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/power-meter/live.js b/src/power-meter/live.js
@@ -72,11 +72,11 @@ class PowerMeterLive extends LitElement {
 						<div class="table-row">
 							<div class="table-column">Total</div>
 							<div class="table-column">-</div>
-              <div class="table-column">${round(sum.power, 2)} W</div>
-              <div class="table-column">-</div>
-              <div class="table-column">-</div>
-              <div class="table-column">${round(sum.import, 2)} kWh</div>
-              <div class="table-column">${round(sum.totalImport, 2)} kWh</div>
+							<div class="table-column">${round(sum.power, 2)} W</div>
+							<div class="table-column">-</div>
+							<div class="table-column">-</div>
+							<div class="table-column">${round(sum.import, 2)} kWh</div>
+							<div class="table-column">${round(sum.totalImport, 2)} kWh</div>
 						</div>
 					</div>
 				</smarthome-card>
diff --git a/src/prompt.js b/src/prompt.js
@@ -37,7 +37,7 @@ class Prompt extends LitElement {
 				color: black;
 			}
 			smarthome-card {
-    				display: flex;
+				display: flex;
 				margin: 0;
 				margin-right: 20px;
 			}
diff --git a/src/temperature/live.js b/src/temperature/live.js
@@ -39,6 +39,7 @@ class TemperatureLive extends LitElement {
 						${config.sensors.map(d => html`
 							<div class="table-row">
 								<div class="table-column">${d.name}</div>
+								<div class="table-column">${d.name}${state.data[d.device].weakBattery ? html` <mwc-icon>battery_alert</mwc-icon>` : html``}</div>
 								<div class="table-column">${round(state.data[d.device].temperature, 2)}°C</div>
 								<div class="table-column">${round(state.data[d.device].humidity, 2)}%</div>
 							</div>