am Mittwoch hat mein Elektriker eine weitere PV-Anlage ans Hausnetz angeschlossen. Dabei wurde leider zu schnell der Strom abgeschaltet, aber die openWB series2 standard+ schien es überlebt zu haben, denn abends bemerkte ich dass auf dem Bildschirm "Click to load interface" o.ä. stand (beim letzten Stromausfall hatte es mir die SD-Karte zerschossen). Seitdem habe ich aber das Problem, dass manche Werte nicht mehr stimmen. Ob es ursächlich mit dem Stromausfall zu tun hat oder nur zufällig ein Discovergy-Problem neu begann, weiß ich nicht.
- Ladeleistung funktioniert korrekt.
- PV-Werte sind wohl auch korrekt.
- Netz ist immer 0.
- Hausverbrauch wird scheinbar nur erfasst, wenn die PV Strom erzeugt. Allerdings auch nicht immer korrekt, denn 47 W habe ich nie (minimal das Zehnfache).
Wahrscheinlich ist das Discovergy-Modul das Hauptproblem, mich wundert nur, dass wenn ich es wegkonfiguriere, dass das E3/DC-Modul diese Daten wie Strombezug und Hausverbrauch nicht auch außerhalb der PV-Zeiten übernimmt, denn das E3/DC-Hauskraftwerk kennt diese Werte ja alle?!
Nun aber zum Discovergy-Problem: In der Status-Ansicht steht bei EVU "Die Verbindung zum Server https://api.discovergy.com/public/v1/la ... 4a44098xzy ist fehlgeschlagen. Überprüfe Adresse und Netzwerk." Laut Debug-Log liegt ein Verbindungsproblem vor (SSL-Problem, bad handshake):
Code: Alles auswählen
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.discovergy.com', port=443): Max retries exceeded with url: /public/v1/last_reading?meterId=2b1d15ea44a4xyz (Caused by SSLError(SSLError("bad handshake: Error([('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')],)",),))
raise ConnectionError(e, request=request)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 487, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 609, in send
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 488, in request
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 501, in get
timeout=3
File "/var/www/html/openWB/packages/modules/devices/discovergy/api.py", line 10, in get_last_reading
self.store(get_last_reading(session, self.__meter_id))
File "/var/www/html/openWB/packages/modules/devices/discovergy/utils.py", line 20, in update
component_updater=IndependentComponentUpdater(lambda component: component.update(session)),
File "/var/www/html/openWB/packages/modules/devices/discovergy/device.py", line 26, in <lambda>
self.__updater(component)
File "/var/www/html/openWB/packages/modules/common/configurable_device.py", line 24, in __call__
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.discovergy.com', port=443): Max retries exceeded with url: /public/v1/last_reading?meterId=2b1d15ea44a4xyz (Caused by SSLError(SSLError("bad handshake: Error([('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')],)",),))
raise MaxRetryError(_pool, url, error or ResponseError(cause))
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/util/retry.py", line 592, in increment
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 786, in urlopen
timeout=timeout
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 423, in send
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
ssl.SSLError: ("bad handshake: Error([('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')],)",)
raise ssl.SSLError("bad handshake: %r" % e)
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/contrib/pyopenssl.py", line 504, in wrap_socket
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
sock, context, tls_in_tls, server_hostname=server_hostname
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/util/ssl_.py", line 450, in ssl_wrap_socket
tls_in_tls=tls_in_tls,
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connection.py", line 424, in connect
conn.connect()
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 1040, in _validate_conn
self._validate_conn(conn)
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 386, in _make_request
chunked=chunked,
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 710, in urlopen
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
OpenSSL.SSL.Error: [('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')]
raise exception_type(errors)
File "/usr/lib/python3/dist-packages/OpenSSL/_util.py", line 48, in exception_from_error_queue
_raise_current_error()
File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1174, in _raise_ssl_error
self._raise_ssl_error(self._ssl, result)
File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1426, in do_handshake
cnx.do_handshake()
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/contrib/pyopenssl.py", line 498, in wrap_socket
Traceback (most recent call last):
2023-12-16 20:59:54: PID: 2590: modules.common.fault_state: Discovergy Zähler: FaultState FaultStateLevel.ERROR, FaultStr Die Verbindung zum Server https://api.discovergy.com/public/v1/last_reading?meterId=2b1d15ea44a4xyz ist fehlgeschlagen. Überprüfe Adresse und Netzwerk., Traceback:
Code: Alles auswählen
{"time":1702757210427,"values":{"energyOut":412384458874000,"voltage1":229900,"power":5047880,"power3":621250,"power1":4376020,"voltage2":232100,"energy":128733736081000,"power2":50600,"voltage3":229900}}
Irgendjemand eine Idee oder hat das evtl. auch schonmal gehabt?