Skip to content

Comments

feat: add expandable online nodes list#1

Open
dereckhall wants to merge 1 commit intoHamper:mainfrom
dereckhall:feat/expandable-online-nodes
Open

feat: add expandable online nodes list#1
dereckhall wants to merge 1 commit intoHamper:mainfrom
dereckhall:feat/expandable-online-nodes

Conversation

@dereckhall
Copy link

Summary

  • The online/total nodes count is now clickable with a chevron indicator
  • Clicking it expands an inline list showing each online node name with a relative last-heard time (e.g. "14 min ago", "1h 32min ago")
  • Reads the online_nodes attribute from the Meshtastic integration's Online Nodes sensor
  • Gracefully handles missing attribute (shows empty list)

Dependency

Requires the companion integration change: meshtastic/home-assistant#148

The integration PR adds an online_nodes attribute to the Online Nodes sensor containing an array of node name strings with UTC timestamps.

Test plan

  • Verify the nodes count still displays correctly when collapsed
  • Verify clicking the count expands the node list
  • Verify clicking again collapses the list
  • Verify node names and relative times display correctly
  • Verify the card renders without errors when the online_nodes attribute is not present (older integration versions)

The online/total nodes count is now clickable. Clicking it expands a
list showing each online node name with a relative last-heard time
(e.g. "14 min ago"). Reads the online_nodes attribute from the
Meshtastic integration's Online Nodes sensor.

Requires meshtastic/home-assistant with online_nodes attribute support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant