From 3d8f07d4be7c2dc50f9de50ce2b1d55b9bdc7b90 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 28 Jul 2020 23:59:32 +0200 Subject: shack/glados: fix giesskanne --- krebs/2configs/shack/glados/multi/wasser.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'krebs/2configs/shack/glados/multi') diff --git a/krebs/2configs/shack/glados/multi/wasser.nix b/krebs/2configs/shack/glados/multi/wasser.nix index cdfe01405..0a7ffc41c 100644 --- a/krebs/2configs/shack/glados/multi/wasser.nix +++ b/krebs/2configs/shack/glados/multi/wasser.nix @@ -1,6 +1,9 @@ +# uses: +# switch.crafting_giesskanne_relay let glados = import ../lib; - seconds = 20; + seconds = 5; + wasser = "switch.crafting_giesskanne_relay"; in { switch = [ @@ -22,14 +25,14 @@ in { service = "homeassistant.turn_on"; entity_id = [ - "switch.wasser" + wasser ]; } { delay.seconds = seconds; } { service = "homeassistant.turn_off"; entity_id = [ - "switch.wasser" + wasser ]; } ]; @@ -38,7 +41,7 @@ in trigger = [ { platform = "state"; - entity_id = "switch.wasser"; + entity_id = wasser; to = "on"; for.seconds = seconds*2; } @@ -47,7 +50,7 @@ in [ { service = "homeassistant.turn_off"; - entity_id = [ "switch.wasser" ]; + entity_id = [ wasser ]; } ]; } -- cgit v1.2.3