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.
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:
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?