Skip to content

Configuration Example: openWB via MQTT

steff393 edited this page May 20, 2023 · 4 revisions

Configuration in wbec:

Modify cfg.json (using http:// ip /edit):

  • cfgMqttIp: IP adress of openWB ("" to disable MQTT)
  • cfgMqttLp: Mapping of Modbus IDs to openWB load points, e.g. [4,2,0,1]: Box0 = LP4, Box1 = LP2, Box2 = no MQTT, Box3 = LP1

Example:
..."cfgMqttIp":"192.168.178.1","cfgMqttLp":[1],"cfgMqttUser":"optionalUsername","cfgMqttPass":"optionalPW"...

Configuration in openWB:

open-WB-config
...

Details regarding MQTT communication

The MQTT communication is currently mainly intended for connection to openWB.

This means, once activated, the following topic will be subscribed:
openWB/lp/1/AConfigured Stromvorgabe in A

And these topics will be published whenever a new Modbus transmission is complete:
openWB/set/lp/1/plugStat Status, ob ein Fahrzeug angesteckt ist, nur 0 (nein) oder 1 (ja)
openWB/set/lp/1/chargeStat Status, ob gerade geladen wird, nur 0 (nein) oder 1 (ja)

The examples mentioned above are for load point 1. The 1 in the topic can be replaced by another number using cfgMqttLp (see above).

Details for openWB 2.0

see Issue #75