From 16c8ed4b4bc3454177ae9f6fee48c213bdca46f0 Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Wed, 19 Oct 2022 17:55:33 +0200 Subject: [PATCH] fix --- examples/mqtt.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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