add client

This commit is contained in:
robert 2024-01-31 23:30:58 +00:00
parent e92998971a
commit 24e4bac203

View File

@ -63,13 +63,13 @@ def subscribe(client: mqtt_client, topic):
def run(): def run():
client = connect_mqtt() client = connect_mqtt()
house_battery_soc = subscribe(topic_house_battery_soc) house_battery_soc = subscribe(client, topic_house_battery_soc)
house_battery_power = subscribe(topic_house_battery_power) house_battery_power = subscribe(client, topic_house_battery_power)
power_import_export = subscribe(topic_power_import_export) power_import_export = subscribe(client, topic_power_import_export)
pv_power = subscribe(topic_pv_power) pv_power = subscribe(client, topic_pv_power)
house_power = subscribe(topic_house_power) house_power = subscribe(client, topic_house_power)
car_soc = subscribe(topic_car_soc) car_soc = subscribe(client, topic_car_soc)
charge_point_power = subscribe(topic_charge_point_power) charge_point_power = subscribe(client, topic_charge_point_power)
logging.info("epd2in13b_V3 Demo") logging.info("epd2in13b_V3 Demo")