fix home-assistant and button
This commit is contained in:
parent
6a8af64c7e
commit
3d0fbcf95e
2 changed files with 32 additions and 27 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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" ];
|
||||
|
|
Loading…
Reference in a new issue