fix home-assistant and button

This commit is contained in:
Ingolf Wagner 2020-06-11 16:53:29 +02:00
parent 6a8af64c7e
commit 3d0fbcf95e
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 32 additions and 27 deletions

View file

@ -85,14 +85,9 @@ in {
entity_id = "input_boolean.situation_toggle"; entity_id = "input_boolean.situation_toggle";
}; };
condition = { condition = {
condition = "not"; condition = "template";
conditions = [{ value_template =
condition = { ''{{ states.input_select.scene.state != "outside" }}'';
condition = "state";
entity_id = "input_select.scene";
state = "outside";
};
}];
}; };
action = { action = {
service = "input_select.select_next"; service = "input_select.select_next";
@ -106,17 +101,26 @@ in {
entity_id = "input_boolean.situation_toggle"; entity_id = "input_boolean.situation_toggle";
}; };
condition = { condition = {
condition = "state"; condition = "template";
entity_id = "input_select.scene"; value_template =
state = "outside"; ''{{ states.input_select.scene.state == "outside" }}'';
};
action = {
service = "input_select.select_option";
data = {
entity_id = "input_select.scene_button";
option = "default";
};
}; };
action = [
{
service = "input_select.select_option";
data = {
entity_id = "input_select.scene_button";
option = "default";
};
}
{
service = "input_select.select_option";
data = {
entity_id = "input_select.scene";
option = "default";
};
}
];
} }
{ {
alias = "Button Scene -> Scene"; alias = "Button Scene -> Scene";

View file

@ -81,15 +81,16 @@
}; };
}; };
systemd.services."permown._media_syncthing" = { # todo not working properly
bindsTo = [ "media.mount" ]; #systemd.services."permown._media_syncthing" = {
after = [ "media.mount" ]; # bindsTo = [ "media.mount" ];
}; # after = [ "media.mount" ];
system.permown."/media/syncthing" = { #};
owner = "syncthing"; #system.permown."/media/syncthing" = {
group = "syncthing"; # owner = "syncthing";
umask = "0007"; # group = "syncthing";
}; # umask = "0003";
#};
systemd.services."syncthing" = { systemd.services."syncthing" = {
bindsTo = [ "media.mount" ]; bindsTo = [ "media.mount" ];
after = [ "media.mount" ]; after = [ "media.mount" ];