stockholm/makefu/2configs/home/ham/lib/cheat-sheet.nix
2022-01-30 23:51:32 +01:00

43 lines
821 B
Nix

# Begin
let
in {
services.home-assistant.config.automation =
[
];
}
# example automation
{ alias = "";
trigger = [
{
platform = "state";
entity_id = "";
to = "on";
for.seconds = 0;
}
];
condition = [
{ condition = "state";
entity_id = "";
state = "off";
}
];
action =
[
{ choose = [
{
conditions = {
condition = "state";
entity_id = "";
state = "on";
};
sequence = [{
service = "home_assistant.turn_on";
target.entity_id = "";
}];
}];
default = { };
}
];
}