This commit is contained in:
Robert Borzutzki 2022-10-19 17:55:33 +02:00
parent 36dec5bb44
commit 16c8ed4b4b

View File

@ -120,8 +120,8 @@ def on_message(client, userdata, msg):
print(value_pvProduction) print(value_pvProduction)
print(value_wHouseConsumption) print(value_wHouseConsumption)
print(value_energyImportExport) print(value_energyImportExport)
print(topic_houseBatterySoC) print(value_houseBatterySoC)
print(topic_houseBatteryLoadUnload) print(value_houseBatteryLoadUnload)
#print(f"`{msg.topic}`: `{msg.payload.decode()}`") #print(f"`{msg.topic}`: `{msg.payload.decode()}`")
@ -132,8 +132,8 @@ client.on_connect = on_connect
value_pvProduction = "" value_pvProduction = ""
value_wHouseConsumption = "" value_wHouseConsumption = ""
value_energyImportExport = "" value_energyImportExport = ""
topic_houseBatterySoC = "" value_houseBatterySoC = ""
topic_houseBatteryLoadUnload = "" value_houseBatteryLoadUnload = ""
client.on_message = on_message client.on_message = on_message