feat: changes to home assistant getting home
This commit is contained in:
parent
eba36f9d56
commit
190c2ee5c5
4 changed files with 39 additions and 20 deletions
|
|
@ -1,8 +1,6 @@
|
|||
let
|
||||
devices = [
|
||||
"device_tracker.dominiks_iphone"
|
||||
"device_tracker.dominiks_mp01"
|
||||
"device_tracker.dominiks_fairphone_6"
|
||||
persons = [
|
||||
"person.dominiks"
|
||||
];
|
||||
in {
|
||||
services.home-assistant.extraComponents = [
|
||||
|
|
@ -14,18 +12,12 @@ in {
|
|||
alias = "house_door";
|
||||
mode = "restart";
|
||||
trigger = {
|
||||
platform = "state";
|
||||
entity_id = devices;
|
||||
from = "not_home";
|
||||
to = "home";
|
||||
platform = "zone";
|
||||
entity_id = "person.dominik";
|
||||
zone = "zone.home";
|
||||
event = "enter";
|
||||
};
|
||||
action = [
|
||||
{
|
||||
service = "script.turn_on";
|
||||
target = {
|
||||
entity_id = "script.turn_on_circuits";
|
||||
};
|
||||
}
|
||||
{
|
||||
service = "lock.unlock";
|
||||
target = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue