Tesla Powerwall Gateway nicht erreichbar - Ladevorgang bricht ab

Fragen zur Nutzung, Features, usw..
nicop
Beiträge: 40
Registriert: Sa Dez 03, 2022 7:46 pm

Tesla Powerwall Gateway nicht erreichbar - Ladevorgang bricht ab

Beitrag von nicop »

Hallo Forumsmitglieder,

meine OpenWB erhält immer wieder keine Daten von dem Tesla Powerwall Gateway. Dabei bricht dann natürlich der komplette Ladevorgang ab um meist kurze Zeit später wieder erneut zu starten.

Anbei ein Log Auszug von dem heutigen Vorfall:

Code: Alles auswählen

2024-01-21 09:29:35,964 - {modules.common.fault_state:55} - {ERROR:device0} - Tesla Zähler - EVU: FaultState FaultStateLevel.ERROR, FaultStr Die Verbindung zum Server https://192.168.100.18/api/meters/aggregates ist fehlgeschlagen. Überprüfe Adresse und Netzwerk., Traceback: 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1012, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 174, in _new_conn
    raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x6cfc1808>, 'Connection to 192.168.100.18 timed out. (connect timeout=5)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='192.168.100.18', port=443): Max retries exceeded with url: /api/meters/aggregates (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x6cfc1808>, 'Connection to 192.168.100.18 timed out. (connect timeout=5)'))


...

2024-01-21 09:29:43,218 - {modules.common.component_context:24} - {DEBUG:component1} - Update Komponente ['Tesla Speicher']
2024-01-21 09:29:43,220 - {modules.common.store._api:30} - {INFO:component1} - Saving BatState(imported=1751760, exported=1520070, power=0, soc=4.485239728330307)
2024-01-21 09:29:43,222 - {modules.common.component_context:24} - {DEBUG:update values cp2} - Update Komponente ['Ladepunkt']
2024-01-21 09:29:43,225 - {modules.common.component_context:24} - {DEBUG:component5} - Update Komponente ['Tesla Wechselrichter - Solaredge']
2024-01-21 09:29:43,233 - {modules.common.store._api:26} - {DEBUG:component5} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=-428, exported=9691937.089711487, dc_power=None)
2024-01-21 09:29:43,234 - {modules.common.store._api:30} - {INFO:component5} - Saving InverterState(currents=[0.0, 0.0, 0.0], power=-428, exported=9691937.089711487, dc_power=None)
2024-01-21 09:29:43,308 - {modules.common.component_context:24} - {DEBUG:component0} - Update Komponente ['Tesla Zähler - EVU']
Die OpenWB ist das einizige System welches Abfragen an die Powerwall sendet.
Hat noch jemand evtl. diese Probleme?
Zuletzt geändert von nicop am Di Jan 30, 2024 7:45 am, insgesamt 1-mal geändert.
aiole
Beiträge: 7747
Registriert: Mo Okt 08, 2018 4:51 pm
Has thanked: 18 times
Been thanked: 31 times

Re: Tesla Powerwall Gateway nicht erreichbar

Beitrag von aiole »

nicop
Beiträge: 40
Registriert: Sa Dez 03, 2022 7:46 pm

Re: Tesla Powerwall Gateway nicht erreichbar

Beitrag von nicop »

openWB 2.1.2 Patch 2
openWB series2 standard+

Telsa Powerwall Gateway
SolarEdge WR
Fixe IP-Adresse
2 Meter CAT Kabel vom Powerwall Gateway zum Switch
nicop
Beiträge: 40
Registriert: Sa Dez 03, 2022 7:46 pm

Re: Tesla Powerwall Gateway nicht erreichbar

Beitrag von nicop »

So, ich habe mir das mal jetzt etwas genauer angesehen und bin nun etwas über die vielen Abfragen an die Tesla Powerwall verwundert.
Speziell die Abfrage von .../api/meters/aggregates wird bei mir 3x in sehr kurzen Abständen durchgeführt.

Anbei ein Auszug aus der main.log:

Code: Alles auswählen

2024-01-24 13:43:10,525 - {modules.devices.tesla.device:61} - {DEBUG:device0} - Beginning update
2024-01-24 13:43:10,526 - {modules.common.component_context:51} - {DEBUG:device0} - Update Komponenten ['Tesla Zähler - EVU', 'Tesla Speicher', 'Tesla Wechselrichter - Solaredge']
2024-01-24 13:43:10,529 - {modules.common.component_context:24} - {DEBUG:set values cp2} - Update Komponente ['Ladepunkt']
2024-01-24 13:43:10,555 - {urllib3.connectionpool:973} - {DEBUG:device0} - Starting new HTTPS connection (1): 192.168.100.18:443
2024-01-24 13:43:10,646 - {urllib3.connectionpool:452} - {DEBUG:device0} - https://192.168.100.18:443 "GET /api/meters/aggregates HTTP/1.1" 200 None
2024-01-24 13:43:10,652 - {modules.common.req:11} - {DEBUG:device0} - Get-Response: {"site":{"last_communication_time":"2024-01-24T13:43:10.550568108+01:00","instant_power":-49.60566711425781,"instant_reactive_power":289.4276657104492,"instant_apparent_power":293.64791143212665,"frequency":49.9873161315918,"energy_exported":3661340.331563209,"energy_imported":4850455.101542912,"instant_average_voltage":323.6488353488817,"instant_average_current":6.6265,"i_a_current":0,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"0001-01-01T00:00:00Z","last_phase_power_communication_time":"0001-01-01T00:00:00Z","last_phase_energy_communication_time":"0001-01-01T00:00:00Z","timeout":1500000000,"num_meters_aggregated":2,"instant_total_current":6.6265},"battery":{"last_communication_time":"2024-01-24T13:43:10.589522853+01:00","instant_power":-1440,"instant_reactive_power":20,"instant_apparent_power":1440.1388821915752,"frequency":49.998,"energy_exported":1525950,"energy_imported":1761330,"instant_average_voltage":235,"instant_average_current":31.900000000000002,"i_a_current":0,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"0001-01-01T00:00:00Z","last_phase_power_communication_time":"0001-01-01T00:00:00Z","last_phase_energy_communication_time":"0001-01-01T00:00:00Z","timeout":1500000000,"num_meters_aggregated":1,"instant_total_current":31.900000000000002},"load":{"last_communication_time":"2024-01-24T13:43:10.550568108+01:00","instant_power":3229.4639765514416,"instant_reactive_power":-323.9644663393086,"instant_apparent_power":3245.6725884312427,"frequency":49.9873161315918,"energy_exported":0,"energy_imported":10665588.130430643,"instant_average_voltage":323.6488353488817,"instant_average_current":9.978296300897227,"i_a_current":0,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"0001-01-01T00:00:00Z","last_phase_power_communication_time":"0001-01-01T00:00:00Z","last_phase_energy_communication_time":"0001-01-01T00:00:00Z","timeout":1500000000,"instant_total_current":9.978296300897227},"solar":{"last_communication_time":"2024-01-24T13:43:10.557514751+01:00","instant_power":4684,"instant_reactive_power":-607,"instant_apparent_power":4723.166840161376,"frequency":0,"energy_exported":9732237.25841266,"energy_imported":20383.89796172001,"instant_average_voltage":409.878276605791,"instant_average_current":20.0095,"i_a_current":0,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"0001-01-01T00:00:00Z","last_phase_power_communication_time":"0001-01-01T00:00:00Z","last_phase_energy_communication_time":"0001-01-01T00:00:00Z","timeout":1500000000,"num_meters_aggregated":1,"instant_total_current":20.0095}}
2024-01-24 13:43:10,673 - {urllib3.connectionpool:452} - {DEBUG:device0} - https://192.168.100.18:443 "GET /api/status HTTP/1.1" 200 274
2024-01-24 13:43:10,679 - {modules.common.req:11} - {DEBUG:device0} - Get-Response: {"din":"1152100-13-J--CNXXXX","start_time":"2024-01-24 13:36:31 +0800","up_time_seconds":"6m38.692933135s","is_new":false,"version":"23.12.2 63bc46d8","git_hash":"63bc46d8c35d6e7c23e4a17b9632ec84bd0b2a41","commission_count":0,"device_type":"teg","teg_type":"unknown","sync_type":"v2.1","leader":"","followers":null,"cellular_disabled":false}
2024-01-24 13:43:10,682 - {modules.devices.tesla.counter:26} - {DEBUG:device0} - Firmware: 23.12.2 63bc46d8
2024-01-24 13:43:10,710 - {urllib3.connectionpool:452} - {DEBUG:device0} - https://192.168.100.18:443 "GET /api/meters/site HTTP/1.1" 200 None
2024-01-24 13:43:10,712 - {modules.common.req:11} - {DEBUG:device0} - Get-Response: [{"id":0,"location":"site","type":"synchrometerX","cts":[true,true,true,false],"inverted":[false,false,false,false],"connection":{"short_id":"1152100-13-J--CNXXXX","device_serial":"JBL20338Y3F0ACsynchrometerX","https_conf":{}},"Cached_readings":{"last_communication_time":"2024-01-24T13:43:10.657082999+01:00","instant_power":1520,"instant_reactive_power":-108,"instant_apparent_power":1523.8320117388268,"frequency":0,"energy_exported":9112.5,"energy_imported":242786.59881291343,"instant_average_voltage":409.87827660579103,"instant_average_current":6.57,"i_a_current":6.57,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"2024-01-24T13:43:10.657179369+01:00","v_l1n":235.6,"v_l2n":238.6,"v_l3n":235.73000000000002,"last_phase_power_communication_time":"2024-01-24T13:43:10.657082999+01:00","real_power_a":1520,"reactive_power_a":-108,"last_phase_energy_communication_time":"0001-01-01T00:00:00Z","serial_number":"JBL20338Y3F0AC","version":"63bc46d8c35d6e","timeout":1500000000,"instant_total_current":6.57}},{"id":1,"location":"site","type":"neurio_w2_mb","cts":[true,true,true,false],"inverted":[false,false,false,false],"connection":{"serial_port":"/dev/ttyrs485a","baud":115200,"modbus_id":1,"short_id":"10589(1.7.2-Tesla)","device_serial":"VAH4770AB3708","neurio_connected":true,"https_conf":{}},"real_power_scale_factor":1,"Cached_readings":{"last_communication_time":"2024-01-24T13:43:10.670104454+01:00","instant_power":-1562.3003234863281,"instant_reactive_power":384.5363311767578,"instant_apparent_power":1608.9283671936319,"frequency":49.9873161315918,"energy_exported":5688951.328055818,"energy_imported":4385133.72138915,"instant_average_voltage":237.39759318033853,"instant_average_current":0,"i_a_current":0,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"2024-01-24T13:43:10.550619481+01:00","v_l1n":236.3645782470703,"v_l2n":239.3324432373047,"v_l3n":236.52651977539062,"last_phase_power_communication_time":"2024-01-24T13:43:10.670104454+01:00","real_power_a":175.25979614257812,"real_power_b":-1362.473876953125,"real_power_c":-375.08624267578125,"reactive_power_a":67.905029296875,"reactive_power_b":157.58311462402344,"reactive_power_c":159.04818725585938,"last_phase_energy_communication_time":"2024-01-24T13:43:06.581380849+01:00","energy_exported_a":1716366.52,"energy_exported_b":2151459.9086111113,"energy_exported_c":1830395.7061111112,"energy_imported_a":2730518.6272222223,"energy_imported_b":676066.0108333334,"energy_imported_c":987821.6497222222,"serial_number":"VAH4770AB3708","version":"10589(1.7.2-Tesla)","timeout":1500000000,"instant_total_current":0}}]
2024-01-24 13:43:10,713 - {modules.devices.tesla.counter:39} - {DEBUG:device0} - Firmware seems not to provide detailed phase measurements. Fallback to total power only.
2024-01-24 13:43:10,713 - {modules.common.store._api:26} - {DEBUG:device0} - Raw data CounterState(currents=[0.0, 0.0, 0.0], powers=[0.0, 0.0, 0.0], voltages=[230.0, 230.0, 230.0], power_factors=[0.0, 0.0, 0.0], imported=4850455.101542912, exported=3661340.331563209, power=-49.60566711425781, frequency=50)
2024-01-24 13:43:10,742 - {urllib3.connectionpool:452} - {DEBUG:device0} - https://192.168.100.18:443 "GET /api/meters/aggregates HTTP/1.1" 200 None
2024-01-24 13:43:10,744 - {modules.common.req:11} - {DEBUG:device0} - Get-Response: {"site":{"last_communication_time":"2024-01-24T13:43:10.657082999+01:00","instant_power":-42.300323486328125,"instant_reactive_power":276.5363311767578,"instant_apparent_power":279.7528549054495,"frequency":49.9873161315918,"energy_exported":3661340.331563209,"energy_imported":4850455.101542912,"instant_average_voltage":323.63793489306477,"instant_average_current":6.57,"i_a_current":0,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"0001-01-01T00:00:00Z","last_phase_power_communication_time":"0001-01-01T00:00:00Z","last_phase_energy_communication_time":"0001-01-01T00:00:00Z","timeout":1500000000,"num_meters_aggregated":2,"instant_total_current":6.57},"battery":{"last_communication_time":"2024-01-24T13:43:10.689926683+01:00","instant_power":-1460,"instant_reactive_power":0,"instant_apparent_power":1460,"frequency":49.998,"energy_exported":1525950,"energy_imported":1761330,"instant_average_voltage":235,"instant_average_current":31.900000000000002,"i_a_current":0,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"0001-01-01T00:00:00Z","last_phase_power_communication_time":"0001-01-01T00:00:00Z","last_phase_energy_communication_time":"0001-01-01T00:00:00Z","timeout":1500000000,"num_meters_aggregated":1,"instant_total_current":31.900000000000002},"load":{"last_communication_time":"2024-01-24T13:43:10.657082999+01:00","instant_power":3214.9921568963314,"instant_reactive_power":-318.75729690940705,"instant_apparent_power":3230.7554508563344,"frequency":49.9873161315918,"energy_exported":0,"energy_imported":10665588.130430643,"instant_average_voltage":323.63793489306477,"instant_average_current":9.933916300506048,"i_a_current":0,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"0001-01-01T00:00:00Z","last_phase_power_communication_time":"0001-01-01T00:00:00Z","last_phase_energy_communication_time":"0001-01-01T00:00:00Z","timeout":1500000000,"instant_total_current":9.933916300506048},"solar":{"last_communication_time":"2024-01-24T13:43:10.657987577+01:00","instant_power":4682,"instant_reactive_power":-608,"instant_apparent_power":4721.312105760431,"frequency":0,"energy_exported":9732237.25841266,"energy_imported":20383.89796172001,"instant_average_voltage":409.8725031030991,"instant_average_current":20.008,"i_a_current":0,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"0001-01-01T00:00:00Z","last_phase_power_communication_time":"0001-01-01T00:00:00Z","last_phase_energy_communication_time":"0001-01-01T00:00:00Z","timeout":1500000000,"num_meters_aggregated":1,"instant_total_current":20.008}}
2024-01-24 13:43:10,761 - {urllib3.connectionpool:452} - {DEBUG:device0} - https://192.168.100.18:443 "GET /api/system_status/soe HTTP/1.1" 200 33
2024-01-24 13:43:10,762 - {modules.common.req:11} - {DEBUG:device0} - Get-Response: {"percentage":23.651647612642908}
2024-01-24 13:43:10,763 - {modules.common.store._api:26} - {DEBUG:device0} - Raw data BatState(imported=1761330, exported=1525950, power=1460, soc=23.651647612642908)
2024-01-24 13:43:10,784 - {urllib3.connectionpool:452} - {DEBUG:device0} - https://192.168.100.18:443 "GET /api/meters/aggregates HTTP/1.1" 200 None
2024-01-24 13:43:10,786 - {modules.common.req:11} - {DEBUG:device0} - Get-Response: {"site":{"last_communication_time":"2024-01-24T13:43:10.657082999+01:00","instant_power":-42.300323486328125,"instant_reactive_power":276.5363311767578,"instant_apparent_power":279.7528549054495,"frequency":49.9873161315918,"energy_exported":3661340.331563209,"energy_imported":4850455.101542912,"instant_average_voltage":323.63793489306477,"instant_average_current":6.57,"i_a_current":0,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"0001-01-01T00:00:00Z","last_phase_power_communication_time":"0001-01-01T00:00:00Z","last_phase_energy_communication_time":"0001-01-01T00:00:00Z","timeout":1500000000,"num_meters_aggregated":2,"instant_total_current":6.57},"battery":{"last_communication_time":"2024-01-24T13:43:10.689926683+01:00","instant_power":-1460,"instant_reactive_power":0,"instant_apparent_power":1460,"frequency":49.998,"energy_exported":1525950,"energy_imported":1761330,"instant_average_voltage":235,"instant_average_current":31.900000000000002,"i_a_current":0,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"0001-01-01T00:00:00Z","last_phase_power_communication_time":"0001-01-01T00:00:00Z","last_phase_energy_communication_time":"0001-01-01T00:00:00Z","timeout":1500000000,"num_meters_aggregated":1,"instant_total_current":31.900000000000002},"load":{"last_communication_time":"2024-01-24T13:43:10.657082999+01:00","instant_power":3214.9921568963314,"instant_reactive_power":-318.75729690940705,"instant_apparent_power":3230.7554508563344,"frequency":49.9873161315918,"energy_exported":0,"energy_imported":10665588.130430643,"instant_average_voltage":323.63793489306477,"instant_average_current":9.933916300506048,"i_a_current":0,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"0001-01-01T00:00:00Z","last_phase_power_communication_time":"0001-01-01T00:00:00Z","last_phase_energy_communication_time":"0001-01-01T00:00:00Z","timeout":1500000000,"instant_total_current":9.933916300506048},"solar":{"last_communication_time":"2024-01-24T13:43:10.657987577+01:00","instant_power":4682,"instant_reactive_power":-608,"instant_apparent_power":4721.312105760431,"frequency":0,"energy_exported":9732237.25841266,"energy_imported":20383.89796172001,"instant_average_voltage":409.8725031030991,"instant_average_current":20.008,"i_a_current":0,"i_b_current":0,"i_c_current":0,"last_phase_voltage_communication_time":"0001-01-01T00:00:00Z","last_phase_power_communication_time":"0001-01-01T00:00:00Z","last_phase_energy_communication_time":"0001-01-01T00:00:00Z","timeout":1500000000,"num_meters_aggregated":1,"instant_total_current":20.008}}
Könnte es nicht einfach sein, dass der Powerwall die Abfragen zuviel werden? Evtl. ein Block bei zu vielen Anfragen in zu kurzer Zeit?
Interessant in diesem Zusammenhang ist, dass die Powerwall dann auch über Layer 2 anscheinend nicht erreichbar ist:
Unbenannt.png
Kurze Zeit später ist diese wieder erreichbar:
Unbenannt2.png
Daher würde ich vorschlagen, zuerst mal die mehrfachen Abfragen auf .../api/meters/aggregates zu reduzieren. Die Rückgabe enthält sowieso immer die Daten für alle Geräte. In so kurzen Abständen ist ja eh keine relevante Werteänderung zu erwarten.

Ich könnte mir vorstellen, dass die 3-fache Abfrage auch von meiner Gerätekonfiguration abhängt. Dort werden 3 Geräte aufgelistet. Das ist doch korrekt so, oder?
Unbenannt3.png
nicop
Beiträge: 40
Registriert: Sa Dez 03, 2022 7:46 pm

Re: Tesla Powerwall Gateway nicht erreichbar

Beitrag von nicop »

Scheint die Stelle hier zu sein...

Auszug aus der core/packages/modules/devices/tesla/device.py:

Code: Alles auswählen

   def __update_components(self, client: PowerwallHttpClient):
        if self.components:
            for component in self.components:
                # read aggregate
               aggregate = client.get_json("/api/meters/aggregates")
                self.components[component].update(client, aggregate)
        else:
            log.warning(
                self.device_config.name +
                ": Es konnten keine Werte gelesen werden, da noch keine Komponenten konfiguriert wurden."
            )
nicop
Beiträge: 40
Registriert: Sa Dez 03, 2022 7:46 pm

Re: Tesla Powerwall Gateway nicht erreichbar - Ladevorgang bricht ab

Beitrag von nicop »

Alleine gestern hatte ich wieder zwei kurze Zeitintervalle in denen keine Daten von der Powerwall abgerufen werden konnten:
Unbenannt.png

Zwischenzeitlich hat Tesla mir auf Anfrage ein Update der Gateway Software eingespielt. Bin nun auf Firmware: 23.44.0! Leider hat sich damit keine Veränderung der oben beschriebenen Problematik eingestellt.
LenaK
Beiträge: 1315
Registriert: Fr Jan 22, 2021 6:40 am
Been thanked: 17 times

Re: Tesla Powerwall Gateway nicht erreichbar - Ladevorgang bricht ab

Beitrag von LenaK »

Ist im Master angepasst. Bitte testen.
nicop
Beiträge: 40
Registriert: Sa Dez 03, 2022 7:46 pm

Re: Tesla Powerwall Gateway nicht erreichbar - Ladevorgang bricht ab

Beitrag von nicop »

Danke für die Einarbeitung der optimierten Datenabfrage.
Ich habe gestern auf Master umgestellt. Bisher sind alle Datenabfragen erfolgreich gewesen und die gelieferten Werte scheinen auch korrekt zu sein.
Also ist der 1. Test schonmal positiv und meiner Meinung nach kann die Änderung im Master bestehen bleiben.
Ob allerdings der oben beschriebene Fehler damit behoben werden konnte, kann ich erst nach ein paar Tagen sagen.
nicop
Beiträge: 40
Registriert: Sa Dez 03, 2022 7:46 pm

Re: Tesla Powerwall Gateway nicht erreichbar - Ladevorgang bricht ab

Beitrag von nicop »

Ich musste leider feststellen, dass das Problem leider immer noch besteht.
Ich würde trotzdem dafür plädieren den letzten Commit https://github.com/openWB/core/pull/1386 zur Powerwall beizubehalten, da die Reduktion der Abfragen ja eine Optimierung darstellt und keinen neuen Fehler hinzugefügt hat.

Hat jemand noch das Problem mit den misslingenden Powerwall-Abfragen?
Parallel frage ich nun Tesla zu dem Thema an.

Anbei noch ein paar Tagesdiagramme mit denen das Problem leicht erkennbar wird:
Unbenannt.png
Unbenannt2.png
Unbenannt3.png
DaHuhn
Beiträge: 26
Registriert: Mi Mai 10, 2023 11:30 am
Has thanked: 4 times

Re: Tesla Powerwall Gateway nicht erreichbar - Ladevorgang bricht ab

Beitrag von DaHuhn »

Hallo nicop,

ich habe nun doch auch täglich zahlreiche fehlschlagende Powerwall Abfragen.

Hast du das Problem auch noch ? Oder gar schon eine Lösung?

Ich habe nämlich hin- und wieder auch das Problem, dass die openWB "gar nicht mehr reagiert" bzw. die Graphen eingefroren sind, was sich dann nur durch Sicherung raus und Sicherung wieder rein beheben lässt. Ich kann das Web Interface zwar noch aufrufen, aber neu starten lässt sich die Box nicht.
Habe eine openWB series2 standard+ und bin momentan auf "Master, 2.1.4-Alpha.1, 2024-04-05 08:37:55 +0200 [b9da5d93b]"

Code: Alles auswählen

2024-04-11 08:03:36,171 - {modules.utils:15} - {ERROR:SoC} - Daten wurden noch nicht vollständig empfangen. Timeout abgelaufen, fortsetzen der Regelung.
2024-04-11 08:04:27,512 - {helpermodules.utils._thread_handler:26} - {ERROR:MainThread} - device0 konnte nicht innerhalb des Timeouts die Werte abfragen, die abgefragten Werte werden nicht in der Regelung verwendet.
2024-04-11 08:04:36,035 - {helpermodules.utils._thread_handler:26} - {ERROR:MainThread} - set values cp4 konnte nicht innerhalb des Timeouts die Werte abfragen, die abgefragten Werte werden nicht in der Regelung verwendet.
2024-04-11 08:04:40,372 - {modules.common.utils.component_parser:25} - {ERROR:MainThread} - Keine aktuellen Werte für Gerät 'Tesla Powerwall'(0) der Komponente 'Tesla Wechselrichter'(1) verfügbar.
2024-04-11 08:04:41,144 - {modules.common.utils.component_parser:25} - {ERROR:MainThread} - Keine aktuellen Werte für Gerät 'Tesla Powerwall'(0) der Komponente 'Tesla Speicher'(3) verfügbar.
2024-04-11 08:04:47,538 - {modules.utils:15} - {ERROR:MainThread} - Daten wurden noch nicht vollständig empfangen. Timeout abgelaufen, fortsetzen der Regelung.
2024-04-11 08:05:06,727 - {control.data:435} - {ERROR:MainThread} - Modul-Daten wurden noch nicht vollständig empfangen. Timeout abgelaufen, fortsetzen der Regelung.
2024-04-11 08:05:23,221 - {modules.common.utils.component_parser:25} - {ERROR:MainThread} - Keine aktuellen Werte für Gerät 'Tesla Powerwall'(0) der Komponente 'Tesla Zähler'(0) verfügbar.
2024-04-11 08:06:51,189 - {modules.utils:15} - {ERROR:MainThread} - Daten wurden noch nicht vollständig empfangen. Timeout abgelaufen, fortsetzen der Regelung.
2024-04-11 08:07:33,852 - {control.data:435} - {ERROR:MainThread} - Modul-Daten wurden noch nicht vollständig empfangen. Timeout abgelaufen, fortsetzen der Regelung.
2024-04-11 08:09:47,644 - {helpermodules.utils._thread_handler:26} - {ERROR:SoC} - fetch soc_ev0 konnte nicht innerhalb des Timeouts die Werte abfragen, die abgefragten Werte werden nicht in der Regelung verwendet.
2024-04-11 08:11:33,961 - {modules.utils:15} - {ERROR:SoC} - Daten wurden noch nicht vollständig empfangen. Timeout abgelaufen, fortsetzen der Regelung.
2024-04-11 08:12:48,872 - {modules.utils:15} - {ERROR:MainThread} - Daten wurden noch nicht vollständig empfangen. Timeout abgelaufen, fortsetzen der Regelung.
2024-04-11 08:12:49,871 - {modules.common.simcount._simcount:41} - {WARNING:MainThread} - Time difference between previous state and current state is too large. Set time difference to control interval.
2024-04-11 09:08:23,486 - {helpermodules.utils._thread_handler:26} - {ERROR:MainThread} - device0 konnte nicht innerhalb des Timeouts die Werte abfragen, die abgefragten Werte werden nicht in der Regelung verwendet.
2024-04-11 09:08:23,487 - {modules.common.utils.component_parser:25} - {ERROR:MainThread} - Keine aktuellen Werte für Gerät 'Tesla Powerwall'(0) der Komponente 'Tesla Wechselrichter'(1) verfügbar.
2024-04-11 09:08:23,488 - {modules.common.utils.component_parser:25} - {ERROR:MainThread} - Keine aktuellen Werte für Gerät 'Tesla Powerwall'(0) der Komponente 'Tesla Speicher'(3) verfügbar.
2024-04-11 09:08:23,502 - {modules.common.utils.component_parser:25} - {ERROR:MainThread} - Keine aktuellen Werte für Gerät 'Tesla Powerwall'(0) der Komponente 'Tesla Zähler'(0) verfügbar.
2024-04-11 09:08:25,170 - {modules.common.fault_state:49} - {ERROR:device0} - Tesla Zähler: FaultState FaultStateLevel.ERROR, FaultStr Die Verbindung zum Server https://192.168.178.81/api/meters/aggregates ist fehlgeschlagen. Überprüfe Adresse und Netzwerk., Traceback: 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1012, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 174, in _new_conn
    raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x6f6c9d60>, 'Connection to 192.168.178.81 timed out. (connect timeout=5)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='192.168.178.81', port=443): Max retries exceeded with url: /api/meters/aggregates (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x6f6c9d60>, 'Connection to 192.168.178.81 timed out. (connect timeout=5)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/devices/tesla/device.py", line 79, in update
    self.__update_components(PowerwallHttpClient(address, session, cookies))
  File "/var/www/html/openWB/packages/modules/devices/tesla/device.py", line 91, in __update_components
    aggregate = client.get_json("/api/meters/aggregates")
  File "/var/www/html/openWB/packages/modules/devices/tesla/http_client.py", line 12, in get_json
    return self.__session.get(url, cookies=self.__cookies, verify=False, timeout=5).json()
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 504, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='192.168.178.81', port=443): Max retries exceeded with url: /api/meters/aggregates (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x6f6c9d60>, 'Connection to 192.168.178.81 timed out. (connect timeout=5)'))

2024-04-11 09:08:25,186 - {modules.common.fault_state:49} - {ERROR:device0} - Tesla Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr Die Verbindung zum Server https://192.168.178.81/api/meters/aggregates ist fehlgeschlagen. Überprüfe Adresse und Netzwerk., Traceback: 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1012, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 174, in _new_conn
    raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x6f6c9d60>, 'Connection to 192.168.178.81 timed out. (connect timeout=5)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='192.168.178.81', port=443): Max retries exceeded with url: /api/meters/aggregates (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x6f6c9d60>, 'Connection to 192.168.178.81 timed out. (connect timeout=5)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/devices/tesla/device.py", line 79, in update
    self.__update_components(PowerwallHttpClient(address, session, cookies))
  File "/var/www/html/openWB/packages/modules/devices/tesla/device.py", line 91, in __update_components
    aggregate = client.get_json("/api/meters/aggregates")
  File "/var/www/html/openWB/packages/modules/devices/tesla/http_client.py", line 12, in get_json
    return self.__session.get(url, cookies=self.__cookies, verify=False, timeout=5).json()
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 504, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='192.168.178.81', port=443): Max retries exceeded with url: /api/meters/aggregates (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x6f6c9d60>, 'Connection to 192.168.178.81 timed out. (connect timeout=5)'))

