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";
};
condition = {
condition = "not";
conditions = [{
condition = {
condition = "state";
entity_id = "input_select.scene";
state = "outside";
};
}];
condition = "template";
value_template =
''{{ states.input_select.scene.state != "outside" }}'';
};
action = {
service = "input_select.select_next";
@ -106,18 +101,27 @@ in {
entity_id = "input_boolean.situation_toggle";
};
condition = {
condition = "state";
entity_id = "input_select.scene";
state = "outside";
condition = "template";
value_template =
''{{ states.input_select.scene.state == "outside" }}'';
};
action = {
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";
trigger = {

View file

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