Vorweg: bin totaler FHEM Noob...
Habe mich zwar in das Thema eingelesen, aber weiter komme ich nicht. Deswegen bitte ich um Unterstützung.
Habe eine UNIEQ-Box die den Stomverbrauch ausliest und als Webseite abrufbar ist. Leider muss ein Login erfolgen und da hänge ich.
mein Device:
define Stromverbrauch HTTPMOD http://192.168.1.31/ 600
attr Stromverbrauch userattr sid0ata
attr Stromverbrauch enableCookies 1
attr Stromverbrauch reAuthRegex .*/mum-webservice/0/start.php*
attr Stromverbrauch sid0Data {"set" :serial_number.value="123456789" ,device_code.value="ABCDEFG" }
attr Stromverbrauch verbose 5
Und es kommt:
2016.05.16 00:35:54 4: Stromverbrauch: GetUpdate called (update)
2016.05.16 00:35:54 5: Stromverbrauch: internal interval timer set to call GetUpdate again in 600 seconds
2016.05.16 00:35:54 5: Stromverbrauch: AddToQueue called, initial send queue length : 0
2016.05.16 00:35:54 5: Stromverbrauch: AddToQueue adds type update to URL http://192.168.1.31/, no data, no headers, retry 0
2016.05.16 00:35:54 5: Stromverbrauch: HandleSendQueue called, qlen = 1
2016.05.16 00:35:54 4: Stromverbrauch: HandleSendQueue sends request type update to URL http://192.168.1.31/, No Data, No Header, timeout 2
2016.05.16 00:35:54 4: HttpUtils url=http://192.168.1.31/
2016.05.16 00:35:54 4: http://192.168.1.31/: HTTP response code 302
2016.05.16 00:35:54 4: HttpUtils http://192.168.1.31/: Redirect to http://192.168.1.31/mum-webservice/0/index.php
2016.05.16 00:35:54 4: HttpUtils url=http://192.168.1.31/mum-webservice/0/index.php
2016.05.16 00:35:55 4: http://192.168.1.31/mum-webservice/0/index.php: HTTP response code 302
2016.05.16 00:35:55 4: HttpUtils http://192.168.1.31/mum-webservice/0/index.php: Redirect to http://192.168.1.31/mum-webservice/0/start.php
2016.05.16 00:35:55 4: HttpUtils url=http://192.168.1.31/mum-webservice/0/start.php
2016.05.16 00:35:55 4: http://192.168.1.31/mum-webservice/0/start.php: HTTP response code 200
2016.05.16 00:35:55 4: HttpUtils http://192.168.1.31/mum-webservice/0/start.php: Got data, length: 4006
2016.05.16 00:35:55 5: Stromverbrauch: Read callback: request type was update retry 0,
Header: HTTP/1.0 200 OK
Set-Cookie: PHPSESSID=3f3a5387941fae53faef6ea56616ca74; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 4006
Connection: close
Date: Sun, 15 May 2016 22:36:07 GMT
Server: lighttpd,
Body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="imagetoolbar" content="no" />
<title>UNIEQ-Box // Anmeldung</title>
<link href="/mum-webservice/minify.php?css&de_DE" rel="stylesheet"
type="text/css" media="screen" />
<link href="/mum-webservice/minify.php?css.print&de_DE" rel="stylesheet"
type="text/css" media="print" />
<!--[if lte IE 8]><script type="text/javascript" src="/mum-webservice/minify.php?js.ie&de_DE"></script><![endif]-->
<script type="text/javascript" src="/mum-webservice/minify.php?js&de_DE"></script>
</head>
<body onload="">
<div id="container">
<div id="box">
<div id="kopf">
<div id="logo_stadtwerk"></div>
<div class="headline">
<h1 id="page_title">Anmeldung</h1>
</div>
</div>
<!--kopf schliessen-->
<h1 id="print_title">
<span id="print_title_1"></span><br> <span id="print_title_2"></span>
</h1>
<div id="content">
<div id="left">
<ul id="menu">
</ul>
</div>
<div id="inhalt">
<h2>Melden Sie sich hier auf Ihrer UNIEQ-Box an</h2><p>Die Daten für Ihre Anmeldung finden Sie auf der Unterseite Ihrer UNIEQ-Box.</p>
<form action="/mum-webservice/0/start.php" method="post" class="anmeldung" name="anmeldung">
<p class="serial_number">S / N</p>
<input class="serial_number" type="text" tabindex="1" name="login" value="123456789" />
<div class="cl"></div>
<p class="device_code">Device Code</p>
<input class="device_code" type="password" tabindex="2" name="password" value="" />
<div class="cl"></div>
<p></p>
<input type="checkbox" tabindex="3" name="save_login" class="save_login"/>
<p class="save_login">angemeldet bleiben</p>
<div class="cl"></div>
<input class="button_off" style="margin-top: 10px;" type="submit" tabindex="4" name="submit" value="Anmelden" />
<input style="border:none" type="hidden" id="datetime" name="datetime" value=""/>
</form>
<script type="text/javascript">
var date = new Date();
var datetime = datetime_timestamp(new Date(date.getTime()));
setElementValue("datetime", datetime);
</script>
</div>
<div id="activity_indicator">
<img src="/mum-webservice-static/theme/activity_indicator.gif"
alt="" />
<span id="activity_indicator_text" style="color: gray; font-style: italic;"></span>
</div>
<div id="info">
<div>
<h2>Hilfe</h2>
<p id="help">
Ihre UNIEQ-Box ist vor fremden Zugriffen passwortgeschützt. Nach der erfolgreichen Anmeldung können Sie alle Features Ihrer UNIEQ-Box nutzen.
</p>
</div>
<p>
<a href="javascript:hideDiv('info')">Danke, Hilfe schließen</a>
</p>
</div>
<div id="meter_nav">
</div>
</div>
<div id="fuss">
<div class="hilfe">
<a id="help_link" href="javascript:showDiv('info')" class="help">Hilfe</a> <a href="logout.php" class="logout">Logout</a>
</div>
<div class="navi_inhalt">
<ul id="navi_list">
</ul>
</div>
</div>
<!--fuss schliessen-->
<div id="teach_in">
<div id="teach_in_grayout"></div>
<div id="teach_in_box">
<button id="teach_in_wizard_abort"
onclick="teach_in_wizard_abort();">X</button>
<div id="teach_in_content"></div>
</div>
</div>
<div id="error">
<p id="error_headline"></p>
<p id="error_category"></p>
<p id="error_text"></p>
<p id="progress">
<span id="progress_text"></span>
</p>
<p>
<a id="error_close_link" href="javascript:hideDiv('error'); ">
Danke, habe ich gelesen
</a>
</p>
</div>
</div>
<!--Gesamtbox schliessen-->
<div id="signatur">
<p>
powered by
</p>
<div id="logo_signatur"></div>
</div>
</div>
<!--Container schliessen-->
</body>
</html>no error
2016.05.16 00:35:55 5: Stromverbrauch: looking for Cookies in HTTP/1.0 200 OK
Set-Cookie: PHPSESSID=3f3a5387941fae53faef6ea56616ca74; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 4006
Connection: close
Date: Sun, 15 May 2016 22:36:07 GMT
Server: lighttpd
2016.05.16 00:35:55 5: Stromverbrauch: Set-Cookie: PHPSESSID=3f3a5387941fae53faef6ea56616ca74; path=/
2016.05.16 00:35:55 5: Stromverbrauch: Cookie: PHPSESSID Wert 3f3a5387941fae53faef6ea56616ca74 Rest path=/
2016.05.16 00:35:55 5: Stromverbrauch: CheckAuth is checking buffer with ReAuthRegex .*/mum-webservice/0/start.php*
2016.05.16 00:35:55 4: Stromverbrauch: CheckAuth decided new authentication required (ReAuthRegex matched: .*/mum-webservice/0/start.php*)
2016.05.16 00:35:55 4: Stromverbrauch: Auth called with Steps: 0
2016.05.16 00:35:55 5: Stromverbrauch: PrepareRequest is adding Cookies: PHPSESSID=3f3a5387941fae53faef6ea56616ca74
2016.05.16 00:35:55 5: Stromverbrauch: AddToQueue called, initial send queue length : 0 prio
2016.05.16 00:35:55 5: Stromverbrauch: AddToQueue prepends type auth0 to URL http://192.168.1.31/, data {"set" :serial_number.value="123456789" ,device_code.value="ABCDEFG" }, header Cookie: PHPSESSID=3f3a5387941fae53faef6ea56616ca74, retry 0
2016.05.16 00:35:55 5: Stromverbrauch: HandleSendQueue called, qlen = 1
2016.05.16 00:35:55 4: Stromverbrauch: HandleSendQueue sends request type auth0 to URL http://192.168.1.31/, data {"set" :serial_number.value="123456789" ,device_code.value="ABCDEFG" }, header Cookie: PHPSESSID=3f3a5387941fae53faef6ea56616ca74, timeout 2
2016.05.16 00:35:55 4: HttpUtils url=http://192.168.1.31/
2016.05.16 00:35:55 5: Stromverbrauch: AddToQueue called, initial send queue length : 0
2016.05.16 00:35:55 5: Stromverbrauch: AddToQueue adds type update to URL http://192.168.1.31/, no data, no headers, retry 1
2016.05.16 00:35:55 5: Stromverbrauch: HandleSendQueue called, qlen = 1
2016.05.16 00:35:55 5: Stromverbrauch: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2016.05.16 00:35:55 4: Stromverbrauch: CheckAuth requeued request update after auth, retryCount 0 ...
2016.05.16 00:35:55 4: http://192.168.1.31/: HTTP response code 302
2016.05.16 00:35:55 4: HttpUtils http://192.168.1.31/: Redirect to http://192.168.1.31/mum-webservice/0/index.php
2016.05.16 00:35:55 4: HttpUtils url=http://192.168.1.31/mum-webservice/0/index.php
2016.05.16 00:35:55 4: http://192.168.1.31/mum-webservice/0/index.php: HTTP response code 302
2016.05.16 00:35:55 4: HttpUtils http://192.168.1.31/mum-webservice/0/index.php: Redirect to http://192.168.1.31/mum-webservice/0/start.php
2016.05.16 00:35:55 4: HttpUtils url=http://192.168.1.31/mum-webservice/0/start.php
2016.05.16 00:35:55 4: http://192.168.1.31/mum-webservice/0/start.php: HTTP response code 200
2016.05.16 00:35:55 4: HttpUtils http://192.168.1.31/mum-webservice/0/start.php: Got data, length: 4006
2016.05.16 00:35:55 5: Stromverbrauch: Read callback: request type was auth0 retry 0,
Header: HTTP/1.0 200 OK
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 4006
Connection: close
Date: Sun, 15 May 2016 22:36:08 GMT
Server: lighttpd,
Body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="imagetoolbar" content="no" />
<title>UNIEQ-Box // Anmeldung</title>
<link href="/mum-webservice/minify.php?css&de_DE" rel="stylesheet"
type="text/css" media="screen" />
<link href="/mum-webservice/minify.php?css.print&de_DE" rel="stylesheet"
type="text/css" media="print" />
<!--[if lte IE 8]><script type="text/javascript" src="/mum-webservice/minify.php?js.ie&de_DE"></script><![endif]-->
<script type="text/javascript" src="/mum-webservice/minify.php?js&de_DE"></script>
</head>
<body onload="">
<div id="container">
<div id="box">
<div id="kopf">
<div id="logo_stadtwerk"></div>
<div class="headline">
<h1 id="page_title">Anmeldung</h1>
</div>
</div>
<!--kopf schliessen-->
<h1 id="print_title">
<span id="print_title_1"></span><br> <span id="print_title_2"></span>
</h1>
<div id="content">
<div id="left">
<ul id="menu">
</ul>
</div>
<div id="inhalt">
<h2>Melden Sie sich hier auf Ihrer UNIEQ-Box an</h2><p>Die Daten für Ihre Anmeldung finden Sie auf der Unterseite Ihrer UNIEQ-Box.</p>
<form action="/mum-webservice/0/start.php" method="post" class="anmeldung" name="anmeldung">
<p class="serial_number">S / N</p>
<input class="serial_number" type="text" tabindex="1" name="login" value="123456789" />
<div class="cl"></div>
<p class="device_code">Device Code</p>
<input class="device_code" type="password" tabindex="2" name="password" value="" />
<div class="cl"></div>
<p></p>
<input type="checkbox" tabindex="3" name="save_login" class="save_login"/>
<p class="save_login">angemeldet bleiben</p>
<div class="cl"></div>
<input class="button_off" style="margin-top: 10px;" type="submit" tabindex="4" name="submit" value="Anmelden" />
<input style="border:none" type="hidden" id="datetime" name="datetime" value=""/>
</form>
<script type="text/javascript">
var date = new Date();
var datetime = datetime_timestamp(new Date(date.getTime()));
setElementValue("datetime", datetime);
</script>
</div>
<div id="activity_indicator">
<img src="/mum-webservice-static/theme/activity_indicator.gif"
alt="" />
<span id="activity_indicator_text" style="color: gray; font-style: italic;"></span>
</div>
<div id="info">
<div>
<h2>Hilfe</h2>
<p id="help">
Ihre UNIEQ-Box ist vor fremden Zugriffen passwortgeschützt. Nach der erfolgreichen Anmeldung können Sie alle Features Ihrer UNIEQ-Box nutzen.
</p>
</div>
<p>
<a href="javascript:hideDiv('info')">Danke, Hilfe schließen</a>
</p>
</div>
<div id="meter_nav">
</div>
</div>
<div id="fuss">
<div class="hilfe">
<a id="help_link" href="javascript:showDiv('info')" class="help">Hilfe</a> <a href="logout.php" class="logout">Logout</a>
</div>
<div class="navi_inhalt">
<ul id="navi_list">
</ul>
</div>
</div>
<!--fuss schliessen-->
<div id="teach_in">
<div id="teach_in_grayout"></div>
<div id="teach_in_box">
<button id="teach_in_wizard_abort"
onclick="teach_in_wizard_abort();">X</button>
<div id="teach_in_content"></div>
</div>
</div>
<div id="error">
<p id="error_headline"></p>
<p id="error_category"></p>
<p id="error_text"></p>
<p id="progress">
<span id="progress_text"></span>
</p>
<p>
<a id="error_close_link" href="javascript:hideDiv('error'); ">
Danke, habe ich gelesen
</a>
</p>
</div>
</div>
<!--Gesamtbox schliessen-->
<div id="signatur">
<p>
powered by
</p>
<div id="logo_signatur"></div>
</div>
</div>
<!--Container schliessen-->
</body>
</html>no error
2016.05.16 00:35:55 5: Stromverbrauch: looking for Cookies in HTTP/1.0 200 OK
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 4006
Connection: close
Date: Sun, 15 May 2016 22:36:08 GMT
Server: lighttpd
2016.05.16 00:35:55 5: Stromverbrauch: ExtractSid called, context sid, num 0
2016.05.16 00:35:56 5: Stromverbrauch: HandleSendQueue called, qlen = 1
2016.05.16 00:35:56 4: Stromverbrauch: HandleSendQueue sends request type update to URL http://192.168.1.31/, No Data, No Header, timeout 2
2016.05.16 00:35:56 4: HttpUtils url=http://192.168.1.31/
2016.05.16 00:35:56 4: http://192.168.1.31/: HTTP response code 302
2016.05.16 00:35:56 4: HttpUtils http://192.168.1.31/: Redirect to http://192.168.1.31/mum-webservice/0/index.php
2016.05.16 00:35:56 4: HttpUtils url=http://192.168.1.31/mum-webservice/0/index.php
2016.05.16 00:35:56 4: http://192.168.1.31/mum-webservice/0/index.php: HTTP response code 302
2016.05.16 00:35:56 4: HttpUtils http://192.168.1.31/mum-webservice/0/index.php: Redirect to http://192.168.1.31/mum-webservice/0/start.php
2016.05.16 00:35:56 4: HttpUtils url=http://192.168.1.31/mum-webservice/0/start.php
2016.05.16 00:35:56 4: http://192.168.1.31/mum-webservice/0/start.php: HTTP response code 200
2016.05.16 00:35:56 4: HttpUtils http://192.168.1.31/mum-webservice/0/start.php: Got data, length: 4006
2016.05.16 00:35:56 5: Stromverbrauch: Read callback: request type was update retry 1,
Header: HTTP/1.0 200 OK
Set-Cookie: PHPSESSID=8df9b8ff9afa5c7a4db468d88e49209b; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 4006
Connection: close
Date: Sun, 15 May 2016 22:36:09 GMT
Server: lighttpd,
Body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="imagetoolbar" content="no" />
<title>UNIEQ-Box // Anmeldung</title>
<link href="/mum-webservice/minify.php?css&de_DE" rel="stylesheet"
type="text/css" media="screen" />
<link href="/mum-webservice/minify.php?css.print&de_DE" rel="stylesheet"
type="text/css" media="print" />
<!--[if lte IE 8]><script type="text/javascript" src="/mum-webservice/minify.php?js.ie&de_DE"></script><![endif]-->
<script type="text/javascript" src="/mum-webservice/minify.php?js&de_DE"></script>
</head>
<body onload="">
<div id="container">
<div id="box">
<div id="kopf">
<div id="logo_stadtwerk"></div>
<div class="headline">
<h1 id="page_title">Anmeldung</h1>
</div>
</div>
<!--kopf schliessen-->
<h1 id="print_title">
<span id="print_title_1"></span><br> <span id="print_title_2"></span>
</h1>
<div id="content">
<div id="left">
<ul id="menu">
</ul>
</div>
<div id="inhalt">
<h2>Melden Sie sich hier auf Ihrer UNIEQ-Box an</h2><p>Die Daten für Ihre Anmeldung finden Sie auf der Unterseite Ihrer UNIEQ-Box.</p>
<form action="/mum-webservice/0/start.php" method="post" class="anmeldung" name="anmeldung">
<p class="serial_number">S / N</p>
<input class="serial_number" type="text" tabindex="1" name="login" value="123456789" />
<div class="cl"></div>
<p class="device_code">Device Code</p>
<input class="device_code" type="password" tabindex="2" name="password" value="" />
<div class="cl"></div>
<p></p>
<input type="checkbox" tabindex="3" name="save_login" class="save_login"/>
<p class="save_login">angemeldet bleiben</p>
<div class="cl"></div>
<input class="button_off" style="margin-top: 10px;" type="submit" tabindex="4" name="submit" value="Anmelden" />
<input style="border:none" type="hidden" id="datetime" name="datetime" value=""/>
</form>
<script type="text/javascript">
var date = new Date();
var datetime = datetime_timestamp(new Date(date.getTime()));
setElementValue("datetime", datetime);
</script>
</div>
<div id="activity_indicator">
<img src="/mum-webservice-static/theme/activity_indicator.gif"
alt="" />
<span id="activity_indicator_text" style="color: gray; font-style: italic;"></span>
</div>
<div id="info">
<div>
<h2>Hilfe</h2>
<p id="help">
Ihre UNIEQ-Box ist vor fremden Zugriffen passwortgeschützt. Nach der erfolgreichen Anmeldung können Sie alle Features Ihrer UNIEQ-Box nutzen.
</p>
</div>
<p>
<a href="javascript:hideDiv('info')">Danke, Hilfe schließen</a>
</p>
</div>
<div id="meter_nav">
</div>
</div>
<div id="fuss">
<div class="hilfe">
<a id="help_link" href="javascript:showDiv('info')" class="help">Hilfe</a> <a href="logout.php" class="logout">Logout</a>
</div>
<div class="navi_inhalt">
<ul id="navi_list">
</ul>
</div>
</div>
<!--fuss schliessen-->
<div id="teach_in">
<div id="teach_in_grayout"></div>
<div id="teach_in_box">
<button id="teach_in_wizard_abort"
onclick="teach_in_wizard_abort();">X</button>
<div id="teach_in_content"></div>
</div>
</div>
<div id="error">
<p id="error_headline"></p>
<p id="error_category"></p>
<p id="error_text"></p>
<p id="progress">
<span id="progress_text"></span>
</p>
<p>
<a id="error_close_link" href="javascript:hideDiv('error'); ">
Danke, habe ich gelesen
</a>
</p>
</div>
</div>
<!--Gesamtbox schliessen-->
<div id="signatur">
<p>
powered by
</p>
<div id="logo_signatur"></div>
</div>
</div>
<!--Container schliessen-->
</body>
</html>no error
2016.05.16 00:35:56 5: Stromverbrauch: looking for Cookies in HTTP/1.0 200 OK
Set-Cookie: PHPSESSID=8df9b8ff9afa5c7a4db468d88e49209b; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 4006
Connection: close
Date: Sun, 15 May 2016 22:36:09 GMT
Server: lighttpd
2016.05.16 00:35:56 5: Stromverbrauch: Set-Cookie: PHPSESSID=8df9b8ff9afa5c7a4db468d88e49209b; path=/
2016.05.16 00:35:56 5: Stromverbrauch: Cookie: PHPSESSID Wert 8df9b8ff9afa5c7a4db468d88e49209b Rest path=/
2016.05.16 00:35:56 5: Stromverbrauch: CheckAuth is checking buffer with ReAuthRegex .*/mum-webservice/0/start.php*
2016.05.16 00:35:56 4: Stromverbrauch: CheckAuth decided new authentication required (ReAuthRegex matched: .*/mum-webservice/0/start.php*)
2016.05.16 00:35:56 4: Stromverbrauch: CheckAuth has no more retries left - did authentication fail?
2016.05.16 00:35:56 3: Stromverbrauch: Read response to update didn't match any Reading
2016.05.16 00:35:56 5: Stromverbrauch: HandleSendQueue called, qlen = 0
2016.05.16 00:45:54 4: Stromverbrauch: GetUpdate called (update)
2016.05.16 00:45:54 5: Stromverbrauch: internal interval timer set to call GetUpdate again in 600 seconds
2016.05.16 00:45:54 5: Stromverbrauch: PrepareRequest is adding Cookies: PHPSESSID=8df9b8ff9afa5c7a4db468d88e49209b
2016.05.16 00:45:54 5: Stromverbrauch: AddToQueue called, initial send queue length : 0
2016.05.16 00:45:54 5: Stromverbrauch: AddToQueue adds type update to URL http://192.168.1.31/, no data, header Cookie: PHPSESSID=8df9b8ff9afa5c7a4db468d88e49209b, retry 0
2016.05.16 00:45:54 5: Stromverbrauch: HandleSendQueue called, qlen = 1
2016.05.16 00:45:54 4: Stromverbrauch: HandleSendQueue sends request type update to URL http://192.168.1.31/, No Data, header Cookie: PHPSESSID=8df9b8ff9afa5c7a4db468d88e49209b, timeout 2
2016.05.16 00:45:54 4: HttpUtils url=http://192.168.1.31/
2016.05.16 00:45:54 4: http://192.168.1.31/: HTTP response code 302
2016.05.16 00:45:54 4: HttpUtils http://192.168.1.31/: Redirect to http://192.168.1.31/mum-webservice/0/index.php
2016.05.16 00:45:54 4: HttpUtils url=http://192.168.1.31/mum-webservice/0/index.php
2016.05.16 00:45:54 4: http://192.168.1.31/mum-webservice/0/index.php: HTTP response code 302
2016.05.16 00:45:54 4: HttpUtils http://192.168.1.31/mum-webservice/0/index.php: Redirect to http://192.168.1.31/mum-webservice/0/start.php
2016.05.16 00:45:54 4: HttpUtils url=http://192.168.1.31/mum-webservice/0/start.php
2016.05.16 00:45:55 4: http://192.168.1.31/mum-webservice/0/start.php: HTTP response code 200
2016.05.16 00:45:55 4: HttpUtils http://192.168.1.31/mum-webservice/0/start.php: Got data, length: 4006
2016.05.16 00:45:55 5: Stromverbrauch: Read callback: request type was update retry 0,
Header: HTTP/1.0 200 OK
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 4006
Connection: close
Date: Sun, 15 May 2016 22:46:07 GMT
Server: lighttpd,
Body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="imagetoolbar" content="no" />
<title>UNIEQ-Box // Anmeldung</title>
<link href="/mum-webservice/minify.php?css&de_DE" rel="stylesheet"
type="text/css" media="screen" />
<link href="/mum-webservice/minify.php?css.print&de_DE" rel="stylesheet"
type="text/css" media="print" />
<!--[if lte IE 8]><script type="text/javascript" src="/mum-webservice/minify.php?js.ie&de_DE"></script><![endif]-->
<script type="text/javascript" src="/mum-webservice/minify.php?js&de_DE"></script>
</head>
<body onload="">
<div id="container">
<div id="box">
<div id="kopf">
<div id="logo_stadtwerk"></div>
<div class="headline">
<h1 id="page_title">Anmeldung</h1>
</div>
</div>
<!--kopf schliessen-->
<h1 id="print_title">
<span id="print_title_1"></span><br> <span id="print_title_2"></span>
</h1>
<div id="content">
<div id="left">
<ul id="menu">
</ul>
</div>
<div id="inhalt">
<h2>Melden Sie sich hier auf Ihrer UNIEQ-Box an</h2><p>Die Daten für Ihre Anmeldung finden Sie auf der Unterseite Ihrer UNIEQ-Box.</p>
<form action="/mum-webservice/0/start.php" method="post" class="anmeldung" name="anmeldung">
<p class="serial_number">S / N</p>
<input class="serial_number" type="text" tabindex="1" name="login" value="123456789" />
<div class="cl"></div>
<p class="device_code">Device Code</p>
<input class="device_code" type="password" tabindex="2" name="password" value="" />
<div class="cl"></div>
<p></p>
<input type="checkbox" tabindex="3" name="save_login" class="save_login"/>
<p class="save_login">angemeldet bleiben</p>
<div class="cl"></div>
<input class="button_off" style="margin-top: 10px;" type="submit" tabindex="4" name="submit" value="Anmelden" />
<input style="border:none" type="hidden" id="datetime" name="datetime" value=""/>
</form>
<script type="text/javascript">
var date = new Date();
var datetime = datetime_timestamp(new Date(date.getTime()));
setElementValue("datetime", datetime);
</script>
</div>
<div id="activity_indicator">
<img src="/mum-webservice-static/theme/activity_indicator.gif"
alt="" />
<span id="activity_indicator_text" style="color: gray; font-style: italic;"></span>
</div>
<div id="info">
<div>
<h2>Hilfe</h2>
<p id="help">
Ihre UNIEQ-Box ist vor fremden Zugriffen passwortgeschützt. Nach der erfolgreichen Anmeldung können Sie alle Features Ihrer UNIEQ-Box nutzen.
</p>
</div>
<p>
<a href="javascript:hideDiv('info')">Danke, Hilfe schließen</a>
</p>
</div>
<div id="meter_nav">
</div>
</div>
<div id="fuss">
<div class="hilfe">
<a id="help_link" href="javascript:showDiv('info')" class="help">Hilfe</a> <a href="logout.php" class="logout">Logout</a>
</div>
<div class="navi_inhalt">
<ul id="navi_list">
</ul>
</div>
</div>
<!--fuss schliessen-->
<div id="teach_in">
<div id="teach_in_grayout"></div>
<div id="teach_in_box">
<button id="teach_in_wizard_abort"
onclick="teach_in_wizard_abort();">X</button>
<div id="teach_in_content"></div>
</div>
</div>
<div id="error">
<p id="error_headline"></p>
<p id="error_category"></p>
<p id="error_text"></p>
<p id="progress">
<span id="progress_text"></span>
</p>
<p>
<a id="error_close_link" href="javascript:hideDiv('error'); ">
Danke, habe ich gelesen
</a>
</p>
</div>
</div>
<!--Gesamtbox schliessen-->
<div id="signatur">
<p>
powered by
</p>
<div id="logo_signatur"></div>
</div>
</div>
<!--Container schliessen-->
</body>
</html>no error
2016.05.16 00:45:55 5: Stromverbrauch: looking for Cookies in HTTP/1.0 200 OK
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 4006
Connection: close
Date: Sun, 15 May 2016 22:46:07 GMT
Server: lighttpd
2016.05.16 00:45:55 5: Stromverbrauch: CheckAuth is checking buffer with ReAuthRegex .*/mum-webservice/0/start.php*
2016.05.16 00:45:55 4: Stromverbrauch: CheckAuth decided new authentication required (ReAuthRegex matched: .*/mum-webservice/0/start.php*)
2016.05.16 00:45:55 4: Stromverbrauch: Auth called with Steps: 0
2016.05.16 00:45:55 5: Stromverbrauch: PrepareRequest is adding Cookies: PHPSESSID=8df9b8ff9afa5c7a4db468d88e49209b
2016.05.16 00:45:55 5: Stromverbrauch: AddToQueue called, initial send queue length : 0 prio
2016.05.16 00:45:55 5: Stromverbrauch: AddToQueue prepends type auth0 to URL http://192.168.1.31/, data {"set" :serial_number.value="123456789" ,device_code.value="ABCDEFG" }, header Cookie: PHPSESSID=8df9b8ff9afa5c7a4db468d88e49209b, retry 0
2016.05.16 00:45:55 5: Stromverbrauch: HandleSendQueue called, qlen = 1
2016.05.16 00:45:55 4: Stromverbrauch: HandleSendQueue sends request type auth0 to URL http://192.168.1.31/, data {"set" :serial_number.value="123456789" ,device_code.value="ABCDEFG" }, header Cookie: PHPSESSID=8df9b8ff9afa5c7a4db468d88e49209b, timeout 2
2016.05.16 00:45:55 4: HttpUtils url=http://192.168.1.31/
2016.05.16 00:45:55 5: Stromverbrauch: AddToQueue called, initial send queue length : 0
2016.05.16 00:45:55 5: Stromverbrauch: AddToQueue adds type update to URL http://192.168.1.31/, no data, header Cookie: PHPSESSID=8df9b8ff9afa5c7a4db468d88e49209b, retry 1
2016.05.16 00:45:55 5: Stromverbrauch: HandleSendQueue called, qlen = 1
2016.05.16 00:45:55 5: Stromverbrauch: HandleSendQueue - still waiting for reply to last request, delay sending from queue
2016.05.16 00:45:55 4: Stromverbrauch: CheckAuth requeued request update after auth, retryCount 0 ...
2016.05.16 00:45:55 4: http://192.168.1.31/: HTTP response code 302
2016.05.16 00:45:55 4: HttpUtils http://192.168.1.31/: Redirect to http://192.168.1.31/mum-webservice/0/index.php
2016.05.16 00:45:55 4: HttpUtils url=http://192.168.1.31/mum-webservice/0/index.php
2016.05.16 00:45:55 4: http://192.168.1.31/mum-webservice/0/index.php: HTTP response code 302
2016.05.16 00:45:55 4: HttpUtils http://192.168.1.31/mum-webservice/0/index.php: Redirect to http://192.168.1.31/mum-webservice/0/start.php
2016.05.16 00:45:55 4: HttpUtils url=http://192.168.1.31/mum-webservice/0/start.php
2016.05.16 00:45:55 4: http://192.168.1.31/mum-webservice/0/start.php: HTTP response code 200
2016.05.16 00:45:55 4: HttpUtils http://192.168.1.31/mum-webservice/0/start.php: Got data, length: 4006
2016.05.16 00:45:55 5: Stromverbrauch: Read callback: request type was auth0 retry 0,
Header: HTTP/1.0 200 OK
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 4006
Connection: close
Date: Sun, 15 May 2016 22:46:07 GMT
Server: lighttpd,
Body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="imagetoolbar" content="no" />
<title>UNIEQ-Box // Anmeldung</title>
<link href="/mum-webservice/minify.php?css&de_DE" rel="stylesheet"
type="text/css" media="screen" />
<link href="/mum-webservice/minify.php?css.print&de_DE" rel="stylesheet"
type="text/css" media="print" />
<!--[if lte IE 8]><script type="text/javascript" src="/mum-webservice/minify.php?js.ie&de_DE"></script><![endif]-->
<script type="text/javascript" src="/mum-webservice/minify.php?js&de_DE"></script>
</head>
<body onload="">
<div id="container">
<div id="box">
<div id="kopf">
<div id="logo_stadtwerk"></div>
<div class="headline">
<h1 id="page_title">Anmeldung</h1>
</div>
</div>
<!--kopf schliessen-->
<h1 id="print_title">
<span id="print_title_1"></span><br> <span id="print_title_2"></span>
</h1>
<div id="content">
<div id="left">
<ul id="menu">
</ul>
</div>
<div id="inhalt">
<h2>Melden Sie sich hier auf Ihrer UNIEQ-Box an</h2><p>Die Daten für Ihre Anmeldung finden Sie auf der Unterseite Ihrer UNIEQ-Box.</p>
<form action="/mum-webservice/0/start.php" method="post" class="anmeldung" name="anmeldung">
<p class="serial_number">S / N</p>
<input class="serial_number" type="text" tabindex="1" name="login" value="123456789" />
<div class="cl"></div>
<p class="device_code">Device Code</p>
<input class="device_code" type="password" tabindex="2" name="password" value="" />
<div class="cl"></div>
<p></p>
<input type="checkbox" tabindex="3" name="save_login" class="save_login"/>
<p class="save_login">angemeldet bleiben</p>
<div class="cl"></div>
<input class="button_off" style="margin-top: 10px;" type="submit" tabindex="4" name="submit" value="Anmelden" />
<input style="border:none" type="hidden" id="datetime" name="datetime" value=""/>
</form>
<script type="text/javascript">
var date = new Date();
var datetime = datetime_timestamp(new Date(date.getTime()));
setElementValue("datetime", datetime);
</script>
</div>
<div id="activity_indicator">
<img src="/mum-webservice-static/theme/activity_indicator.gif"
alt="" />
<span id="activity_indicator_text" style="color: gray; font-style: italic;"></span>
</div>
<div id="info">
<div>
<h2>Hilfe</h2>
<p id="help">
Ihre UNIEQ-Box ist vor fremden Zugriffen passwortgeschützt. Nach der erfolgreichen Anmeldung können Sie alle Features Ihrer UNIEQ-Box nutzen.
</p>
</div>
<p>
<a href="javascript:hideDiv('info')">Danke, Hilfe schließen</a>
</p>
</div>
<div id="meter_nav">
</div>
</div>
<div id="fuss">
<div class="hilfe">
<a id="help_link" href="javascript:showDiv('info')" class="help">Hilfe</a> <a href="logout.php" class="logout">Logout</a>
</div>
<div class="navi_inhalt">
<ul id="navi_list">
</ul>
</div>
</div>
<!--fuss schliessen-->
<div id="teach_in">
<div id="teach_in_grayout"></div>
<div id="teach_in_box">
<button id="teach_in_wizard_abort"
onclick="teach_in_wizard_abort();">X</button>
<div id="teach_in_content"></div>
</div>
</div>
<div id="error">
<p id="error_headline"></p>
<p id="error_category"></p>
<p id="error_text"></p>
<p id="progress">
<span id="progress_text"></span>
</p>
<p>
<a id="error_close_link" href="javascript:hideDiv('error'); ">
Danke, habe ich gelesen
</a>
</p>
</div>
</div>
<!--Gesamtbox schliessen-->
<div id="signatur">
<p>
powered by
</p>
<div id="logo_signatur"></div>
</div>
</div>
<!--Container schliessen-->
</body>
</html>no error
2016.05.16 00:45:55 5: Stromverbrauch: looking for Cookies in HTTP/1.0 200 OK
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 4006
Connection: close
Date: Sun, 15 May 2016 22:46:07 GMT
Server: lighttpd
2016.05.16 00:45:55 5: Stromverbrauch: ExtractSid called, context sid, num 0
2016.05.16 00:45:56 5: Stromverbrauch: HandleSendQueue called, qlen = 1
2016.05.16 00:45:56 4: Stromverbrauch: HandleSendQueue sends request type update to URL http://192.168.1.31/, No Data, header Cookie: PHPSESSID=8df9b8ff9afa5c7a4db468d88e49209b, timeout 2
2016.05.16 00:45:56 4: HttpUtils url=http://192.168.1.31/
2016.05.16 00:45:56 4: http://192.168.1.31/: HTTP response code 302
2016.05.16 00:45:56 4: HttpUtils http://192.168.1.31/: Redirect to http://192.168.1.31/mum-webservice/0/index.php
2016.05.16 00:45:56 4: HttpUtils url=http://192.168.1.31/mum-webservice/0/index.php
2016.05.16 00:45:56 4: http://192.168.1.31/mum-webservice/0/index.php: HTTP response code 302
2016.05.16 00:45:56 4: HttpUtils http://192.168.1.31/mum-webservice/0/index.php: Redirect to http://192.168.1.31/mum-webservice/0/start.php
2016.05.16 00:45:56 4: HttpUtils url=http://192.168.1.31/mum-webservice/0/start.php
2016.05.16 00:45:56 4: http://192.168.1.31/mum-webservice/0/start.php: HTTP response code 200
2016.05.16 00:45:56 4: HttpUtils http://192.168.1.31/mum-webservice/0/start.php: Got data, length: 4006
2016.05.16 00:45:56 5: Stromverbrauch: Read callback: request type was update retry 1,
Header: HTTP/1.0 200 OK
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 4006
Connection: close
Date: Sun, 15 May 2016 22:46:08 GMT
Server: lighttpd,
Body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="imagetoolbar" content="no" />
<title>UNIEQ-Box // Anmeldung</title>
<link href="/mum-webservice/minify.php?css&de_DE" rel="stylesheet"
type="text/css" media="screen" />
<link href="/mum-webservice/minify.php?css.print&de_DE" rel="stylesheet"
type="text/css" media="print" />
<!--[if lte IE 8]><script type="text/javascript" src="/mum-webservice/minify.php?js.ie&de_DE"></script><![endif]-->
<script type="text/javascript" src="/mum-webservice/minify.php?js&de_DE"></script>
</head>
<body onload="">
<div id="container">
<div id="box">
<div id="kopf">
<div id="logo_stadtwerk"></div>
<div class="headline">
<h1 id="page_title">Anmeldung</h1>
</div>
</div>
<!--kopf schliessen-->
<h1 id="print_title">
<span id="print_title_1"></span><br> <span id="print_title_2"></span>
</h1>
<div id="content">
<div id="left">
<ul id="menu">
</ul>
</div>
<div id="inhalt">
<h2>Melden Sie sich hier auf Ihrer UNIEQ-Box an</h2><p>Die Daten für Ihre Anmeldung finden Sie auf der Unterseite Ihrer UNIEQ-Box.</p>
<form action="/mum-webservice/0/start.php" method="post" class="anmeldung" name="anmeldung">
<p class="serial_number">S / N</p>
<input class="serial_number" type="text" tabindex="1" name="login" value="123456789" />
<div class="cl"></div>
<p class="device_code">Device Code</p>
<input class="device_code" type="password" tabindex="2" name="password" value="" />
<div class="cl"></div>
<p></p>
<input type="checkbox" tabindex="3" name="save_login" class="save_login"/>
<p class="save_login">angemeldet bleiben</p>
<div class="cl"></div>
<input class="button_off" style="margin-top: 10px;" type="submit" tabindex="4" name="submit" value="Anmelden" />
<input style="border:none" type="hidden" id="datetime" name="datetime" value=""/>
</form>
<script type="text/javascript">
var date = new Date();
var datetime = datetime_timestamp(new Date(date.getTime()));
setElementValue("datetime", datetime);
</script>
</div>
<div id="activity_indicator">
<img src="/mum-webservice-static/theme/activity_indicator.gif"
alt="" />
<span id="activity_indicator_text" style="color: gray; font-style: italic;"></span>
</div>
<div id="info">
<div>
<h2>Hilfe</h2>
<p id="help">
Ihre UNIEQ-Box ist vor fremden Zugriffen passwortgeschützt. Nach der erfolgreichen Anmeldung können Sie alle Features Ihrer UNIEQ-Box nutzen.
</p>
</div>
<p>
<a href="javascript:hideDiv('info')">Danke, Hilfe schließen</a>
</p>
</div>
<div id="meter_nav">
</div>
</div>
<div id="fuss">
<div class="hilfe">
<a id="help_link" href="javascript:showDiv('info')" class="help">Hilfe</a> <a href="logout.php" class="logout">Logout</a>
</div>
<div class="navi_inhalt">
<ul id="navi_list">
</ul>
</div>
</div>
<!--fuss schliessen-->
<div id="teach_in">
<div id="teach_in_grayout"></div>
<div id="teach_in_box">
<button id="teach_in_wizard_abort"
onclick="teach_in_wizard_abort();">X</button>
<div id="teach_in_content"></div>
</div>
</div>
<div id="error">
<p id="error_headline"></p>
<p id="error_category"></p>
<p id="error_text"></p>
<p id="progress">
<span id="progress_text"></span>
</p>
<p>
<a id="error_close_link" href="javascript:hideDiv('error'); ">
Danke, habe ich gelesen
</a>
</p>
</div>
</div>
<!--Gesamtbox schliessen-->
<div id="signatur">
<p>
powered by
</p>
<div id="logo_signatur"></div>
</div>
</div>
<!--Container schliessen-->
</body>
</html>no error
2016.05.16 00:45:56 5: Stromverbrauch: looking for Cookies in HTTP/1.0 200 OK
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html;charset=UTF-8
Content-Length: 4006
Connection: close
Date: Sun, 15 May 2016 22:46:08 GMT
Server: lighttpd
2016.05.16 00:45:56 5: Stromverbrauch: CheckAuth is checking buffer with ReAuthRegex .*/mum-webservice/0/start.php*
2016.05.16 00:45:56 4: Stromverbrauch: CheckAuth decided new authentication required (ReAuthRegex matched: .*/mum-webservice/0/start.php*)
2016.05.16 00:45:56 4: Stromverbrauch: CheckAuth has no more retries left - did authentication fail?
2016.05.16 00:45:56 3: Stromverbrauch: Read response to update didn't match any Reading
2016.05.16 00:45:56 5: Stromverbrauch: HandleSendQueue called, qlen = 0
Weiter als so gehts nicht. Kann jemand helfen? Danke!
Hallo,
Auth habe ich inzwischen hinbekommen, die Seite läd auch. doch leider wird original noch was nachgeladen, wo dann die tatsächlichen Verbräuche drin stehen und das macht HTTPMOD nicht. Kann mir jemand sagen wie das zu bewerkstelligen ist?
So sieht die Anfrage und Antwort aus:
Alles klar, habs alleine hinbekommen.
Hi, ich habe grad auch eine Unieq-Box bekommen und mich würde nun interessieren wie du es eingerichtet hast.
könntest du vielleicht eine Step by Step Anleitung schreiben welche Schritte du im FHEM gemacht hast um die Stromverbrauch auszulesen und anzuzeigen?
Vielen Dank
Als erstes muss mal erst die Unieq Box angeschlossen sein und via Webzugriff Daten liefern. Weiterhin braucht die Box eine feste IP im Netzwerk, damit du die immer wiederfindest.
Hier ein Auszug aus meiner Config, Bei der Zeile mit login und passwort musst die Werte eingeben, die auf der Box gedruckt oder im Handbuch hinterlegt sind.
define Strom.UnieqBox HTTPMOD http://192.168.1.31/mum-webservice/0/energy.php 300
attr Strom.UnieqBox userattr get1ExtractAllJSON:0,1 get1Name get1Poll:0,1 get1URL replacement0Mode:reading,internal,text,expression,key replacement0Regex replacement0Value sid0Data sid0URL
attr Strom.UnieqBox authRetries 2
attr Strom.UnieqBox clearSIdBeforeAuth 0
attr Strom.UnieqBox enableCookies 1
attr Strom.UnieqBox event-on-change-reading .*
attr Strom.UnieqBox get1ExtractAllJSON 1
attr Strom.UnieqBox get1Name StromZaehlerStand
attr Strom.UnieqBox get1Poll 1
attr Strom.UnieqBox get1URL http://192.168.1.31/mum-webservice/consumption.php?meter_id=0
attr Strom.UnieqBox group Strommessgeräte
attr Strom.UnieqBox icon measure_power_meter@SkyBlue
attr Strom.UnieqBox reAuthRegex .*UNIEQ-Box // Anmeldung*
attr Strom.UnieqBox replacement0Mode expression
attr Strom.UnieqBox replacement0Regex %%datum_zeit%%
attr Strom.UnieqBox replacement0Value strftime "%Y%m%d%H%M%S", gmtime
attr Strom.UnieqBox room Strom
attr Strom.UnieqBox sid0Data login=46564649874914&password=QWERTY&save_login=on&submit=Anmelden&datetime=%%datum_zeit%%
attr Strom.UnieqBox sid0URL http://192.168.1.31/mum-webservice/0/start.php
attr Strom.UnieqBox stateFormat Verbrauch: sum_power kW
attr Strom.UnieqBox timeout 10
Dann bekommst du nach einer Weile folgende Readings. Achtung, das kann einige Minuten dauern.
01_active_energy_a14_verification 7117.371 2016-11-09 16:27:12
01_active_energy_a14_verification_response 1478705045 2016-11-09 16:27:12
01_active_energy_a23_verification 0 2016-11-09 16:22:12
01_active_tariff 1 2016-11-09 16:22:12
01_energy 7117.35 2016-11-09 16:27:12
01_energy_a23 0 2016-11-09 16:22:12
01_energy_a23_tariff_1 0 2016-11-09 16:22:12
01_energy_a23_tariff_2 0 2016-11-09 16:22:12
01_energy_a23_tariff_3 0 2016-11-09 16:22:12
01_energy_a23_tariff_4 0 2016-11-09 16:22:12
01_energy_a23_tariff_5 0 2016-11-09 16:22:12
01_energy_a23_tariff_6 0 2016-11-09 16:22:12
01_energy_a23_tariff_7 0 2016-11-09 16:22:12
01_energy_a23_tariff_8 0 2016-11-09 16:22:12
01_energy_tariff_1 7117.36 2016-11-09 16:27:12
01_energy_tariff_2 0 2016-11-09 16:22:12
01_energy_tariff_3 0 2016-11-09 16:22:12
01_energy_tariff_4 0 2016-11-09 16:22:12
01_energy_tariff_5 0 2016-11-09 16:22:12
01_energy_tariff_6 0 2016-11-09 16:22:12
01_energy_tariff_7 0 2016-11-09 16:22:12
01_energy_tariff_8 0 2016-11-09 16:22:12
01_kwh_rate 0.238 2016-11-09 16:22:12
01_lastresponse 1478705047 2016-11-09 16:27:12
01_meter_number 17612467 2016-11-09 16:22:12
01_power 2.108 2016-11-09 16:27:12
01_power_a23 0 2016-11-09 16:22:12
01_special_data_1 0 2016-11-09 16:22:12
01_status 0 2016-11-09 16:22:12
01_tariff 0.501704 2016-11-09 16:27:12
01_tariff_currency EUR 2016-11-09 16:22:12
01_tariff_id 1000000 2016-11-09 16:22:12
01_tariff_subunit_div 100 2016-11-09 16:22:12
authentication true 2016-11-09 16:22:12
dlmsd_state 6 2016-11-09 16:22:12
init_state 3 2016-11-09 16:22:12
meter_count 0 2016-11-09 16:22:12
meter_id 0 2016-11-09 16:22:12
meter_types_0 1 2016-11-09 16:22:12
mum_progress 60 2016-11-09 16:22:12
mum_status 0 2016-11-09 16:22:12
sum_energy 7117.35 2016-11-09 16:27:12
sum_power 2.108 2016-11-09 16:27:12
sum_tariff 0.501704 2016-11-09 16:27:12
sys_time 09.11.2016 16:27:53 2016-11-09 16:27:12
time_state 0 2016-11-09 16:22:12
Das ganze kannst dann so loggen:
define FileLog_StromAktuell FileLog ./log/strom_aktuell-%Y-%m.log Strom.UnieqBox:sum_energy:.*|Strom.UnieqBox:sum_power:.*|Strom.UnieqBox:sum_tariff:.*
attr FileLog_StromAktuell room Strom
Und letztendlich kannst du mit 2 Dummies und 2 ATs den täglichen und den monatlichen Verbrauch berechnen:
define Strom.ZaehlerstandTag dummy
attr Strom.ZaehlerstandTag room Strom
################################################
define Strom.AT.taeglich at *23:59:59 {\
\
my $LastZaehlerstand = ReadingsVal("Strom.ZaehlerstandTag","state","0");; \
my $Zaehlerstand = ReadingsVal("Strom.UnieqBox","sum_energy","0");; \
my $KwhProTag = $Zaehlerstand - $LastZaehlerstand;; \
\
fhem("set Strom.ZaehlerstandTag $Zaehlerstand");;;; \
fhem("set Strom.KwhProTag $KwhProTag");;;; \
\
}
attr Strom.AT.taeglich room Strom
################################################
define Strom.ZaehlerstandMonat dummy
attr Strom.ZaehlerstandMonat room Strom
################################################
define Strom.AT.monatlich at *23:59:00 {\
\
if ($mday == Days_in_Month($year,$month)) {\
\
my $LastZaehlerstand = ReadingsVal("Strom.ZaehlerstandMonat","state","0");; \
my $Zaehlerstand = ReadingsVal("Strom.UnieqBox","sum_energy","0");; \
my $KwhProMonat = $Zaehlerstand - $LastZaehlerstand);; \
\
fhem("set Strom.ZaehlerstandMonat $Zaehlerstand");;;; \
fhem("set Strom.KwhProMonat $KwhProMonat");;;; \
\
}\
}
attr Strom.AT.monatlich room Strom
Die Dummies fileloggen und und als Grafik darstellen.
Fertig!
Das hat hervorragend geklappt !!!! ;D ;D ;D
vielen dank
weist du vielleicht wie man den Verbrauch auf 3Stellen hinten Komma darstellen kann?
in der App und im Web wird's so angezeigt 0,345KW in fhem leider nur 0,3KW.
komisch, jetzt zeigt fhem auch 3stellen hinterm Komma, einfach so ....
die Anzeige ist aber noch sehr träge kann man das Aktualisierungsintervall irgendwo einstellen ?
eine Fehlermeldung ist mir noch aufgefallen
2016.11.16 15:26:32 3: Strom.UnieqBox: Read response to update didn't match any Reading
2016.11.16 15:26:37 3: Strom.UnieqBox: error while parsing JSON data: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE html PUBLI...") at (eval 1013) line 1.
was kann das sein ?
Nichts, habe ich auch. Wenn sich fhem bei der Box immer mal wieder re-authehnifizieren muss, kommen halt Antworten, die nicht dazu passen was du haben willst. Evtl. mal das Attribut verbose ändern.
Aktivierungsintervall, im define (erste Zeile im Code) statt 300 Sekunden etwas anderes. Muss dir aber klar sein, dass du je kleiner du das Interval machst umso größer wird dein Filelog und umso träger wird fhem. alle 5 Minuten reicht doch.
ok, 5 min ist auf lange Sicht bestimmt ok.
für die schnelle Kontrolle welches Gerät grad den meisten sagt zieht nehme ich dann die unieq app.
momentan macht die Box aber Probleme, spricht auf LAN nicht mehr an nur noch im WLAN bekomm ich ne Verbindung und die Verbindung Box- Zähler scheint auch immer mehr time Outs zu produzieren (DLMS Timeout)
hast du mal darüber nachgedacht den Zähler direkt anzufragen?
als das mit der Box noch klappte sah man auch den Zähler im Netzwerk mit IP Adresse und offenem 1461 Port
hier ist glaub ich das Protokoll ganz gut erklärt
http://www.icube.ch/DLMSSurvivalKit/dsk1.html
ich hab heute mal mit einem von POSID telefoniert und der meint er könnte mir die Security id von dem Zähler besorgen damit der in meinem normalen DLAN Netzwerk hängt und nicht nur zusammen mit der box
hast du eigentlich den Kamstrup Zähler oder schon diese neuen teile die auf der POSID Seite stehen?
Ich habe noch den Kamstrup Zähler und ich selbst habe keinerlei Timeouts oder sonstige Probleme. Klar wäre es schöner den Zähler direkt abzufragen, aber dann müsste man ein neues FHEM Modul scripten und lange rumprobieren und da habe ich z.Z. keine Lust/Zeit für. Wenn du etwas mehr erfährst steige ich vielleicht mal ein.
Hola die Waldfee, ich habe gerade auf der Posid Seite die Preise für den neuen Unieq Zähler gesehen. Hat sich zu meinem "alten" verdreifacht. Hätte ich heutezutage so nicht mehr gekauft, zumal es auch von Homematic Schaltschrank Komponenten gibt, mit denen man den Stromverbrauch messen kann und nur einen Bruchteil kosten. War aber damals mein erster Schritt zur Heimautomatisierung und meine Box hat glaube ich nur knapp über 100 Euro gekostet. Das war noch OK.