This Home Assistant custom integration seamlessly connects your openWB charging station to your smart home via MQTT. It automatically reads all relevant MQTT data and creates matching sensors – including data for wallbox, vehicles, battery, and photovoltaic system (PV).
- Subscribes to all
openWB/#topics via MQTT. - Automatically detects new devices and values.
- Creates matching entities (sensors) on-the-fly.
| Category | Example Topic | Description |
|---|---|---|
| Charge Points | openWB/chargepoint/0/# |
Status, configuration, phases, etc. |
| Vehicles | openWB/vehicle/0/# |
SoC, template, info, etc. |
| Battery | openWB/bat/0/# |
Charging power, SoC, current, etc. |
| PV System | openWB/pv/0/# |
Generation, voltages, error messages |
| Summaries | openWB/bat/get/, openWB/pv/get/ |
Total power, energy, etc. |
| Meter Data | openWB/counter/0/# |
Import/export, power, frequency, etc. |
- Automatically loads names for
charge_templateandev_templatefrom the following topics:openWB/vehicle/template/charge_template/<id>openWB/vehicle/template/ev_template/<id>
These templates are displayed as human-readable text (e.g., Fast Charge, Overnight Slow).
- The integration automatically creates a
selectentity for each detected vehicle. - This select entity allows switching between available
charge_templateprofiles in openWB directly from the Home Assistant UI.
- Automatic detection of MQTT topics (
openWB/#) - Dynamic creation of sensor entities
- Support for vehicle templates (
charge_template,ev_template) - Chargepoint configuration mapped to individual entities
- Select entities for choosing charge templates
- Device naming according to openWB configuration
- Implement full control of openWB charge_template
- Extended control of openWB via
set/topics - Automated charging planning using PV/SoC forecasts
- Multilingual UI (DE/EN)
- Provide Lovelace Dashboard(s)
This integration requires the official MQTT integration to be installed and configured. The openWB topics must also be transferred to this instance. Either via MQTT bridge from openWB or via a customized configuration of Mosquitto, for example.
To enable MQTT:
- Go to Settings → Devices & Services
- Click on „+ Add Integration“
- Search for MQTT and follow the setup wizard
Example Mosquitto Bridge Config (not openWB MQTT Bridge) to subscribe all openWB/# topics
#################################################################
# MQTT Bridge to openWB
#################################################################
connection openwb-bridge
address 10.10.10.85:1883
clientid mosquitto-openwb-bridge
try_private false
cleansession true
start_type automatic
# Optional user/password
# username openwbuser
# password geheim
topic openWB/# in 2
topic openWB/set/# out 2
This integration can be installed and updated easily using HACS:
-
Open HACS in your Home Assistant UI
→ Go to HACS → Integrations -
Click on „+ Explore & Download Repositories“
-
In the top right, click on „⋮ → Custom repositories“
-
Enter the URL of this repository: https://github.com/mkshb/openwb_hass and choose „Integration“ as category
-
Click Add
-
The integration will now appear in the list. Click on it and select Install.
-
Restart Home Assistant
-
Go to Settings → Devices & Services → Add Integration, search for „openWB“ and follow the setup wizard.
Easy generating Home Assistant dashboard elements
📥 Download index.html
→ Download file → Open in local browser → Enter ID and the name of the loading profile → Click “Generate”
→ Insert in Home Assistant via → Edit dashboard → In a section: Edit → Click on the three dots at the top right → Edit in YAML → Insert code from the generator (replacing everything)
Diese Home Assistant Custom Integration bindet eine openWB-Ladestation über MQTT nahtlos in dein Smart Home ein. Sie liest automatisch alle relevanten MQTT-Daten aus und erstellt daraus passende Sensoren – inklusive Wallbox-, Fahrzeug-, Batterie- und PV-Daten.
- Abonniert alle
openWB/#-Topics per MQTT. - Erkennt automatisch neue Geräte und Werte.
- Erstellt passende Entitäten (Sensoren) on-the-fly.
| Gerätegruppe | Beispiel-Topic | Beschreibung |
|---|---|---|
| Ladepunkte | openWB/chargepoint/0/# |
Status, Konfiguration, Phasen etc. |
| Fahrzeuge | openWB/vehicle/0/# |
SoC, Template, Info, etc. |
| Batterie | openWB/bat/0/# |
Ladeleistung, SoC, Strom etc. |
| PV-Anlage | openWB/pv/0/# |
Erzeugung, Spannungen, Fehlertexte |
| Summenwerte | openWB/bat/get/, openWB/pv/get/ |
Gesamtleistung, Energie etc. |
| Zählerdaten | openWB/counter/0/# |
Import/Export, Leistung, Frequenz etc. |
- Lädt automatisch die Namen für
charge_templateundev_templateaus den Topics:openWB/vehicle/template/charge_template/<id>openWB/vehicle/template/ev_template/<id>
Diese Vorlagen werden korrekt als lesbarer Text angezeigt (z. B. Schnellladen, Langsam über Nacht).
- Die Integration erstellt automatisch eine
select-Entität für jedes erkannte Fahrzeug. - Diese Entität erlaubt es, das aktuell verwendete
charge_template-Profil direkt über die Home Assistant-Oberfläche umzuschalten.
- Automatische Erkennung von MQTT-Topics (
openWB/#) - Dynamische Erstellung von Sensoren
- UnterstĂĽtzung fĂĽr Fahrzeug-Templates (
charge_template,ev_template) - Ladepunkt-Konfiguration als Entitäten
- Select-Entitäten für Ladeprofile
- Benennung von Home Assistant Geräten nach openWB Konfiguration
- openWB charge_template aus Home Assistant heraus anpassen
- Weitere Steuerung von openWB via
set/-Topics - Automatisierte Ladeplanung mit PV-/SoC-Prognosen
- Mehrsprachige Oberfläche (DE/EN)
- Lovelace Dashboard(s) bereitstellen
FĂĽr diese Integration muss die offizielle [MQTT-Integration] (https://www.home-assistant.io/integrations/mqtt/) installiert und konfiguriert sein. Die openWB-Themen mĂĽssen ebenfalls in diese Instanz ĂĽbertragen werden. Entweder ĂĽber die MQTT-Bridge von openWB oder ĂĽber eine angepasste Konfiguration von z.B. Mosquitto.
So aktivieren Sie MQTT:
- Gehen Sie zu Einstellungen → Geräte & Dienste
- Klicken Sie auf „+ Integration hinzufügen “.
- Suchen Sie nach MQTT und folgen Sie dem Einrichtungsassistenten
Beispiel Mosquitto Bridge Config (nicht openWB MQTT Bridge) um alle openWB/# Topics zu abonnieren
#################################################################
# MQTT Bridge to openWB
#################################################################
connection openwb-bridge
address 10.10.10.85:1883
clientid mosquitto-openwb-bridge
try_private false
cleansession true
start_type automatic
## Optional: Benutzer / Passwort
# username openwbuser
# password geheim
topic openWB/# in 2
topic openWB/set/# out 2
Diese Integration kann ganz einfach ĂĽber HACS installiert und aktualisiert werden:
-
Öffne HACS in der Home Assistant-Oberfläche
→ Gehe zu HACS → Integrationen -
Klicke auf „+ Durchsuchen & Repositories herunterladen“
-
Klicke oben rechts auf „⋮ → Benutzerdefinierte Repositories“
-
Gib folgende Repository-URL ein: https://github.com/mkshb/openwb_hass und wähle „Integration“ als Kategorie
-
Klicke auf HinzufĂĽgen
-
Die Integration erscheint nun in der Liste. Klicke darauf und wähle Installieren
-
Starte Home Assistant neu
-
Gehe zu Einstellungen → Geräte & Dienste → Integration hinzufügen, suche nach „openWB“ und folge dem Einrichtungsassistenten.
Einfaches Generieren von Home Assistant Dashboard-Elementen.
📥 Download index.html
→ Datei herunterladen → Im lokalen Browser öffen → ID und den Namen des Ladeprofils eingeben → „Generieren“ klicken
→ Einfügen in Home Assistant über → Dashboard bearbeiten → In einem Abschnitt: Bearbeiten → Klick auf die drei Punkte oben rechts → In YAML bearbeiten → Code aus dem Generator einfügen (dabei alles ersetzen)



