this post was submitted on 10 Apr 2025
1 points (100.0% liked)

Home Assistant

412 readers
1 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY...

founded 2 years ago
MODERATORS
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/Tazomatalax on 2025-04-10 00:54:22+00:00.


I wanted a way of viewing devices as they come online and my Orbi router is a pain to do this on. This uses the NETGEAR integration to det the device tracker entities.

Here's what this card will do:

  • Find all device_tracker entities with state "home"
  • Display them in an entities card
  • Use the friendly_name attribute as the primary display name (with a fallback that formats the entity_id nicely if friendly_name is missing)
  • Show the IP address in the secondary line
  • Sort the devices alphabetically by name
  • Hides the card when no devices are at home

Requirements:

You'll need to install the "lovelace-template-entity-row" and "auto-entites" custom cards via HACS (Home Assistant Community Store).

`yaml type: custom:auto-entities card: type: entities title: Devices at Home icon: mdi:router-network state_color: true filter: include:

  • entity_id: device_tracker.* state: home options: type: custom:template-entity-row name: >- {{ state_attr("this.entity_id", "friendly_name") or this.entity_id.split(".")[1] | replace("_", " ") | title }} secondary: "IP: {{ state_attr("this.entity_id", "ip") }}" exclude: [] show_empty: false sort: method: name reverse: false`
no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here