summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/glados/sensors
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-09-06 01:07:20 +0200
committermakefu <github@syntax-fehler.de>2019-09-06 01:08:32 +0200
commitfce2c4275caf7df064fb13a4280291a9aefaef1f (patch)
treeb74e266f9b3776ff5b01e45ef68778fc1119bc61 /krebs/2configs/shack/glados/sensors
parent39b1e08ad1358cc54527e9b87cb5fbc01349b62e (diff)
shack/glados: init shackopen and auto watering
Diffstat (limited to 'krebs/2configs/shack/glados/sensors')
-rw-r--r--krebs/2configs/shack/glados/sensors/power.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/krebs/2configs/shack/glados/sensors/power.nix b/krebs/2configs/shack/glados/sensors/power.nix
index 940888c7d..1aa250a19 100644
--- a/krebs/2configs/shack/glados/sensors/power.nix
+++ b/krebs/2configs/shack/glados/sensors/power.nix
@@ -2,6 +2,7 @@ let
power_x = name: phase:
{ platform = "mqtt";
name = "${phase} ${name}";
+ # device_class = "power";
state_topic = "/power/total/${phase}/${name}";
availability_topic = "/power/lwt";
payload_available = "Online";
@@ -10,6 +11,7 @@ let
power_consumed =
{ platform = "mqtt";
name = "Power Consumed";
+ #device_class = "power";
state_topic = "/power/total/consumed";
availability_topic = "/power/lwt";
payload_available = "Online";