feat: changes to home assistant getting home

This commit is contained in:
Dominik Polakovics Polakovics 2026-01-30 08:59:36 +01:00
parent eba36f9d56
commit 190c2ee5c5
4 changed files with 39 additions and 20 deletions

View file

@ -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 = {