shack/glados: fix giesskanne

This commit is contained in:
makefu 2020-07-28 23:59:32 +02:00
parent 26668a97f5
commit 3d8f07d4be
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -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 ];
}
];
}