add home-assistant nix configuration

This commit is contained in:
2023-12-09 22:55:41 +01:00
parent bdca649697
commit 027be96f9c
22 changed files with 1450 additions and 60 deletions

View File

@@ -0,0 +1,28 @@
{
services.home-assistant.extraComponents = [
"roborock"
];
services.home-assistant.config = {
"automation roborock" = {
alias = "roborock";
hide_entity = false;
trigger = {
platform = "state";
entity_id = [
"person.dominik"
];
from = "home";
to = "not_home";
};
action = [
{
service = "vacuum.start";
target = {
device_id = "136c307ff46cd968d08e9f9d20886755";
};
}
];
};
};
}