From 2a11a528f66ec5681abc1ab1b53af7e862af042e Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Wed, 19 Oct 2022 17:40:16 +0200 Subject: [PATCH] fix --- examples/mqtt.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/mqtt.py b/examples/mqtt.py index acf4653..fc32a62 100644 --- a/examples/mqtt.py +++ b/examples/mqtt.py @@ -100,7 +100,11 @@ def on_message(client, userdata, msg): global value_houseBatterySoC global value_houseBatteryLoadUnload value_pvProduction = "" - + value_wHouseConsumption = "" + value_energyImportExport = "" + value_houseBatterySoC = "" + value_houseBatteryLoadUnload = "" + if msg.topic == "openWB/pv/W": value_pvProduction = ""+msg.payload.decode() line = 0