summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/glados/multi/wasser.nix
diff options
context:
space:
mode:
Diffstat (limited to 'krebs/2configs/shack/glados/multi/wasser.nix')
-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 ];
}
];
}