Seite 2 von 2

Re: Smart Home 2.0 - Separate Leistungsmessung über JSON

Verfasst: Fr Mai 28, 2021 8:49 am
von derNeueDet
Bitte einen längeren Ausschnitt aus dem Log schicken.
Und die Konfig Seite bitte auch noch mal.

Re: Smart Home 2.0 - Separate Leistungsmessung über JSON

Verfasst: Sa Mai 29, 2021 6:09 am
von bvv
Vielen Dank für die Hilfe!

Einstellungen
e.JPG
f.JPG
g.JPG
Log

2021-05-29 08:06:22: Conditions (1) Boiler Fehlermeldung: '1relais'
2021-05-29 08:06:22: (1) Boiler Überschuss -2668 größer Einschaltschwelle-10000
2021-05-29 08:06:22: (1) Boiler Maximale Einschaltdauer nicht erreicht
2021-05-29 08:06:22: Total Watt nichtabschaltbarer smarthomedevices: 0
2021-05-29 08:06:22: Total Watt abschaltbarer smarthomedevices: 0
2021-05-29 08:06:22: Device http1Boiler Fehlermeldung: [Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/smarthome_device_ret1'
urllib.error.URLError: <urlopen error [Errno -5] No address associated with hostname>
raise URLError(err)
File "/usr/lib/python3.7/urllib/request.py", line 1326, in do_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.7/urllib/request.py", line 1352, in http_open
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
'_open', req)
File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
response = self._open(req, data)
File "/usr/lib/python3.7/urllib/request.py", line 525, in open
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
aktpowerfl = float(urllib.request.urlopen(urlrep, timeout=5).read().decode("utf-8"))
File "/var/www/html/openWB/modules/smarthome/http/watt.py", line 34, in <module>
Traceback (most recent call last):

During handling of the above exception, another exception occurred:

socket.gaierror: [Errno -5] No address associated with hostname
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 707, in create_connection
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.7/http/client.py", line 938, in connect
self.connect()
File "/usr/lib/python3.7/http/client.py", line 966, in send
self.send(msg)
File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1244, in request
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib/python3.7/urllib/request.py", line 1324, in do_open
Traceback (most recent call last):
2021-05-29 08:06:21: Speicher Entladung(-)/Ladung(+): 0 SpeicherSoC: 100
2021-05-29 08:06:21: Uberschuss: -2668 Uberschuss mit Offset: -2668
2021-05-29 08:06:21: EVU Bezug(-)/Einspeisung(+): -2668 max Speicherladung: 0
2021-05-29 08:06:16: Conditions (1) Boiler Fehlermeldung: '1relais'
2021-05-29 08:06:16: (1) Boiler Überschuss -2668 größer Einschaltschwelle-10000
2021-05-29 08:06:16: (1) Boiler Maximale Einschaltdauer nicht erreicht
2021-05-29 08:06:16: Total Watt nichtabschaltbarer smarthomedevices: 0
2021-05-29 08:06:16: Total Watt abschaltbarer smarthomedevices: 0
2021-05-29 08:06:16: Device http1Boiler Fehlermeldung: [Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/smarthome_device_ret1'
urllib.error.URLError: <urlopen error [Errno -5] No address associated with hostname>
raise URLError(err)
File "/usr/lib/python3.7/urllib/request.py", line 1326, in do_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.7/urllib/request.py", line 1352, in http_open
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
'_open', req)
File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
response = self._open(req, data)
File "/usr/lib/python3.7/urllib/request.py", line 525, in open
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
aktpowerfl = float(urllib.request.urlopen(urlrep, timeout=5).read().decode("utf-8"))
File "/var/www/html/openWB/modules/smarthome/http/watt.py", line 34, in <module>
Traceback (most recent call last):

During handling of the above exception, another exception occurred:

socket.gaierror: [Errno -5] No address associated with hostname
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 707, in create_connection
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.7/http/client.py", line 938, in connect
self.connect()
File "/usr/lib/python3.7/http/client.py", line 966, in send
self.send(msg)
File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1244, in request
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib/python3.7/urllib/request.py", line 1324, in do_open
Traceback (most recent call last):
2021-05-29 08:06:16: Speicher Entladung(-)/Ladung(+): 0 SpeicherSoC: 100
2021-05-29 08:06:16: Uberschuss: -2668 Uberschuss mit Offset: -2668
2021-05-29 08:06:16: EVU Bezug(-)/Einspeisung(+): -2668 max Speicherladung: 0
2021-05-29 08:06:11: Conditions (1) Boiler Fehlermeldung: '1relais'
2021-05-29 08:06:11: (1) Boiler Überschuss -2678 größer Einschaltschwelle-10000
2021-05-29 08:06:11: (1) Boiler Maximale Einschaltdauer nicht erreicht
2021-05-29 08:06:11: Total Watt nichtabschaltbarer smarthomedevices: 0
2021-05-29 08:06:11: Total Watt abschaltbarer smarthomedevices: 0
2021-05-29 08:06:11: Device http1Boiler Fehlermeldung: [Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/smarthome_device_ret1'
urllib.error.URLError: <urlopen error [Errno -5] No address associated with hostname>
raise URLError(err)
File "/usr/lib/python3.7/urllib/request.py", line 1326, in do_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.7/urllib/request.py", line 1352, in http_open
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
'_open', req)
File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
response = self._open(req, data)
File "/usr/lib/python3.7/urllib/request.py", line 525, in open
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
aktpowerfl = float(urllib.request.urlopen(urlrep, timeout=5).read().decode("utf-8"))
File "/var/www/html/openWB/modules/smarthome/http/watt.py", line 34, in <module>
Traceback (most recent call last):

During handling of the above exception, another exception occurred:

socket.gaierror: [Errno -5] No address associated with hostname
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 707, in create_connection
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.7/http/client.py", line 938, in connect
self.connect()
File "/usr/lib/python3.7/http/client.py", line 966, in send
self.send(msg)
File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1244, in request
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib/python3.7/urllib/request.py", line 1324, in do_open
Traceback (most recent call last):
2021-05-29 08:06:10: Speicher Entladung(-)/Ladung(+): 0 SpeicherSoC: 100
2021-05-29 08:06:10: Uberschuss: -2678 Uberschuss mit Offset: -2678
2021-05-29 08:06:10: EVU Bezug(-)/Einspeisung(+): -2678 max Speicherladung: 0
2021-05-29 08:06:05: Conditions (1) Boiler Fehlermeldung: '1relais'
2021-05-29 08:06:05: (1) Boiler Überschuss -2677 größer Einschaltschwelle-10000
2021-05-29 08:06:05: (1) Boiler Maximale Einschaltdauer nicht erreicht
2021-05-29 08:06:05: Total Watt nichtabschaltbarer smarthomedevices: 0
2021-05-29 08:06:05: Total Watt abschaltbarer smarthomedevices: 0
2021-05-29 08:06:05: Device http1Boiler Fehlermeldung: [Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/smarthome_device_ret1'
urllib.error.URLError: <urlopen error [Errno -5] No address associated with hostname>
raise URLError(err)
File "/usr/lib/python3.7/urllib/request.py", line 1326, in do_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.7/urllib/request.py", line 1352, in http_open
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
'_open', req)
File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
response = self._open(req, data)
File "/usr/lib/python3.7/urllib/request.py", line 525, in open
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
aktpowerfl = float(urllib.request.urlopen(urlrep, timeout=5).read().decode("utf-8"))
File "/var/www/html/openWB/modules/smarthome/http/watt.py", line 34, in <module>
Traceback (most recent call last):

During handling of the above exception, another exception occurred:

socket.gaierror: [Errno -5] No address associated with hostname
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 707, in create_connection
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.7/http/client.py", line 938, in connect
self.connect()
File "/usr/lib/python3.7/http/client.py", line 966, in send
self.send(msg)
File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1244, in request
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib/python3.7/urllib/request.py", line 1324, in do_open
Traceback (most recent call last):
2021-05-29 08:06:05: Speicher Entladung(-)/Ladung(+): 0 SpeicherSoC: 100
2021-05-29 08:06:05: Uberschuss: -2677 Uberschuss mit Offset: -2677
2021-05-29 08:06:05: EVU Bezug(-)/Einspeisung(+): -2677 max Speicherladung: 0
2021-05-29 08:06:00: Conditions (1) Boiler Fehlermeldung: '1relais'
2021-05-29 08:06:00: (1) Boiler Überschuss -2733 größer Einschaltschwelle-10000
2021-05-29 08:06:00: (1) Boiler Maximale Einschaltdauer nicht erreicht
2021-05-29 08:06:00: Total Watt nichtabschaltbarer smarthomedevices: 0
2021-05-29 08:06:00: Total Watt abschaltbarer smarthomedevices: 0
2021-05-29 08:06:00: Device http1Boiler Fehlermeldung: [Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/smarthome_device_ret1'
urllib.error.URLError: <urlopen error [Errno -5] No address associated with hostname>
raise URLError(err)
File "/usr/lib/python3.7/urllib/request.py", line 1326, in do_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.7/urllib/request.py", line 1352, in http_open
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
'_open', req)
File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
response = self._open(req, data)
File "/usr/lib/python3.7/urllib/request.py", line 525, in open
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
aktpowerfl = float(urllib.request.urlopen(urlrep, timeout=5).read().decode("utf-8"))
File "/var/www/html/openWB/modules/smarthome/http/watt.py", line 34, in <module>
Traceback (most recent call last):

During handling of the above exception, another exception occurred:

socket.gaierror: [Errno -5] No address associated with hostname
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 707, in create_connection
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.7/http/client.py", line 938, in connect
self.connect()
File "/usr/lib/python3.7/http/client.py", line 966, in send
self.send(msg)
File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1244, in request
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib/python3.7/urllib/request.py", line 1324, in do_open
Traceback (most recent call last):
2021-05-29 08:05:59: Speicher Entladung(-)/Ladung(+): 0 SpeicherSoC: 100
2021-05-29 08:05:59: Uberschuss: -2733 Uberschuss mit Offset: -2733
2021-05-29 08:05:59: EVU Bezug(-)/Einspeisung(+): -2733 max Speicherladung: 0
2021-05-29 08:05:54: Conditions (1) Boiler Fehlermeldung: '1relais'
2021-05-29 08:05:54: (1) Boiler Überschuss -2707 größer Einschaltschwelle-10000
2021-05-29 08:05:54: (1) Boiler Maximale Einschaltdauer nicht erreicht
2021-05-29 08:05:54: Total Watt nichtabschaltbarer smarthomedevices: 0
2021-05-29 08:05:54: Total Watt abschaltbarer smarthomedevices: 0
2021-05-29 08:05:54: Device http1Boiler Fehlermeldung: [Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/smarthome_device_ret1'
urllib.error.URLError: <urlopen error [Errno -5] No address associated with hostname>
raise URLError(err)
File "/usr/lib/python3.7/urllib/request.py", line 1326, in do_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.7/urllib/request.py", line 1352, in http_open
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
'_open', req)
File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
response = self._open(req, data)
File "/usr/lib/python3.7/urllib/request.py", line 525, in open
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
aktpowerfl = float(urllib.request.urlopen(urlrep, timeout=5).read().decode("utf-8"))
File "/var/www/html/openWB/modules/smarthome/http/watt.py", line 34, in <module>
Traceback (most recent call last):

During handling of the above exception, another exception occurred:

