Group of devices HOME

Any advice on how to create a group of device that are just state home?

In the interface? If so, look at the conditional card.

Simply create a group.location and add all the location sensors you have.
If any one of them is “home” the whole group will be home.
If all of them are “not_home” the group will be not home.

No i want to list out who is home in the card

More like this

Got it, that did the trick. Just gotta test it to see if it updates.

Works perfect and keeps up to day too. This is exactly what i was looking for.

You need custom ui

Create a group with no entities

homescreen_dash_whoshome:
  name: "Who's Home"
  control: hidden

Then under customize

group.homescreen_dash_whoshome:
  custom_ui_state_card: state-card-custom-ui
  templates:
    entity_id: "return Object.keys(entities).filter(key => entities[key].state === 'home' && key.startsWith('device_tracker') )"

custom-ui is for the old interface.

Homeassistant now uses lovelace for it’s interface.

For lovelace you just use a conditional card, as per my original reply.

You should upgrade your system.

1 Like

Im on 84 don’t feel like moving all my custom stuff to LL.

Maybe you can share how you would handle it for lovelace users.