Skip to content

About

Zigbee network topology map for Home Assistant

Topics

Resources

Security policy

Stars

49 stars

Watchers

0 watching

Forks

Repository files navigation

Zigporter

GitHub Release Home Assistant Validate Docs License: MIT

Zigbee network topology map for Home Assistant. Visualize your mesh network with LQI signal quality indicators, routing paths, and device hierarchy.

Supports both Zigbee2MQTT and ZHA backends.

Demo network map

Documentation · Getting started · Troubleshooting

Requirements

  • Home Assistant 2024.8.0 or newer
  • One of:
    • Zigbee2MQTT with the MQTT integration configured
    • ZHA integration configured

Installation

Home Assistant Marketplace

On Home Assistant 2026.11 or newer, install Zigporter through the Marketplace. Zigporter is not yet listed in the default catalog, so add it as a custom repository.

The button below opens Zigporter in the Marketplace and requires My Home Assistant to be configured:

Open Zigporter in the Home Assistant Marketplace or HACS

If the repository is not added automatically:

  1. Go to Settings → Marketplace and select Custom repositories from the three-dot menu.
  2. Add nordstad/zigporter-ha with the type Integration.

Then find Zigporter in the Marketplace, install it, and restart Home Assistant.

HACS (older Home Assistant versions)

On Home Assistant versions older than 2026.11, use HACS instead:

  1. Open HACS and select Custom repositories from the three-dot menu.
  2. Add nordstad/zigporter-ha with the type Integration.
  3. Find Zigporter and install it.
  4. Restart Home Assistant.

Manual

Copy custom_components/zigporter/ to your HA config/custom_components/ directory and restart.

Setup

Add Integration to your Home Assistant instance.

The button requires My Home Assistant to be configured.

Alternatively, go to Settings → Devices & Services → Add Integration and search for Zigporter.

Then:

  1. Select your Zigbee backend (Zigbee2MQTT or ZHA).
  2. If using Zigbee2MQTT, confirm the MQTT topic prefix (default: zigbee2mqtt).
  3. Optionally enter a Name (for example "Building 1") used as the entry name and default card title.

Multiple bridges

Add one Zigporter entry per Zigbee2MQTT topic using Add entry on the integration page. You can also add one ZHA entry.

Use a separate card and Panel view for each bridge.

See the configuration guide.

Options

Click Configure on the integration to adjust:

Option Default Description
Backend (from setup) Switch between Z2M and ZHA without reinstalling
MQTT topic zigbee2mqtt Topic prefix for Z2M
Warning LQI 50 Links below this show yellow
Critical LQI 20 Links below this show red
Scan timeout 1000s Max wait for network scan (60–1800s)
Cache TTL 0 Seconds to cache the map (0 = manual refresh only)
Hop colors (built-in palette) Four custom ring gradient colors (details)
Hop opacity 0.90 Opacity of hop ring fills (0.1–1.0)

Tip: If you use both ZHA and Zigbee2MQTT, add separate entries to view both networks, or switch an existing entry's backend in its options.

Dashboard card

The card JS is registered automatically — no manual resource setup needed.

First install: After adding the integration, refresh your browser (F5) before adding the card. The card resource is registered on integration load, but the browser needs a page refresh to pick it up.

Adding the card

Important: The card must be added to its own Panel view. It is sized to fill the whole page and does not display correctly in Sections or Masonry views.

  1. Open your dashboard and click the pencil icon (top-right) to enter edit mode.

  2. Click the + tab to create a new view.

  3. In the view settings, select Panel (single card) as the layout, give it a title (e.g. "Zigbee Network"), and click Save.

  4. Click + Add card (bottom-right).

  5. Search for "Zigporter" — or scroll to the bottom and choose Manual, then paste:

    type: custom:zigporter-network-map-card
  6. Click Save, then Done to exit edit mode.

The map will appear empty until you click Scan to request the first network topology.

Card options

Option Default Description
title Zigbee Network Map Card header text
show_stats true Show device count, hops, and scan duration
entry_id (original entry) Bridge to show; select in the card editor

Cards without entry_id show your original entry.

How it works

The integration requests a network topology scan from your Zigbee backend, builds a routing tree using bidirectional LQI for best-path parent selection, renders it as a radial SVG, and delivers it to the card via WebSocket.

  • Zigbee2MQTT — publishes to zigbee2mqtt/bridge/request/networkmap via MQTT
  • ZHA — reads device list and neighbor tables from the ZHA gateway

Note: The network map is a point-in-time snapshot. Zigbee mesh networks continuously optimize their routing, and devices may join or leave. The card displays the scan date in the stats line so you know how current the map is. Click Scan to capture a fresh topology.

Limitations

  • The card only works for Home Assistant administrators: the network map, scans and history expose device names and topology.
  • ZHA maps may lack routing data, producing a flat topology.
  • First scan after HA restart can be slow (coordinator queries each device).
  • Very large networks (100+ devices) produce large SVGs — the cache avoids repeated scans.

Related: Zigporter CLI

This Home Assistant integration is the companion to Zigporter CLI — a terminal tool for managing your Zigbee network:

  • Migrate devices between ZHA and Zigbee2MQTT (both directions) with automated entity/dashboard cascade
  • Rename devices and entities with full HA reference updates (automations, scripts, dashboards)
  • Network map — the same radial SVG visualization, exported as a standalone file
  • Stale device cleanup — find and remove offline/ghost devices

Install via uv tool install zigporter, pip install zigporter, or brew tap nordstad/zigporter && brew install zigporter.

Documentation · Interactive demo

In the wild

Zigporter was featured by BeardedTinker in Home Assistant Finally Lets Me Organize Everything!, where he walks through how to use it.

Home Assistant Finally Lets Me Organize Everything! by BeardedTinker

Support

ko-fi

License

MIT

About

Zigbee network topology map for Home Assistant

Topics

Resources

Security policy

Stars

49 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages