From 704c86f228e73b2b75f60563c9ad907c4d87781e Mon Sep 17 00:00:00 2001 From: gemu Date: Tue, 3 Sep 2019 20:17:19 +0200 Subject: [PATCH] Updated Smart Meter Interface Descriptors (markdown) --- Smart-Meter-Interface-Descriptors.md | 66 +++++++++++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/Smart-Meter-Interface-Descriptors.md b/Smart-Meter-Interface-Descriptors.md index 10c8a2c0..72e2641b 100644 --- a/Smart-Meter-Interface-Descriptors.md +++ b/Smart-Meter-Interface-Descriptors.md @@ -4,6 +4,7 @@ - [COMBO Meter (Water,Gas,SML)](#COMBO-Meter-WaterGasSML) - [WOLF CSZ 11/300 Heater](#WOLF-CSZ-11300-Heater) - [MODBUS Device](#MODBUS-Device) +- [Hager EHZ363 (SML) with daily values](#Hager-EHZ363-SML-with-daily-values) ------------------------------------------------------------------------------ #### Hager EHZ363 (SML) @@ -138,4 +139,67 @@ [Back To Top](#top) ------------------------------------------------------------------------------- \ No newline at end of file +------------------------------------------------------------------------------ + + +#### Hager EHZ363 (SML) with daily values + +>`>D` +pin=0 +pout=0 +pi_d=0 +po_d=0 +hr=0 +; permanent midnight values +p:pi_m=0 +p:po_m=0 + + +>`>B` +=>sensor53 r + +>`>T` +; get total consumption and total feed +pin=SML#Total_in +pout=SML#Total_out + +>`>S` +; on midnight, save meter total values +hr=hours +if chg[hr]>0 +and hr==0 +then +pi_m=pin +po_m=pout +svars +endif + +>; on teleperiod calculate current daily values from midnight +if upsecs%tper==0 +then +pi_d=pin-pi_m +po_d=pout-po_m +endif + +>; show these values on WEB UI +>`>W` +Tagesverbrauch: {m} %pi_d% kWh +Tageseinspeisung: {m} %po_d% kWh + +>; transmit these values with MQTT +>`>J` +;"daily_consumption":%pi_d%,"daily_feed":%po_d% + +>; meter definition +>`>M 1` ++1,3,s,0,9600,SML + +>1,77070100010800ff@1000,Verbrauch,KWh,Total_in,4 +1,77070100020800ff@1000,Einspeisung,KWh,Total_out,4 +1,77070100100700ff@1,Aktueller Verbrauch,W,Power_curr,0 +1,77070100000009ff@#,Zähler Nr,,Meter_number,0 +\# + +[Back To Top](#top) + +------------------------------------------------------------------------------