summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/glados/multi
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-07-28 23:59:32 +0200
committermakefu <github@syntax-fehler.de>2020-07-28 23:59:32 +0200
commit3d8f07d4be7c2dc50f9de50ce2b1d55b9bdc7b90 (patch)
treeeb17e14f065eab3f62f545475b0dfb76b7c8ece2 /krebs/2configs/shack/glados/multi
parent26668a97f5c916d3d6f7c7062202c21783140935 (diff)
shack/glados: fix giesskanne
Diffstat (limited to 'krebs/2configs/shack/glados/multi')
-rw-r--r--krebs/2configs/shack/glados/multi/wasser.nix13
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 ];
}
];
}