socket.gaierror: [Errno -5] No address associated with hostname
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 707, in create_connection
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.7/http/client.py", line 938, in connect
self.connect()
File "/usr/lib/python3.7/http/client.py", line 966, in send
self.send(msg)
File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1244, in request
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib/python3.7/urllib/request.py", line 1324, in do_open
Traceback (most recent call last):
2021-05-29 08:05:54: Speicher Entladung(-)/Ladung(+): 0 SpeicherSoC: 100
2021-05-29 08:05:54: Uberschuss: -2707 Uberschuss mit Offset: -2707
2021-05-29 08:05:54: EVU Bezug(-)/Einspeisung(+): -2707 max Speicherladung: 0
2021-05-29 08:05:54: Config reRead
2021-05-29 08:05:49: Conditions (1) Boiler Fehlermeldung: '1relais'
2021-05-29 08:05:49: (1) Boiler Überschuss -2684 kleiner Ausschaltschwelle -50
2021-05-29 08:05:49: (1) Boiler SoC niedriger als Abschalt SoC, prüfe weiter
2021-05-29 08:05:49: (1) Boiler Maximale Einschaltdauer nicht erreicht
2021-05-29 08:05:49: Total Watt nichtabschaltbarer smarthomedevices: 0
2021-05-29 08:05:49: Total Watt abschaltbarer smarthomedevices: 0
2021-05-29 08:05:49: Device http1Boiler Fehlermeldung: [Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/smarthome_device_ret1'
urllib.error.URLError: <urlopen error [Errno -5] No address associated with hostname>
raise URLError(err)
File "/usr/lib/python3.7/urllib/request.py", line 1326, in do_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.7/urllib/request.py", line 1352, in http_open
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
'_open', req)
File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
response = self._open(req, data)
File "/usr/lib/python3.7/urllib/request.py", line 525, in open
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
aktpowerfl = float(urllib.request.urlopen(urlrep, timeout=5).read().decode("utf-8"))
File "/var/www/html/openWB/modules/smarthome/http/watt.py", line 34, in <module>
Traceback (most recent call last):

During handling of the above exception, another exception occurred:

socket.gaierror: [Errno -5] No address associated with hostname
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 707, in create_connection
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.7/http/client.py", line 938, in connect
self.connect()
File "/usr/lib/python3.7/http/client.py", line 966, in send
self.send(msg)
File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1244, in request
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib/python3.7/urllib/request.py", line 1324, in do_open

Re: Smart Home 2.0 - Separate Leistungsmessung über JSON

Verfasst: Sa Mai 29, 2021 7:10 am
von derNeueDet
Lies den Beitrag von okaegi noch mal.

Du musst selbst eine URL bereit stellen, die dir einen 0 Wert zurück liefert. Entweder auf einem anderen Gerät, oder wenn du Zugang zur openWB hast, kannst du das auch da machen.

Diese URL musst du dann in der Zeile Leistung-URL angeben.

@okaegi: wäre es nicht sinnvoll, für diesen Fall direkt eine Datei im Smarthome Bereich mit auszuliefern, die diesen 0-Wert liefert, sodass diese dann bei http mit externer Leistungsmessung verwenden kann? URL mit dokumentieren, dann muss man nicht auf andere Server ausweichen.

VG
Det

Re: Smart Home 2.0 - Separate Leistungsmessung über JSON

