<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Kopano WebApp v3.5.5.2276+93.1">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>RE: [vz-users] Auslesen eines ULTRAHEAT®T550 (UH50…)</title>
</head>
<body>
<p style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt; padding: 0; margin: 0;">Hi Nico,</p>
<p style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt; padding: 0; margin: 0;"><br /></p>
<p style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt; padding: 0; margin: 0;"><span style="font-size: 12pt; font-family: tahoma, arial, helvetica, sans-serif;">in VZ einen Kanal Typ "Wärme (Zählerstände)" anlegen.<br /></span></p>
<p style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt; padding: 0; margin: 0;"><span style="font-size: 12pt; font-family: tahoma, arial, helvetica, sans-serif;"><br /></span></p>
<p style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt; padding: 0; margin: 0;"><span style="font-size: 12pt; font-family: tahoma, arial, helvetica, sans-serif;">Dein Script sollte den Zählerstand als Numerischen Wert parsen, und an die Middleware senden. Dazu eignet sich der vzclient.</span></p>
<p style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt; padding: 0; margin: 0;"><span style="font-size: 12pt; font-family: tahoma, arial, helvetica, sans-serif;">Das Script dann mit cron regelmäßig aufrufen. </span><span style="font-size: 12pt; font-family: tahoma, arial, helvetica, sans-serif;">Die Darstellung der Leistung macht das Frontend entsprechend des Kanaltypes.</span></p>
<pre style="white-space: pre-wrap;"><span style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 11pt;">Mit freundlichen Grüßen,<br /><br />Thomas </span><br /><br /></pre>
<p style="padding: 0; margin: 0; min-height: 12pt; font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"><br /></p>
<p style="padding: 0; margin: 0; min-height: 12pt; font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"><br /></p>
<blockquote style="border-left: 2px solid #325FBA; padding-left: 5px; margin: 0px 5px;"><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 10pt;">-----Ursprüngliche Nachricht-----<br /><span><strong>Von:</strong> Prof. Nikolaus Zieske <nikolaus.zieske@bau.thm.de></span><br /><span><strong>Gesendet:</strong> Donnerstag 19 März 2020 10:26</span><br /><span><strong>An:</strong> volkszaehler-users <volkszaehler-users@demo.volkszaehler.org></span><br /><span><strong>Betreff:</strong> [vz-users] Auslesen eines ULTRAHEAT®T550 (UH50…)</span><br /><br /></span><!-- begin sanitized html -->
<div class="bodyclass">Hallo,
<div class=""><br class="" /></div>
<div class="">gibt es jemanden, der einen Wärmemengenzähler<span class="" style="font-stretch: normal; line-height: normal;"> </span>ULTRAHEAT<span class="" style="font-stretch: normal; line-height: normal;">®</span>T550 <span class="" style="font-stretch: normal; line-height: normal;">(UH50…) beim Volkszähler eingebunden hat.</span></div>
<div class=""><span class="" style="font-stretch: normal; line-height: normal;"><br class="" /></span></div>
<div class=""><span class="" style="font-stretch: normal; line-height: normal;">Mit diesem script in python schaffe ich es zwar den Zählerstand auszulesen:</span></div>
<div class=""><span class="" style="font-stretch: normal; line-height: normal;"><br class="" /></span></div>
<div class="">
<pre class="" style="word-wrap: break-word; white-space: pre-wrap;"><em class=""><span style="font-size: xx-small;">#!/usr/bin/python
from __future__ import print_function
import serial, time

ser = serial.Serial("/dev/ttyUSB0", baudrate=300, bytesize=7, parity="E", stopbits=1, timeout=2, xonxoff=0, rtscts=0)

#send init message
ser.write("\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00")
ser.write("\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00")

#send request message
ser.write("/?!\x0D\x0A")
ser.flush();
time.sleep(.5)

#send read identification message
print(ser.readline())

#change baudrate
ser.baudrate=2400

try:
    #read data message
    while True:
        response = ser.readline()
        print(response, end="")
        if "!" in response:
            break
finally:
    ser.close()</span></em></pre>
<div class=""><br class="" /></div>
</div>
<div class=""><span class="" style="font-stretch: normal; line-height: normal;"><br class="" /></span></div>
<div class="">Ich bekomme aber keine aktuellen Verbrauchswerte, sondern, neben vielem anderen, nur den Zählerstand unter 6.8.</div>
<div class=""><br class="" /></div>
<div class=""><br class="" /></div>
<div class="">
<pre class="" style="font-size: 0.846em; font-family: Monaco, monospace, sans-serif; background-color: #f5f5f5; border-width: 1px; border-style: solid; border-color: #dddddd #cccccc #cccccc #dddddd; padding: 1em; white-space: pre-wrap; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px;">/LUGCUH50

6.8(0074900*kWh)6.26(04142.48*m3)9.21(66409080)
6.26*01(03957.55*m3)6.8*01(0071925*kWh)
F(0)9.20(66409080)6.35(60*m)
6.6(0016.2*kW)6.6*01(0015.3*kW)6.33(001.608*m3ph)9.4(094.4*C&092.9*C)
6.31(0046124*h)6.32(0000000*h)9.22(R)9.6(000&66409080&0&000&66409080&0)
9.7(60000)6.32*01(0000000*h)6.36(01-01&00:00)6.33*01(001.608*m3ph)
6.8.1()6.8.2()6.8.3()6.8.4()6.8.5()
6.8.1*01()6.8.2*01()6.8.3*01()
6.8.4*01()6.8.5*01()
9.4*01(094.4*C&092.9*C)
6.36.1(2016-01-18)6.36.1*01(2011-07-13)
6.36.2(2015-01-07)6.36.2*01(2015-01-07)
6.36.3(2014-12-23)6.36.3*01(2014-12-23)
6.36.4(2014-03-14)6.36.4*01(2014-03-14)
6.36.5()6.36*02(01&00:00)9.36(2016-02-12&19:36:08)9.24(1.5*m3ph)
9.17(0)9.18()9.19()9.25()
9.1(0&1&0&0000&CECV&CECV&1&5.16&5.16&F&101008&1>1>04&08&0)
9.2(&&)9.29()9.31(0014842*h)
9.0.1(00000000)9.0.2(00000000)9.34.1(000.00000*m3)9.34.2(000.00000*m3)
8.26.1(00000000*m3)8.26.2(00000000*m3)
8.26.1*01(00000000*m3)8.26.2*01(00000000*m3)
6.26.1()6.26.4()6.26.5()
6.26.1*01()6.26.4*01()6.26.5*01()0.0(66409080)
!</pre>
<div class=""><br class="" /></div>
</div>
<div class=""><br class="" /></div>
<div class="">Wie könnte man das machen?</div>
<div class=""><br class="" /></div>
<div class="">Niko</div>
<div class=""><br class="" /></div>
<div class=""><span class="" style="font-stretch: normal; line-height: normal;"><br class="" /></span></div>
<div class=""><span class="" style="font-stretch: normal; line-height: normal;"><br class="" /></span></div>
<div class=""><span class="" style="font-stretch: normal; line-height: normal;"><br class="" /></span></div>
<div class=""><span class="" style="font-stretch: normal; line-height: normal;"><br class="" /></span></div>
</div>
<!-- end sanitized html --></blockquote>
</body>
</html>