diff --git a/examples/mqtt.py b/examples/mqtt.py index a5c0442..7436f04 100644 --- a/examples/mqtt.py +++ b/examples/mqtt.py @@ -120,8 +120,8 @@ def on_message(client, userdata, msg): print(value_pvProduction) print(value_wHouseConsumption) print(value_energyImportExport) - print(topic_houseBatterySoC) - print(topic_houseBatteryLoadUnload) + print(value_houseBatterySoC) + print(value_houseBatteryLoadUnload) #print(f"`{msg.topic}`: `{msg.payload.decode()}`") @@ -132,8 +132,8 @@ client.on_connect = on_connect value_pvProduction = "" value_wHouseConsumption = "" value_energyImportExport = "" -topic_houseBatterySoC = "" -topic_houseBatteryLoadUnload = "" +value_houseBatterySoC = "" +value_houseBatteryLoadUnload = "" client.on_message = on_message