diff options
author | makefu <github@syntax-fehler.de> | 2020-09-16 22:21:53 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2020-09-16 22:21:53 +0200 |
commit | 8ed22f337c76df2ad592650ece7abe1a414c4182 (patch) | |
tree | 78b8f8e0175120dd09f53b4a81836ac11a08c583 /krebs/2configs/shack/glados/multi/wasser.nix | |
parent | c64fb07027b49a3825b6f0814ebeb17782b8266a (diff) |
shack/glados: implement rollo triggers
Diffstat (limited to 'krebs/2configs/shack/glados/multi/wasser.nix')
-rw-r--r-- | krebs/2configs/shack/glados/multi/wasser.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/krebs/2configs/shack/glados/multi/wasser.nix b/krebs/2configs/shack/glados/multi/wasser.nix index e3ba28384..74ce736a6 100644 --- a/krebs/2configs/shack/glados/multi/wasser.nix +++ b/krebs/2configs/shack/glados/multi/wasser.nix @@ -6,9 +6,13 @@ let wasser = "switch.crafting_giesskanne_relay"; in { - switch = [ - (glados.tasmota.plug { host = "Wasser"; topic = "plug";} ) - ]; + sensor = map ( entity_id: { + platform = "statistics"; + name = "Statistics for ${entity_id}"; + inherit entity_id; + max_age.minutes = "60"; + }) ["sensor.crafting_brotbox_soil_moisture"]; + automation = [ |