2024-04-11 09:08:25,210 - {modules.common.fault_state:49} - {ERROR:device0} - Tesla Speicher: FaultState FaultStateLevel.ERROR, FaultStr Die Verbindung zum Server https://192.168.178.81/api/meters/aggregates ist fehlgeschlagen. Überprüfe Adresse und Netzwerk., Traceback: 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1012, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 174, in _new_conn
    raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x6f6c9d60>, 'Connection to 192.168.178.81 timed out. (connect timeout=5)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='192.168.178.81', port=443): Max retries exceeded with url: /api/meters/aggregates (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x6f6c9d60>, 'Connection to 192.168.178.81 timed out. (connect timeout=5)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/devices/tesla/device.py", line 79, in update
    self.__update_components(PowerwallHttpClient(address, session, cookies))
  File "/var/www/html/openWB/packages/modules/devices/tesla/device.py", line 91, in __update_components
    aggregate = client.get_json("/api/meters/aggregates")
  File "/var/www/html/openWB/packages/modules/devices/tesla/http_client.py", line 12, in get_json
    return self.__session.get(url, cookies=self.__cookies, verify=False, timeout=5).json()
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 504, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='192.168.178.81', port=443): Max retries exceeded with url: /api/meters/aggregates (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x6f6c9d60>, 'Connection to 192.168.178.81 timed out. (connect timeout=5)'))
----------------------
openWB series2 standard+ (LAN)
Tesla Powerwall 2 & Gateway (LAN)
BMW i3S 2022
----------------------
Antworten