add roborock automation
This commit is contained in:
parent
0244dcb281
commit
1ca10e4422
2 changed files with 29 additions and 1 deletions
|
|
@ -13,6 +13,7 @@
|
||||||
./pc.nix
|
./pc.nix
|
||||||
./presence.nix
|
./presence.nix
|
||||||
./pushover.nix
|
./pushover.nix
|
||||||
|
./roborock.nix
|
||||||
./scene-switch.nix
|
./scene-switch.nix
|
||||||
./sleep.nix
|
./sleep.nix
|
||||||
./snapcast.nix
|
./snapcast.nix
|
||||||
|
|
@ -29,7 +30,6 @@
|
||||||
"denonavr"
|
"denonavr"
|
||||||
"androidtv"
|
"androidtv"
|
||||||
"rainbird"
|
"rainbird"
|
||||||
"roborock"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.home-assistant.config =
|
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";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue