diff options
author | lassulus <lassulus@lassul.us> | 2020-08-06 23:22:35 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2020-08-06 23:22:35 +0200 |
commit | 04d9ff2dcdc039518391fcb41ffbb256e2f4ba23 (patch) | |
tree | b43df90781f3500e5fb63b4862ef56f750635563 /krebs/2configs/shack/glados/multi/wasser.nix | |
parent | 087fff54f11d28c9a08849c70520ecf9030f4ce9 (diff) | |
parent | 3d8f07d4be7c2dc50f9de50ce2b1d55b9bdc7b90 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/2configs/shack/glados/multi/wasser.nix')
-rw-r--r-- | krebs/2configs/shack/glados/multi/wasser.nix | 13 |
1 files changed, 8 insertions, 5 deletions
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 ]; } ]; } |