From 2ab134d58a7ff56259158566c57a04c4ab1b8ae8 Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 1 Feb 2024 07:25:47 +0000 Subject: [PATCH] add logs for topic outputs --- examples/solar-monitoring.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/solar-monitoring.py b/examples/solar-monitoring.py index b104bed..81d0db7 100644 --- a/examples/solar-monitoring.py +++ b/examples/solar-monitoring.py @@ -117,6 +117,13 @@ def run(): house_power = subscribe(client, topic_house_power) car_soc = subscribe(client, topic_car_soc) charge_point_power = subscribe(client, topic_charge_point_power) + + logging.info("house battery soc: " + str(house_battery_soc)) + logging.info("house battery power: " + str(house_battery_power)) + logging.info("power import export: " + str(power_import_export)) + logging.info("pv power: " + str(pv_power)) + logging.info("house power: " + str(house_power)) + logging.info("car soc: " + str(car_soc)) logging.info("charge point power: " + str(charge_point_power)) #monitor(charge_point_power)