Skip to content
Projetos

Pouzor/homelable-hacs

Ver no GitHub

Sobre

Home Assistant integration for Homelable — interactive homelab network topology, scanning and live status checks, distributed via HACS

Sistemas e infraestrutura

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
+1
em 7 dias
+8
em 15 dias
+19
em 1 mês
+24

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Homelable Homelable for Home Assistant

Visualize & monitor your homelab network as an interactive topology inside Home Assistant

HACS Custom Latest release Validate status License Issues Stars Forks

Screenshots · Features · Installation · Configuration · Usage · Scanner Privileges · Roadmap

About

This is the Home Assistant integration for Homelable, packaged as a custom repository for HACS.

Visualize and monitor your homelab network as an interactive topology, right inside Home Assistant: pan/zoom/drag a full Lovelace panel, discover devices with a pure-Python scanner (no nmap, no root), watch live status, and import your Zigbee, Z-Wave, and Proxmox inventories.

Need the standalone (Docker / LXC / Web) version instead? See Pouzor/homelable.


Features

From a network scanner and Zigbee / Z-Wave / Proxmox imports to live status monitoring, floor plans, multiple canvases, a rack canvas for the physical side, a Markdown documentation space per device and PNG/SVG export, Homelable maps and watches your whole homelab inside Home Assistant.

Every feature, with how to turn it on and use it, is described in FEATURES.md.


Screenshots

homelable-canvas (8)

Installation

HACS (recommended)

  1. HACS → Integrations → ⋮ → Custom repositories
  2. Add https://github.com/Pouzor/homelable-hacs as Integration.
  3. Install Homelable.
  4. Restart Home Assistant.
  5. Settings → Devices & Services → Add Integration → search "Homelable".

Manual

  1. Copy custom_components/homelable/ into your HA config/custom_components/.
  2. Restart Home Assistant.
  3. Add the integration from the UI as above.

Requirements

  • Home Assistant 2024.1 or newer.
  • No external binaries. Scanning is pure Python (ping, ARP cache, TCP connect, mDNS) and works on every install. Raw socket access unlocks extra detail — see Scanner privileges.

Configuration

Setup is fully UI-driven (config flow). You'll be prompted for:

Field Default Description
Network ranges 192.168.1.0/24 Comma-separated CIDR blocks to scan
Scan interval 60 min How often to look for new devices
Status check interval 60 s How often to refresh node status

All values can be changed later from the integration's Configure menu.


Usage

After setup, a Homelable entry appears in the sidebar. From there:

  1. Run a scan to discover devices on the configured ranges.
  2. Approve a discovered device to drop it on the canvas as a node.
  3. Connect nodes by drawing edges; pick the appropriate edge type.
  4. Save the canvas (explicit — no autosave).

Scan history, hidden devices, and scan configuration live in the side panel.

Dashboard card

The canvas can also be embedded in any Lovelace dashboard, read-only, as a custom card. Add it from the card picker ("Homelable Canvas") and configure it in the visual editor — the design is picked from a dropdown of your canvases.

The same options in YAML:

type: custom:homelable-canvas-card
design_id: 3f2b1c4e-...   # optional — the first design when omitted
title: Network            # optional card header
height: 500               # px, default 400
fit_view: true            # fit the canvas to the card on load, default true
interactive: pan          # pan (default) or none to lock the view
open_on_click: false      # click a node to open http://<its ip>, default off

The card shows live status the same way the panel does. Editing is disabled — build the canvas in the panel, then display it here.

Two notes on its behaviour:

  • The mouse wheel scrolls the dashboard rather than zooming the canvas. Use Ctrl+wheel, or the zoom buttons, to zoom.
  • The canvas refits itself whenever the card is resized, so it follows a Sections layout or a window resize without clipping.
  • Only one Homelable card per dashboard view. The canvas state is shared process-wide, so a second card on the same view shows a notice instead of a canvas. Put additional canvases on separate views.

Scanner privileges

The scanner always works without privileges: ping sweep, ARP cache reads, a pure-Python TCP connect scan for service detection, and mDNS / zeroconf. Raw socket access (ICMP ping, richer ARP) yields more reliable host discovery and MAC addresses. Without it, the scanner still finds hosts via the TCP sweep fallback — slower, and MAC addresses may be missing.

Install type Notes
HAOS / Supervised Works out of the box; ping/ARP run with the privileges HA already has.
Container Run the HA container with CAP_NET_RAW for ICMP ping + ARP; otherwise the TCP connect fallback is used automatically.
Core Grant the Python interpreter ICMP access (setcap cap_net_raw+ep $(readlink -f $(which python3))) for ping, or rely on the TCP fallback.

Roadmap

  • Multiple Homelable cards on one dashboard view.
  • HA entities per canvas node (sensor.homelable_<id>, binary_sensor.homelable_<id>_online).
  • Device registry: one HA device per canvas node.
  • Services: homelable.scan_now, homelable.approve_device, homelable.refresh_status.
  • Events: homelable_node_offline, homelable_node_online, homelable_device_discovered.
  • HACS default-listing submission once stable with real users.

See the issue tracker for the live list.


Contributing

Issues and pull requests are welcome. Please:

  • Open an issue first for non-trivial changes so we can align on scope.
  • Keep PRs focused and include tests for behavior changes.
  • Use Conventional Commits (feat:, fix:, chore:, docs:, test:, refactor:).

License

MIT © Pouzor

Explore projetos relacionados

Carregando…