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