stockholm/makefu/2configs/home/ham/lib/cheat-sheet.nix

43 lines
821 B
Nix
Raw Normal View History

2022-01-30 22:51:32 +00:00
# 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 = { };
}
];
}