add roborock automation
This commit is contained in:
@@ -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 =
|
||||
|
||||
28
utils/modules/home-assistant/roborock.nix
Normal file
28
utils/modules/home-assistant/roborock.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user