Hi, I have a person group set up like this via YAML:
family:
name: family
entities:
- person.person1
- person.person2
The group status changes as expected. I have a card which shows the group status, and it’s “Away” when it should be, and “Home” when it should be.
I have an automation set up to trigger when the group status changes, however it is not working. I’ve tested the automation on it’s own (Using run
in the menu), and the automation works, so I know the group and automation work independently, just not working together to trigger.
Here is my automation:
- id: "1671152449833"
alias: Leaving Home
description:
Turn all lights off and set climate control to “Away” when the last
person in the "Family" group leaves home
trigger:
- platform: state
entity_id:
- group.family
from: "home"
to: "not_home"
alias: When the last person in the “Family” group leaves home
condition: []
action:
- if:
- condition: state
entity_id: input_boolean.guest_mode
state: "on"
then:
- service: notify.notify
data:
title: Leaving Home automations are disabled
message: Guest Mode is currently active
alias: "Notifications: Reminder that Guest Mode is on"
else:
...all the automation stuff
mode: single
I’ve also tried the statuses not being in quotation marks, and also tried “home” and “away” instead of “home” and “not_home”, and nothing seems to work.
Any ideas what could be wrong?