explaingit

jose1711/netbird-ha

Analysis updated 2026-05-18

0PythonAudience · ops devopsComplexity · 2/5LicenseSetup · easy

TLDR

A Home Assistant integration that monitors your NetBird private network, showing peers, routes, and resources as devices.

Mindmap

mindmap
  root((NetBird HA))
    What it does
      Monitors NetBird network
      Peer route sensors
      Auto cleanup
    Tech stack
      Python
      Home Assistant
      HACS
    Use cases
      Monitor peers
      Track expirations
      Auto dashboard
    Audience
      Home Assistant users
      Network admins
    Setup
      Install via HACS
      Add access token
      Restart Home Assistant

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Monitor the connection status of every device on your NetBird network from a Home Assistant dashboard.

USE CASE 2

Get alerted in Home Assistant when a NetBird peer's login expires or needs approval.

USE CASE 3

Automatically remove stale entities when peers or routes are removed from NetBird.

USE CASE 4

Display an auto-updating dashboard of all NetBird peers and routes without manual configuration.

What is it built with?

PythonHome AssistantHACSNetBird

How does it compare?

jose1711/netbird-ha0xallam/my-recipe0xhassaan/nn-from-scratch
Stars00
LanguagePythonPythonPython
Last pushed2022-11-22
MaintenanceDormant
Setup difficultyeasymoderatemoderate
Complexity2/52/54/5
Audienceops devopsgeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Requires an existing NetBird account and a Personal Access Token from the NetBird dashboard.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

This project connects Home Assistant, a popular home automation platform, to NetBird, a private networking service similar to a VPN. It does not make your Home Assistant instance reachable through NetBird. Instead it works the other way around: it lets Home Assistant watch and report on the state of your NetBird network from inside its own dashboard. Once installed, it creates a device in Home Assistant for every peer, route, and network resource in your NetBird setup. Each of these gets sensors showing things like whether it is connected or active, its IP address, when it was last seen or logged in, whether SSH access is enabled, whether its login has expired, whether it needs approval, and how many other peers it can reach. It works whether you use NetBird's own cloud service or a self-hosted management server, and it automatically re-authenticates if your access token is revoked or expires. Devices for peers, routes, or resources that get removed from NetBird are cleaned up automatically rather than left behind as stale entries. The project also includes an example dashboard file that displays all of your peers, routes, and resources automatically, without anyone needing to type in a fixed list of entity names by hand, so it keeps working as your NetBird network changes over time. Installation is done either through HACS, a popular add-on manager for Home Assistant, by adding this repository as a custom source, or manually by copying a folder into Home Assistant's configuration directory. After either method, Home Assistant needs a restart, and then you connect it to NetBird using an access token generated from the NetBird dashboard. The project is written in Python and released under the MIT license.

Copy-paste prompts

Prompt 1
Install the NetBird integration in Home Assistant using HACS as a custom repository.
Prompt 2
Generate a Personal Access Token in the NetBird dashboard and connect it to Home Assistant.
Prompt 3
Add the example dashboard.yaml to Home Assistant to auto-list all NetBird peers and routes.
Prompt 4
Point the integration at a self-hosted NetBird management server instead of the cloud service.

Frequently asked questions

What is netbird-ha?

A Home Assistant integration that monitors your NetBird private network, showing peers, routes, and resources as devices.

What language is netbird-ha written in?

Mainly Python. The stack also includes Python, Home Assistant, HACS.

What license does netbird-ha use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is netbird-ha to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is netbird-ha for?

Mainly ops devops.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.