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";
|
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,18 +101,27 @@ 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 = {
|
action = [
|
||||||
|
{
|
||||||
service = "input_select.select_option";
|
service = "input_select.select_option";
|
||||||
data = {
|
data = {
|
||||||
entity_id = "input_select.scene_button";
|
entity_id = "input_select.scene_button";
|
||||||
option = "default";
|
option = "default";
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
service = "input_select.select_option";
|
||||||
|
data = {
|
||||||
|
entity_id = "input_select.scene";
|
||||||
|
option = "default";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
{
|
{
|
||||||
alias = "Button Scene -> Scene";
|
alias = "Button Scene -> Scene";
|
||||||
trigger = {
|
trigger = {
|
||||||
|
|
|
@ -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" ];
|
||||||
|
|
Loading…
Reference in a new issue