Skip to content
cdevries.dev

Home Assistant and IoT

Traefik integration

Every Traefik route as its own Home Assistant device, so reverse proxy health sits next to everything else in the house.

The problem

Traefik has a perfectly good API and dashboard, but its state lives in a different place from the rest of my monitoring. A route going down should be as visible as a door being left open.

What I built

An async client for the Traefik API and an integration that creates one Home Assistant device per router, named after the route, with entities for its state and the service behind it.

Why it is built this way

Modelling each route as a device rather than one blob sensor means automations and dashboards can target a single service without string parsing.