Skip to content

Commit

Permalink
Fix automations using group.residents
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Kissling committed Jun 23, 2024
1 parent b17f005 commit 8172adb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
12 changes: 12 additions & 0 deletions automations/persons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,15 @@
data:
title: Residents - Guest Mode
message: Manual Resident Guest Mode is still on.

- alias: Residents - Sync guest with input boolean
mode: queued
trigger:
platform: state
entity_id: input_boolean.person_guest
action:
service: device_tracker.see
data:
dev_id: guest
location_name: "{{ 'home' if is_state(trigger.entity_id, 'on') else 'not_home' }}"
source_type: router
2 changes: 1 addition & 1 deletion groups/persons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ residents:
entities:
- person.patrick
- person.sandra
- sensor.person_guest
- device_tracker.guest
7 changes: 0 additions & 7 deletions sensors/persons.yaml

This file was deleted.

0 comments on commit 8172adb

Please sign in to comment.