From fdc69e7ed407d4714e1e8c1e2ef3521988b758e6 Mon Sep 17 00:00:00 2001 From: SVLSBRG <68192191+svlsbrg@users.noreply.github.com> Date: Wed, 17 Apr 2024 09:24:38 +0200 Subject: [PATCH 1/2] Update const.py fixed wrong MQTT topic for "Aktueller SoC (Manuelles SoC Modul)" --- custom_components/openwbmqtt/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/openwbmqtt/const.py b/custom_components/openwbmqtt/const.py index 3881f70..5cc593d 100644 --- a/custom_components/openwbmqtt/const.py +++ b/custom_components/openwbmqtt/const.py @@ -911,7 +911,7 @@ class openWBNumberEntityDescription(NumberEntityDescription): native_max_value=100.0, native_step=1.0, entity_category=EntityCategory.CONFIG, - mqttTopicCommand="manualSoc", + mqttTopicCommand="%Soc", mqttTopicCurrentValue="manualSoc", mqttTopicChargeMode=None, entity_registry_enabled_default=False, From 55a2e6949c0ea98f4b28f4f00814c72928ea3edb Mon Sep 17 00:00:00 2001 From: SVLSBRG <68192191+svlsbrg@users.noreply.github.com> Date: Wed, 17 Apr 2024 09:46:47 +0200 Subject: [PATCH 2/2] Update README.md added more selective synchronization to avoid data inconsistency on mqtt restarts. --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4455aff..85e1414 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ The second parameter, **chargepoints**, is the number of configured charge point # Mosquitto Configuration in an Internal Network -If you're in an internal network, for example your home network, you can simply subscribe the openWB mosquitto server with the mosquitto server you're using with home assistant. No bridge settings in Home Assistant are required. Instead, add the following to the configuration (for example in /etc/mosquitto/conf.d/openwb.conf): +If you're in an internal network, for example your home network, you can simply subscribe the openWB mosquitto server with the mosquitto server you're using with home assistant. No bridge settings in Home Assistant are required. Instead, add the following to the configuration (for example in /etc/mosquitto/conf.d/openwb.conf or /share/mosquitto/mosquitto.conf): ``` # @@ -42,7 +42,21 @@ If you're in an internal network, for example your home network, you can simply connection openwb address openwb.fritz.box:1883 start_type automatic -topic openWB/# both 2 +topic openWB/# in 2 +topic openWB/set/ChargeMode both 2 +topic openWB/config/set/pv/minCurrentMinPv +topic openWB/set/lp/1/ChargePointEnabled both 2 +topic openWB/set/lp/2/ChargePointEnabled both 2 +topic openWB/config/set/sofort/lp/1/chargeLimitation both 2 +topic openWB/config/set/sofort/lp/2/chargeLimitation both 2 +topic openWB/config/set/sofort/lp/1/current both 2 +topic openWB/config/set/sofort/lp/2/current both 2 +topic openWB/config/set/sofort/lp/1/energyToCharge both 2 +topic openWB/config/set/sofort/lp/2/energyToCharge both 2 +topic openWB/config/set/sofort/lp/1/socToChargeTo both 2 +topic openWB/config/set/sofort/lp/2/socToChargeTo both 2 +topic openWB/set/lp/1/%Soc both 2 +topic openWB/set/lp/2/%Soc both 2 local_clientid openwb.mosquitto try_private false cleansession true