add roborock automation

This commit is contained in:
2023-07-27 23:50:33 +02:00
parent 0244dcb281
commit 1ca10e4422
2 changed files with 29 additions and 1 deletions

View File

@@ -13,6 +13,7 @@
./pc.nix
./presence.nix
./pushover.nix
./roborock.nix
./scene-switch.nix
./sleep.nix
./snapcast.nix
@@ -29,7 +30,6 @@
"denonavr"
"androidtv"
"rainbird"
"roborock"
];
services.home-assistant.config =

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";
};
}
];
};
};
}