From 37cc35aa45256b171be0db809399369ebd5216e7 Mon Sep 17 00:00:00 2001 From: thomas Date: Thu, 27 Feb 2025 12:50:12 +0100 Subject: [PATCH] Adjustments on output --- smart.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smart.py b/smart.py index e7e8bbf..333841f 100644 --- a/smart.py +++ b/smart.py @@ -15,8 +15,8 @@ import paho.mqtt.publish as publish # user= '1707910897002706169923_ECPR0002108185' user= '1707911515002706169998_ECPR0002107915' password = 'V!lhanhan03' -# meter_id= '1EFR2375175891' -meter_id= '1EFR2375175878' +# smartmeter_id= '1EFR2375175891' +smartmeter_id= '1EFR2375175878' # MQTT config broker= 'homeassistant' @@ -94,7 +94,7 @@ for row in rows: # Ergebnisse ausgeben for result in results: - print(result['timestamp']+ " " + result['value']+ " " + result['unit']) + print(result['obis']+ ": " + result['timestamp']+ " " + result['value']+ " " + result['unit'] + " (" + result['name'] +")") s.close()