Person group not updating

I have a group that tracks if anyone is home. it had been working flawlessly until a couple of days ago. now it always shows “Away”. this is the group configuration:

  anyone_home:
    name: Anyone Home
    icon: mdi:home-floor-1
    entities:
      - person.wife
      - person.me
      - person.guest

and this is a card i made for the status of the entities. shouldn’t the “anyone_home” be set to home?

what could cause it not to update?

The person entity only reflects the state of the underlying device tracker.

yes, i know… but the group should combine all the device trackers under the person entities and if any one of them is home, the group anyone_home should be Home. The group is not updating.

Ouch, yes, my focus was too much on the red bars and not on the state of the group members. I think in the back of my mind that person groups have been buggy lately.

Thanks, I’ve updated my findings on that thread to see if anyone has any ideas. It’s killing me, all my automations based on presence are not working and the wife is about to strangle me.

I’m using a person group in the same way and it works as expected.

The only difference I can see is that I added the attribute “all:” to the group and set it to “false”.

This is the default and shouldn’t be necessary but maybe you give it a try.

good idea, I will give that a shot.

Was digging a bit more and also noticed that in my logbook, the values for home are sometimes different:

I think that may be the crux of the issue. There are only 2 trackers assigned to my person, one is the IOS cloud the other is the HA App. It looks like both of the trackers can use home value with lower case h and also Home with upper case H. not sure if that would cause an issue or not, but assuming the compare done in the group may be case sensitive.

Compare your trackers’ states in Developer Tools > Services. I don’t think that the backend state differentiates between upper and lower case.

they show both Home and home. this is icloud:

This is HA App:

Wow, I wouldn’t have thought. Very interesting!
Maybe you can work around the problem by adding another presence entity to the group (for example an input_boolean). This changes the state of the group to on/off.

i’m getting around it now by using a template to check home or Home, but i do wonder if this is something i should raise a flag on. i would think more people would be having issues with presence detection if the case sensitivity mattered…

Definitely. It was completely unknown to me.

This is still an issue. my group status is not working either.

How did you resolved it with templates? could you share an example?

i created a template sensor that basically checks for home both with a cap or lowercase.

    - name: Seb Status
      unique_id: 3333-3333-4444-1111-0021
      state: >
        {% if  is_state("person.seb", "home") or is_state("person.seb", "Home") %}
          home
        {% else %}
          not_home
        {% endif %}