fix
This commit is contained in:
parent
a2aab83b6c
commit
36dec5bb44
@ -117,8 +117,6 @@ def on_message(client, userdata, msg):
|
|||||||
line = 60
|
line = 60
|
||||||
|
|
||||||
print(line)
|
print(line)
|
||||||
if value_pvProduction == "":
|
|
||||||
value_pvProduction = ""
|
|
||||||
print(value_pvProduction)
|
print(value_pvProduction)
|
||||||
print(value_wHouseConsumption)
|
print(value_wHouseConsumption)
|
||||||
print(value_energyImportExport)
|
print(value_energyImportExport)
|
||||||
@ -131,6 +129,12 @@ client = mqtt_client.Client(client_id, protocol=paho.MQTTv31)
|
|||||||
client.username_pw_set(username, password=pw)
|
client.username_pw_set(username, password=pw)
|
||||||
client.on_connect = on_connect
|
client.on_connect = on_connect
|
||||||
|
|
||||||
|
value_pvProduction = ""
|
||||||
|
value_wHouseConsumption = ""
|
||||||
|
value_energyImportExport = ""
|
||||||
|
topic_houseBatterySoC = ""
|
||||||
|
topic_houseBatteryLoadUnload = ""
|
||||||
|
|
||||||
client.on_message = on_message
|
client.on_message = on_message
|
||||||
|
|
||||||
client.connect(broker, port=port)
|
client.connect(broker, port=port)
|
||||||
|
Loading…
Reference in New Issue
Block a user