Verfasst: Sa Mai 29, 2021 8:31 am
von bvv
Habe ich schon versucht.
h.JPG
log
2021-05-29 10:31:02: Conditions (1) Boiler Fehlermeldung: '1relais'
2021-05-29 10:31:02: (1) Boiler Überschuss 3644 größer Einschaltschwelle-10000
2021-05-29 10:31:02: (1) Boiler Maximale Einschaltdauer nicht erreicht
2021-05-29 10:31:02: Total Watt nichtabschaltbarer smarthomedevices: 0
2021-05-29 10:31:02: Total Watt abschaltbarer smarthomedevices: 0
2021-05-29 10:31:02: Device http1Boiler Fehlermeldung: [Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/smarthome_device_ret1'
urllib.error.URLError: <urlopen error no host given>
raise URLError('no host given')
File "/usr/lib/python3.7/urllib/request.py", line 1247, in do_request_
req = meth(req)
File "/usr/lib/python3.7/urllib/request.py", line 523, in open
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
aktpowerfl = float(urllib.request.urlopen(urlrep, timeout=5).read().decode("utf-8"))
File "/var/www/html/openWB/modules/smarthome/http/watt.py", line 34, in <module>
Traceback (most recent call last):
2021-05-29 10:31:01: Speicher Entladung(-)/Ladung(+): 0 SpeicherSoC: 100
2021-05-29 10:31:01: Uberschuss: 3644 Uberschuss mit Offset: 3644
2021-05-29 10:31:01: EVU Bezug(-)/Einspeisung(+): 3644 max Speicherladung: 0
2021-05-29 10:30:56: Conditions (1) Boiler Fehlermeldung: '1relais'
2021-05-29 10:30:56: (1) Boiler Überschuss 3650 größer Einschaltschwelle-10000
2021-05-29 10:30:56: (1) Boiler Maximale Einschaltdauer nicht erreicht
2021-05-29 10:30:56: Total Watt nichtabschaltbarer smarthomedevices: 0
2021-05-29 10:30:56: Total Watt abschaltbarer smarthomedevices: 0
2021-05-29 10:30:56: Device http1Boiler Fehlermeldung: [Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/smarthome_device_ret1'
urllib.error.URLError: <urlopen error no host given>
raise URLError('no host given')
File "/usr/lib/python3.7/urllib/request.py", line 1247, in do_request_
req = meth(req)
File "/usr/lib/python3.7/urllib/request.py", line 523, in open
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
aktpowerfl = float(urllib.request.urlopen(urlrep, timeout=5).read().decode("utf-8"))
File "/var/www/html/openWB/modules/smarthome/http/watt.py", line 34, in <module>

Re: Smart Home 2.0 - Separate Leistungsmessung über JSON

Verfasst: Sa Mai 29, 2021 8:35 am
von okaegi
urllib.error.URLError: <urlopen error no host given>

Gibt mal den local host mit an:

127.0.0.1/cust/teston.php

Wobei cust auf der gleichen höhe wie da openWB Verzeichniss sein sollte.
Gruss Oliver

Re: Smart Home 2.0 - Separate Leistungsmessung über JSON

Verfasst: Sa Mai 29, 2021 8:59 am
von bvv
i.JPG
2021-05-29 10:55:57: (1) Boiler angeschaltet. Ueberschussberechnung (1 = mit Speicher, 2 = mit Offset) 1 oncount: 31
2021-05-29 10:55:57: (1) Boiler Einschaltverzögerung erreicht, schalte ein 400
2021-05-29 10:55:57: (1) Boiler Ueberschussberechnung (1 = mit Speicher, 2 = mit Offset) 1
2021-05-29 10:55:57: (1) Boiler SoC 100 Einschalt SoC 0 Ueberschuss 4075
2021-05-29 10:55:57: (1) Boiler Überschuss 4075 größer Einschaltschwelle400
2021-05-29 10:55:57: (1) Boiler Maximale Einschaltdauer nicht erreicht
2021-05-29 10:55:57: Total Watt nichtabschaltbarer smarthomedevices: 10
2021-05-29 10:55:57: Total Watt abschaltbarer smarthomedevices: 0
2021-05-29 10:55:57: (1) Boiler rel: 0 oncnt/time: 30/0 Status: 10 akt: 10 Z Hw: 0
2021-05-29 10:55:55: (1) Leistungsmessung durch json
2021-05-29 10:55:55: Speicher Entladung(-)/Ladung(+): 0 SpeicherSoC: 100
2021-05-29 10:55:55: Uberschuss: 4075 Uberschuss mit Offset: 4075
2021-05-29 10:55:55: EVU Bezug(-)/Einspeisung(+): 4075 max Speicherladung: 0
2021-05-29 10:55:50: (1) Boiler Einschaltverzögerung gestartet
2021-05-29 10:55:50: (1) Boiler Ueberschussberechnung (1 = mit Speicher, 2 = mit Offset) 1
2021-05-29 10:55:50: (1) Boiler SoC 100 Einschalt SoC 0 Ueberschuss 4081
2021-05-29 10:55:50: (1) Boiler Überschuss 4081 größer Einschaltschwelle400
2021-05-29 10:55:50: (1) Boiler Maximale Einschaltdauer nicht erreicht
2021-05-29 10:55:50: Total Watt nichtabschaltbarer smarthomedevices: 10
2021-05-29 10:55:50: Total Watt abschaltbarer smarthomedevices: 0
2021-05-29 10:55:50: (1) Boiler rel: 0 oncnt/time: 30/0 Status: 10 akt: 10 Z Hw: 0
2021-05-29 10:55:48: (1) Leistungsmessung durch json
2021-05-29 10:55:48: Speicher Entladung(-)/Ladung(+): 0 SpeicherSoC: 100
2021-05-29 10:55:48: Uberschuss: 4081 Uberschuss mit Offset: 4081
2021-05-29 10:55:48: EVU Bezug(-)/Einspeisung(+): 4081 max Speicherladung: 0
2021-05-29 10:55:43: (1) Boiler angeschaltet. Ueberschussberechnung (1 = mit Speicher, 2 = mit Offset) 1 oncount: 30
2021-05-29 10:55:43: (1) Boiler Einschaltverzögerung erreicht, schalte ein 400
2021-05-29 10:55:43: (1) Boiler Ueberschussberechnung (1 = mit Speicher, 2 = mit Offset) 1
2021-05-29 10:55:43: (1) Boiler SoC 100 Einschalt SoC 0 Ueberschuss 3977
2021-05-29 10:55:43: (1) Boiler Überschuss 3977 größer Einschaltschwelle400
2021-05-29 10:55:43: (1) Boiler Maximale Einschaltdauer nicht erreicht
2021-05-29 10:55:42: Total Watt nichtabschaltbarer smarthomedevices: 10
2021-05-29 10:55:42: Total Watt abschaltbarer smarthomedevices: 0
2021-05-29 10:55:42: (1) Boiler rel: 0 oncnt/time: 29/0 Status: 10 akt: 10 Z Hw: 0
2021-05-29 10:55:41: (1) Leistungsmessung durch json
2021-05-29 10:55:41: Speicher Entladung(-)/Ladung(+): 0 SpeicherSoC: 100

Es schaltet, zeigt Leistung an, nur der Name bleit gestrichen?
j.JPG

Re: Smart Home 2.0 - Separate Leistungsmessung über JSON

Verfasst: Sa Mai 29, 2021 12:43 pm
von bvv
> 50 W: grun
< 50 W: rot + gestrichen
k.JPG
l.JPG
Kann ich den Zähler zurucksetzen?
Kann ich die 50W Grenze ändern?


Vielen Dank für die Hilfe!

openWB Rules!

Re: Smart Home 2.0 - Separate Leistungsmessung über JSON

Verfasst: Sa Mai 29, 2021 7:08 pm
von okaegi
Der Zähler sollte den Tagesverbrauch zeigen, der sollte morgen wieder bei 0 beginnen.
Du kannst auch folgendes machen:
Openwb schreibt wenn der einschalt url durchlaufen wird in die
/ramdisk/device5_req_relais
eine 1
wenn der ausschalt url durchlaufen wird in die
/ramdisk/device5_req_relais
eine 0
Nun kannst du dir ein .php und dann ein .sh aufrufen, dort die ramdisk abfragen und je nach schalterzustand 0 oder 51 zurückgeben. Wenn du die aktuelle Leistungsaufnahme vom Boiler kennst, kannst du auch einen genaueren Wert zurückgeben.
Gruss Oliver