Seite 1 von 1

Debug Erzeugungszähler SMA hybird Wechselrichter

Verfasst: Mo Mär 04, 2024 10:15 pm
von mrinas
Helft mir, ich hab' einen Knoten im Hirn. Oder seh' den Wald vor lauter Bäumen nicht.

Ich versuche gerade herauszufinden warum die SMA hybrid Wechselrichter einen etwas zu hohen Zählerstand in der openWB darstellen. Aber ich bekomms' irgendwie nicht auseinander sortiert. Es tauchen Werte auf, aber es ist mir nicht klar woher diese stammen.

Die Statusseite des Wechselrichters gibt als Gesamtertrag 331kWh an:

Code: Alles auswählen

Gesamtertrag	331.114 Wh	6400_00260100	Metering.TotWhOut
Das finde ich so auch im Log:

Code: Alles auswählen

2024-03-04 22:08:01,893 - {modules.devices.sma_sunny_boy.inverter:73} - {DEBUG:device17} - WR 192.168.178.206: InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=331114, dc_power=0)
Daten stammen aus dem Register 30529, das passt lt. SMA Dokumenetation ebenfalls.
https://github.com/openWB/core/blob/mas ... ter.py#L40

Soweit so gut, auf der Ebene des Device17 (mein WR) passen die Werte. 331kWh Erzeugungszähler. Alles super.

Ab hier verlassen sie mich dann. Auf der openWB wird mir aber ein Zählerstand von 389kWh angezeigt, den finde ich ebenfalls im Log, und zwar hier. Nicht mehr das Device17 sondern Component24.
Screenshot 2024-03-04 231552.png
Screenshot 2024-03-04 231552.png (23.42 KiB) 248 mal betrachtet
Device17 (SMA WR, type sma_sunny_boy) beherbergt zwei Komponenten, component24 (PV WR, type inverter), componente25 (Batterie, type bat_smart_energy)
Screenshot 2024-03-04 231051.png
Screenshot 2024-03-04 231051.png (45.84 KiB) 30 mal betrachtet

Code: Alles auswählen

2024-03-04 22:08:02,282 - {modules.common.store._api:26} - {DEBUG:component24} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=389068.03, dc_power=None)
Woher stammt dieser raw Inverter state? Finde nur meldunten von store._api - aber die Werte müssen ja irgendwo herkommen?

Mir ist nun leider nicht mehr klar woher diese Werte der Komponente 24 stammen. Die Werte tauchen im Log auf, es gelingt mir aber nicht nachzuvollziehen woher die Werte stammen. Auch finde ich den Wert '389' auf der Statusseite des Wechselrichters selber überhaupt nicht.

Zudem ist mir nach dem Schreiben hier auch nicht klar warum ich auf der Ebene des Device17 (type sma_sunny_boy) Aufrufe zum Modul inverter finde, ist der inverter nicht component24?

Code: Alles auswählen

2024-03-04 22:08:00,753 - {root:75} - {INFO:MainThread} - # ***Start*** 
2024-03-04 22:08:00,848 - {modules.common.component_context:54} - {DEBUG:device4} - Update Komponenten ['EnergyMeter 1.0']
2024-03-04 22:08:00,849 - {modules.common.component_context:54} - {DEBUG:device8} - Update Komponenten ['Pumpe']
2024-03-04 22:08:00,850 - {modules.common.component_context:54} - {DEBUG:device9} - Update Komponenten ['Trockner']
2024-03-04 22:08:00,855 - {modules.devices.sma_sunny_boy.device:72} - {DEBUG:device15} - Start device reading {'component22': <modules.devices.sma_sunny_boy.inverter.SmaSunnyBoyInverter object at 0x70b91ce8>}
2024-03-04 22:08:00,867 - {urllib3.connectionpool:227} - {DEBUG:device8} - Starting new HTTP connection (1): 192.168.178.81:80
2024-03-04 22:08:00,869 - {urllib3.connectionpool:227} - {DEBUG:device9} - Starting new HTTP connection (1): 192.168.178.209:80
2024-03-04 22:08:00,870 - {modules.devices.sma_sunny_boy.device:72} - {DEBUG:device16} - Start device reading {'component23': <modules.devices.sma_sunny_boy.inverter.SmaSunnyBoyInverter object at 0x70b941c0>}
2024-03-04 22:08:00,873 - {modules.devices.sma_sunny_boy.device:72} - {DEBUG:device17} - Start device reading {'component24': <modules.devices.sma_sunny_boy.inverter.SmaSunnyBoyInverter object at 0x70b943d0>, 'component25': <modules.devices.sma_sunny_boy.bat_smart_energy.SunnyBoySmartEnergyBat object at 0x70b89d30>}
2024-03-04 22:08:00,877 - {modules.common.component_context:25} - {DEBUG:device15} - Update Komponente ['WR Garage']
2024-03-04 22:08:00,881 - {modules.common.component_context:25} - {DEBUG:device16} - Update Komponente ['WR Haus']
2024-03-04 22:08:00,882 - {modules.common.component_context:25} - {DEBUG:set values cp26} - Update Komponente ['Ladepunkt']
2024-03-04 22:08:00,884 - {modules.common.component_context:25} - {DEBUG:set values cp27} - Update Komponente ['Ladepunkt']
2024-03-04 22:08:00,885 - {modules.common.component_context:25} - {DEBUG:device17} - Update Komponente ['PV STP6.0']
2024-03-04 22:08:00,891 - {urllib3.connectionpool:227} - {DEBUG:set values cp27} - Starting new HTTP connection (1): 192.168.178.207:80
2024-03-04 22:08:00,910 - {urllib3.connectionpool:452} - {DEBUG:device9} - http://192.168.178.209:80 "GET /meter/0 HTTP/1.1" 200 118
2024-03-04 22:08:00,912 - {modules.common.req:11} - {DEBUG:device9} - Get-Response: {"power":2.32,"overpower":0.00,"is_valid":true,"timestamp":1709590081,"counters":[2.399, 2.398, 2.410],"total":898890}
2024-03-04 22:08:00,913 - {urllib3.connectionpool:452} - {DEBUG:set values cp27} - http://192.168.178.207:80 "GET /connect.php HTTP/1.1" 200 452
2024-03-04 22:08:01,433 - {modules.common.req:11} - {DEBUG:set values cp27} - Get-Response: {"date":"2024:03:04-22:08:00","timestamp":1709586480,"powers":[0,0,0],"power_all":0,"currents":[0,0,0],"voltages":[225.71,227.03,226.68],"frequency":49.977,"imported":141995,"exported":42,"plug_state":true,"charge_state":false,"phases_actual":0,"phases_target":1,"phases_in_use":1,"offered_current":0,"evse_signaling":"basic","v2g_ready":0,"soc_value":null,"soc_timestamp":null,"vehicle_id":null,"rfid_tag":null,"rfid_timestamp":null,"serial":"830892"}
2024-03-04 22:08:01,438 - {modules.common.store._api:26} - {DEBUG:set values cp27} - Raw data ChargepointState(currents=[0, 0, 0], powers=[0, 0, 0], voltages=[225.71, 227.03, 226.68], frequency=49.977, imported=141995, exported=42, power=0, phases_in_use=1, charge_state=False, plug_state=True, rfid=None, rfid_timestamp=None, power_factors=[0.0, 0.0, 0.0], soc=None, soc_timestamp=None, evse_current=0, vehicle_id=None)
2024-03-04 22:08:01,437 - {modules.common.simcount._simcount:37} - {DEBUG:device9} - Previous state: SimCounterState(timestamp=1709586471.1165938, power=2.36, imported=332791.06543682003, exported=0.0)
2024-03-04 22:08:01,450 - {modules.common.simcount._calculate:11} - {DEBUG:device9} - time passed: 0.00286684, power1: 2.36, power2: 2.32
2024-03-04 22:08:01,452 - {modules.common.simcount._calculate:27} - {DEBUG:device9} - power did not change sign. Total energy: 0.00670842
2024-03-04 22:08:01,452 - {modules.common.simcount._simcount:46} - {DEBUG:device9} - imported: 0.00670842 Wh, exported: 0 Wh, new state: SimCounterState(timestamp=1709586481.4372349, power=2.32, imported=332791.0721452367, exported=0.0)
2024-03-04 22:08:01,453 - {modules.common.store._api:26} - {DEBUG:device9} - 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=332791.0721452367, exported=0.0, power=2.32, frequency=50)
2024-03-04 22:08:01,483 - {urllib3.connectionpool:452} - {DEBUG:device8} - http://192.168.178.81:80 "GET /meter/0 HTTP/1.1" 200 113
2024-03-04 22:08:01,485 - {modules.common.req:11} - {DEBUG:device8} - Get-Response: {"power":0.00,"overpower":0.00,"is_valid":true,"timestamp":1709590081,"counters":[0.000, 0.000, 0.000],"total":0}
2024-03-04 22:08:01,892 - {modules.common.component_context:25} - {DEBUG:device4} - Update Komponente ['EnergyMeter 1.0']
2024-03-04 22:08:01,893 - {modules.devices.sma_sunny_boy.inverter:73} - {DEBUG:device17} - WR 192.168.178.206: InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=331114, dc_power=0)
2024-03-04 22:08:01,895 - {modules.common.store._api:26} - {DEBUG:device4} - Raw data CounterState(currents=[0.228, 1.509, 1.15], powers=[25.9, 301.9, 202.3], voltages=[226.863, 225.298, 227.004], power_factors=[0.649, 0.899, 0.956], imported=42729028.9, exported=76219429.69999999, power=530.1, frequency=50)
2024-03-04 22:08:01,895 - {modules.common.simcount._simcount:37} - {DEBUG:device8} - Previous state: SimCounterState(timestamp=1709586471.532066, power=0.0, imported=143509.15014011823, exported=0.0)
2024-03-04 22:08:01,897 - {modules.common.store._api:26} - {DEBUG:device17} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=331114, dc_power=0)
2024-03-04 22:08:01,899 - {modules.devices.sma_sunny_boy.inverter:73} - {DEBUG:device15} - WR 192.168.178.204: InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=6457597, dc_power=4294967296)
2024-03-04 22:08:01,904 - {modules.devices.sma_shm.device:28} - {DEBUG:device4} - All components updated
2024-03-04 22:08:01,905 - {modules.common.simcount._calculate:11} - {DEBUG:device8} - time passed: 0.00287873, power1: 0, power2: 0
2024-03-04 22:08:01,907 - {modules.common.component_context:25} - {DEBUG:device17} - Update Komponente ['Batterie STP6.0']
2024-03-04 22:08:01,910 - {modules.common.store._api:26} - {DEBUG:device15} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=6457597, dc_power=4294967296)
2024-03-04 22:08:01,915 - {modules.common.simcount._calculate:27} - {DEBUG:device8} - power did not change sign. Total energy: 0
2024-03-04 22:08:01,922 - {modules.common.simcount._simcount:46} - {DEBUG:device8} - imported: 0 Wh, exported: 0 Wh, new state: SimCounterState(timestamp=1709586481.8954842, power=0.0, imported=143509.15014011823, exported=0.0)
2024-03-04 22:08:01,924 - {modules.common.store._api:26} - {DEBUG:device8} - 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=143509.15014011823, exported=0.0, power=0.0, frequency=50)
2024-03-04 22:08:01,995 - {modules.common.simcount._simcount:37} - {DEBUG:device17} - Previous state: SimCounterState(timestamp=1709586471.6718953, power=-0.0, imported=207745.82564867733, exported=149791.79642494305)
2024-03-04 22:08:01,996 - {modules.common.simcount._calculate:11} - {DEBUG:device17} - time passed: 0.00286778, power1: -0, power2: -0
2024-03-04 22:08:01,996 - {modules.common.simcount._calculate:27} - {DEBUG:device17} - power did not change sign. Total energy: 0
2024-03-04 22:08:01,997 - {modules.common.simcount._simcount:46} - {DEBUG:device17} - imported: 0 Wh, exported: 0 Wh, new state: SimCounterState(timestamp=1709586481.9959111, power=-0.0, imported=207745.82564867733, exported=149791.79642494305)
2024-03-04 22:08:01,998 - {modules.common.store._api:26} - {DEBUG:device17} - Raw data BatState(imported=207745.82564867733, exported=149791.79642494305, power=-0.0, soc=0)
2024-03-04 22:08:02,205 - {modules.devices.sma_sunny_boy.inverter:73} - {DEBUG:device16} - WR 192.168.178.201: InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=44877015, dc_power=4294967296)
2024-03-04 22:08:02,206 - {modules.common.store._api:26} - {DEBUG:device16} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=44877015, dc_power=4294967296)
2024-03-04 22:08:02,209 - {modules.common.component_context:25} - {DEBUG:component25} - Update Komponente ['Batterie STP6.0']
2024-03-04 22:08:02,209 - {modules.common.store._api:30} - {INFO:component25} - Saving BatState(imported=207745.82564867733, exported=149791.79642494305, power=-0.0, soc=0)
2024-03-04 22:08:02,243 - {modules.common.component_context:25} - {DEBUG:component23} - Update Komponente ['WR Haus']
2024-03-04 22:08:02,244 - {modules.common.store._api:26} - {DEBUG:component23} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=44877015, dc_power=None)
2024-03-04 22:08:02,244 - {modules.common.component_context:25} - {DEBUG:component22} - Update Komponente ['WR Garage']
2024-03-04 22:08:02,245 - {modules.common.store._api:30} - {INFO:component23} - Saving InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=44877015, dc_power=None)
2024-03-04 22:08:02,245 - {modules.common.component_context:25} - {DEBUG:component14} - Update Komponente ['Pumpe']
2024-03-04 22:08:02,246 - {modules.common.store._api:26} - {DEBUG:component22} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=6457597, dc_power=None)
2024-03-04 22:08:02,247 - {modules.common.component_context:25} - {DEBUG:component15} - Update Komponente ['Trockner']
2024-03-04 22:08:02,248 - {modules.common.store._api:30} - {INFO:component14} - Saving 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=143509.15014011823, exported=0.0, power=0.0, frequency=50)
2024-03-04 22:08:02,250 - {modules.common.component_context:25} - {DEBUG:component24} - Update Komponente ['PV STP6.0']
2024-03-04 22:08:02,251 - {modules.common.store._api:30} - {INFO:component22} - Saving InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=6457597, dc_power=None)
2024-03-04 22:08:02,251 - {modules.common.component_context:25} - {DEBUG:update values cp26} - Update Komponente ['Ladepunkt']
2024-03-04 22:08:02,252 - {modules.common.store._api:30} - {INFO:component15} - Saving 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=332791.0721452367, exported=0.0, power=2.32, frequency=50)
2024-03-04 22:08:02,255 - {modules.common.component_context:25} - {DEBUG:update values cp27} - Update Komponente ['Ladepunkt']
2024-03-04 22:08:02,282 - {modules.common.store._api:26} - {DEBUG:component24} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=389068.03, dc_power=None)
2024-03-04 22:08:02,290 - {modules.common.store._api:30} - {INFO:update values cp27} - Saving ChargepointState(currents=[0, 0, 0], powers=[0, 0, 0], voltages=[225.71, 227.03, 226.68], frequency=49.977, imported=141995, exported=42, power=0, phases_in_use=1, charge_state=False, plug_state=True, rfid=None, rfid_timestamp=None, power_factors=[0.0, 0.0, 0.0], soc=None, soc_timestamp=None, evse_current=0, vehicle_id=None)
2024-03-04 22:08:02,294 - {modules.common.store._api:30} - {INFO:component24} - Saving InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=389068.03, dc_power=None)
2024-03-04 22:08:02,471 - {modules.common.component_context:25} - {DEBUG:component7} - Update Komponente ['EnergyMeter 1.0']
2024-03-04 22:08:02,471 - {modules.common.store._api:30} - {INFO:component7} - Saving CounterState(currents=[0.228, 1.509, 1.15], powers=[25.9, 301.9, 202.3], voltages=[226.863, 225.298, 227.004], power_factors=[0.649, 0.899, 0.956], imported=42729028.9, exported=76219429.69999999, power=530.1, frequency=50)
2024-03-04 22:08:02,651 - {control.bat_all:221} - {DEBUG:MainThread} - Verbleibende Speicher-Leistung: 0.0W
2024-03-04 22:08:02,651 - {control.bat_all:225} - {DEBUG:MainThread} - Reservierte Ladeleistung (100W) subtrahieren: -100.0
2024-03-04 22:08:02,652 - {control.bat_all:179} - {INFO:MainThread} - -100.0W verbleibende Speicher-Leistung
2024-03-04 22:08:02,653 - {control.counter:145} - {INFO:MainThread} - Verbleibende Ströme an Zähler 14: [16.0, 16.0, 16.0]A
2024-03-04 22:08:02,655 - {control.counter:145} - {INFO:MainThread} - Verbleibende Ströme an Zähler 15: [16.0, 16.0, 16.0]A
2024-03-04 22:08:02,657 - {control.counter:145} - {INFO:MainThread} - Verbleibende Ströme an Zähler 7: [34.77, 33.49, 33.85]A
2024-03-04 22:08:02,658 - {control.counter:168} - {INFO:MainThread} - Verbleibende Leistung an Zähler 7: 23469.9W
2024-03-04 22:08:02,660 - {control.chargepoint.chargepoint:541} - {DEBUG:MainThread} - EV-Phasenzahl beschränkt die nutzbaren Phasen auf 3
2024-03-04 22:08:02,661 - {control.chargepoint.chargepoint:524} - {DEBUG:MainThread} - Phasenzahl Lademodus: 1
2024-03-04 22:08:02,663 - {control.ev:604} - {DEBUG:MainThread} - Keine Ladung, da kein Zeitfenster für Zeitladen aktiv ist.
2024-03-04 22:08:02,670 - {control.chargepoint.chargepoint:665} - {INFO:MainThread} - LP 26, EV: e2008 (EV-Nr.15): Theoretisch benötigter Strom 6A, Lademodus pv_charging, Submodus: Chargemode.PV_CHARGING, Phasen: 1, Priorität: True, max. Ist-Strom: 0.0
2024-03-04 22:08:02,687 - {control.chargepoint.chargepoint:83} - {INFO:MainThread} - LP 27: Keine Ladung, da der Ladepunkt gesperrt wurde.
2024-03-04 22:08:02,693 - {modules.common.simcount._simcount:37} - {DEBUG:MainThread} - Previous state: SimCounterState(timestamp=1709586472.3264027, power=526.9399999999999, imported=1832786.8989022716, exported=23.99189880603552)
2024-03-04 22:08:02,694 - {modules.common.simcount._calculate:11} - {DEBUG:MainThread} - time passed: 0.00287979, power1: 526.94, power2: 527.78
2024-03-04 22:08:02,695 - {modules.common.simcount._calculate:27} - {DEBUG:MainThread} - power did not change sign. Total energy: 1.51869
2024-03-04 22:08:02,697 - {modules.common.simcount._simcount:46} - {DEBUG:MainThread} - imported: 1.51869 Wh, exported: 0 Wh, new state: SimCounterState(timestamp=1709586482.6936588, power=527.78, imported=1832788.417590108, exported=23.99189880603552)
2024-03-04 22:08:02,702 - {control.data:266} - {INFO:MainThread} - bat25
BatData(get=Get(currents=[0.0, 0.0, 0.0], soc=0, daily_exported=6757.0, daily_imported=3630.0, imported=207745.83, exported=149791.8, fault_state=0, fault_str='Kein Fehler.', power=-0.0))
2024-03-04 22:08:02,704 - {control.data:236} - {INFO:MainThread} - bat_all_data
BatAllData(config=Config(configured=True), get=Get(soc=0, daily_exported=6757.0, daily_imported=3630.0, fault_str='Kein Fehler.', fault_state=0, imported=207745.83, exported=149791.8, power=0.0), set=Set(charging_power_left=-100.0, regulate_up=False, switch_on_soc_reached=False))
2024-03-04 22:08:02,704 - {control.data:237} - {INFO:MainThread} - cp_all_data
AllChargepointData(get=AllGet(daily_imported=4226.0, daily_exported=0.0, power=0, imported=9689859.26, exported=42))
2024-03-04 22:08:02,705 - {control.data:266} - {INFO:MainThread} - cp26
ChargepointData(control_parameter=ControlParameter(chargemode=<Chargemode.PV_CHARGING: 'pv_charging'>, current_plan=None, failed_phase_switches=0, imported_at_plan_start=9547864.26, imported_instant_charging=None, limit=None, phases=1, prio=True, required_current=6, required_currents=[6, 0.0, 0.0], state=0, submode=<Chargemode.PV_CHARGING: 'pv_charging'>, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, timestamp_switch_on_off=None), get=Get(charge_state=False, connected_vehicle=ConnectedVehicle(config=ConnectedConfig(average_consumption=17, charge_template=0, chargemode='stop', current_plan=0, ev_template=0, priority=False, time_charging_in_use=False), info=ConnectedInfo(id=0, name='Ladepunkt'), soc=85), currents=[0.0, 0.0, 0.0], daily_imported=4226.0, daily_exported=0.0, evse_current=0, exported=0, fault_str='Kein Fehler.', fault_state=0, imported=9547864.26, phases_in_use=1, plug_state=True, power=0, rfid_timestamp=None, rfid=None, soc=None, soc_timestamp=None, state_str=None, vehicle_id=None, voltages=[226.95, 226.21, 227.04]), set=Set(change_ev_permitted=False, charging_ev=15, charging_ev_prev=15, current=0, energy_to_charge=0, loadmanagement_available=True, log=Log(chargemode_log_entry='_', costs=0, imported_at_mode_switch=9547864.26, imported_at_plugtime=9547864.26, imported_since_mode_switch=0, imported_since_plugged=0.0, range_charged=0, time_charged='00:00', timestamp_start_charging=None, ev=-1, prio=False, rfid=None), manual_lock=False, phases_to_use=1, plug_state_prev=True, plug_time=1709568982.411122, required_power=1380.0, rfid=None, target_current=0, charging_ev_data=<control.ev.Ev object at 0x6c129f28>), config=Config(configuration={'ip_address': '192.168.178.51', 'duo_num': 0}, ev=15, name='Garage', type='external_openwb', template=0, connected_phases=3, phase_1=1, auto_phase_switch_hw=True, control_pilot_interruption_hw=True, id=26))
2024-03-04 22:08:02,707 - {control.data:266} - {INFO:MainThread} - cp27
ChargepointData(control_parameter=ControlParameter(chargemode='stop', current_plan=None, failed_phase_switches=0, imported_at_plan_start=None, imported_instant_charging=None, limit=None, phases=0, prio=False, required_current=0, required_currents=[0.0, 0.0, 0.0], state=0, submode='stop', timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, timestamp_switch_on_off=None), get=Get(charge_state=False, connected_vehicle=ConnectedVehicle(config=ConnectedConfig(average_consumption=17, charge_template=0, chargemode='stop', current_plan=0, ev_template=0, priority=False, time_charging_in_use=False), info=ConnectedInfo(id=0, name='Ladepunkt'), soc=42.0), currents=[0, 0, 0], daily_imported=0.0, daily_exported=0.0, evse_current=0, exported=42, fault_str='Kein Fehler.', fault_state=0, imported=141995, phases_in_use=1, plug_state=True, power=0, rfid_timestamp=None, rfid=None, soc=None, soc_timestamp=None, state_str='Keine Ladung, da der Ladepunkt gesperrt wurde.', vehicle_id=None, voltages=[225.71, 227.03, 226.68]), set=Set(change_ev_permitted=False, charging_ev=-1, charging_ev_prev=-1, current=0, energy_to_charge=0, loadmanagement_available=True, log=Log(chargemode_log_entry='_', costs=0, imported_at_mode_switch=0, imported_at_plugtime=0, imported_since_mode_switch=0, imported_since_plugged=0, range_charged=0, time_charged='00:00', timestamp_start_charging=None, ev=-1, prio=False, rfid=None), manual_lock=True, phases_to_use=1, plug_state_prev=True, plug_time=1709491302.725494, required_power=0, rfid=None, target_current=0, charging_ev_data=<control.ev.Ev object at 0x6ed972e0>), config=Config(configuration={'ip_address': '192.168.178.207', 'duo_num': 0}, ev=3, name='Gartenhaus (pro)', type='openwb_pro', template=0, connected_phases=3, phase_1=2, auto_phase_switch_hw=True, control_pilot_interruption_hw=True, id=27))
2024-03-04 22:08:02,709 - {control.data:266} - {INFO:MainThread} - cpt0
CpTemplateData(autolock=Autolock(active=False, plans={}, wait_for_charging_end=False), id=0, max_current_multi_phases=16, max_current_single_phase=18, name='Standard Ladepunkt-Vorlage', rfid_enabling=False, valid_tags=[])
2024-03-04 22:08:02,711 - {control.data:266} - {INFO:MainThread} - counter7
CounterData(config=Config(max_currents=[35, 35, 35], max_total_power=24000), get=Get(powers=[25.9, 301.9, 202.3], currents=[0.23, 1.51, 1.15], voltages=[226.86, 225.3, 227.0], power_factors=[0.65, 0.9, 0.96], unbalanced_load=0, frequency=50, daily_exported=299.0, daily_imported=3261.0, imported=42729028.9, exported=76219429.69999999, fault_state=0, fault_str='Kein Fehler.', power=530.1), set=Set(error_counter=0, reserved_surplus=0, released_surplus=0, raw_power_left=23469.9, raw_currents_left=[34.77, 33.49, 33.85], surplus_power_left=0, state_str=''))
2024-03-04 22:08:02,713 - {control.data:266} - {INFO:MainThread} - counter14
CounterData(config=Config(max_currents=[16, 16, 16], max_total_power=11000), get=Get(powers=[0.0, 0.0, 0.0], currents=[0.0, 0.0, 0.0], voltages=[230.0, 230.0, 230.0], power_factors=[0.0, 0.0, 0.0], unbalanced_load=0, frequency=50, daily_exported=0.0, daily_imported=0.0, imported=143509.15014011823, exported=0.0, fault_state=0, fault_str='Kein Fehler.', power=0.0), set=Set(error_counter=0, reserved_surplus=0, released_surplus=0, raw_power_left=None, raw_currents_left=[16.0, 16.0, 16.0], surplus_power_left=0, state_str=''))
2024-03-04 22:08:02,716 - {control.data:266} - {INFO:MainThread} - counter15
CounterData(config=Config(max_currents=[16, 16, 16], max_total_power=11000), get=Get(powers=[0.0, 0.0, 0.0], currents=[0.0, 0.0, 0.0], voltages=[230.0, 230.0, 230.0], power_factors=[0.0, 0.0, 0.0], unbalanced_load=0, frequency=50, daily_exported=0.0, daily_imported=1322.0, imported=332791.0721452367, exported=0.0, fault_state=0, fault_str='Kein Fehler.', power=2.32), set=Set(error_counter=0, reserved_surplus=0, released_surplus=0, raw_power_left=None, raw_currents_left=[16.0, 16.0, 16.0], surplus_power_left=0, state_str=''))
2024-03-04 22:08:02,716 - {control.data:241} - {INFO:MainThread} - counter_all_data
CounterAllData(config=Config(reserve_for_not_charging=True), get=Get(hierarchy=[{'id': 7, 'type': 'counter', 'children': [{'id': 23, 'type': 'inverter', 'children': []}, {'id': 22, 'type': 'inverter', 'children': []}, {'id': 14, 'type': 'counter', 'children': []}, {'id': 15, 'type': 'counter', 'children': []}, {'id': 24, 'type': 'inverter', 'children': [{'id': 25, 'type': 'bat', 'children': []}]}, {'id': 26, 'type': 'cp', 'children': []}, {'id': 27, 'type': 'cp', 'children': []}]}]), set=Set(loadmanagement_active=False, home_consumption=527.78, invalid_home_consumption=0, daily_yield_home_consumption=14299.0, imported_home_consumption=1832788.417590108, disengageable_smarthome_power=0))
2024-03-04 22:08:02,718 - {control.data:266} - {INFO:MainThread} - ct0
ChargeTemplateData(name='Standard-Ladeprofil-Vorlage', disable_after_unplug=False, prio=False, load_default=False, et=Et(active=False, max_price=0.0002), time_charging=TimeCharging(active=False, plans={}), chargemode=Chargemode(selected='pv_charging', pv_charging=PvCharging(min_soc_current=6, min_current=0, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=16, limit=Limit(selected='none', amount=22, soc=50))))
2024-03-04 22:08:02,719 - {control.data:266} - {INFO:MainThread} - ct1
ChargeTemplateData(name='Tesla', disable_after_unplug=False, prio=False, load_default=False, et=Et(active=False, max_price=0.0002), time_charging=TimeCharging(active=True, plans={'3': TimeChargingPlan(active=False, frequency=Frequency(selected='weekly', once=['2022-11-07', '2022-11-07'], weekly=[False, False, False, False, False, True, True]), time=['01:00', '09:30'], name='Wochenende 75%', current=16, limit=Limit(selected='soc', amount=1000, soc=75)), '4': TimeChargingPlan(active=False, frequency=Frequency(selected='weekly', once=['2021-11-01', '2021-11-05'], weekly=[True, True, True, True, True, True, True]), time=['01:00', '06:30'], name='jeden Tag 40%', current=16, limit=Limit(selected='soc', amount=1000, soc=40))}), chargemode=Chargemode(selected='pv_charging', pv_charging=PvCharging(min_soc_current=16, min_current=0, feed_in_limit=False, min_soc=0, max_soc=92), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=16, limit=Limit(selected='soc', amount=20000, soc=50))))
2024-03-04 22:08:02,720 - {control.data:266} - {INFO:MainThread} - ct3
ChargeTemplateData(name='e2008', disable_after_unplug=False, prio=True, load_default=False, et=Et(active=False, max_price=0.0002), time_charging=TimeCharging(active=True, plans={'5': TimeChargingPlan(active=True, frequency=Frequency(selected='weekly', once=['2021-11-01', '2021-11-05'], weekly=[False, False, True, True, True, False, False]), time=['00:00', '06:00'], name='Mi-Fr 70%', current=16, limit=Limit(selected='soc', amount=1000, soc=70)), '6': TimeChargingPlan(active=True, frequency=Frequency(selected='weekly', once=['2021-11-01', '2021-11-05'], weekly=[True, True, False, False, False, False, False]), time=['00:00', '06:00'], name='Mo-Di 60%', current=16, limit=Limit(selected='soc', amount=1000, soc=60)), '7': TimeChargingPlan(active=True, frequency=Frequency(selected='weekly', once=['2021-11-01', '2021-11-05'], weekly=[False, False, False, False, False, True, True]), time=['00:00', '07:00'], name='Wochenende 50%', current=16, limit=Limit(selected='soc', amount=1000, soc=50))}), chargemode=Chargemode(selected='pv_charging', pv_charging=PvCharging(min_soc_current=10, min_current=0, feed_in_limit=False, min_soc=0, max_soc=95), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=6, limit=Limit(selected='none', amount=1000, soc=80))))
2024-03-04 22:08:02,722 - {control.data:266} - {INFO:MainThread} - ev0
EvData(set=Set(soc_error_counter=0), charge_template=0, ev_template=0, name='Standard-Fahrzeug', tag_id=[], get=Get(soc=0, soc_timestamp=None, force_soc_update=True, range=None, fault_state=0, fault_str='Kein Fehler.'))
2024-03-04 22:08:02,722 - {control.data:266} - {INFO:MainThread} - ev3
EvData(set=Set(soc_error_counter=0), charge_template=1, ev_template=1, name='Tesla', tag_id=[], get=Get(soc=42.0, soc_timestamp=1709554392.3924, force_soc_update=False, range=197.98, fault_state=0, fault_str='Kein Fehler.'))
2024-03-04 22:08:02,722 - {control.data:266} - {INFO:MainThread} - ev15
EvData(set=Set(soc_error_counter=0), charge_template=3, ev_template=3, name='e2008', tag_id=[], get=Get(soc=85, soc_timestamp=1709586467.836729, force_soc_update=False, range=224, fault_state=0, fault_str='Kein Fehler.'))
2024-03-04 22:08:02,723 - {control.data:266} - {INFO:MainThread} - ev1
EvData(set=Set(soc_error_counter=0), charge_template=0, ev_template=0, name='Standard-Fahrzeug', tag_id=[], get=Get(soc=None, soc_timestamp=None, force_soc_update=False, range=None, fault_state=0, fault_str='Kein Fehler.'))
2024-03-04 22:08:02,723 - {control.data:266} - {INFO:MainThread} - ev2
EvData(set=Set(soc_error_counter=0), charge_template=0, ev_template=0, name='Standard-Fahrzeug', tag_id=[], get=Get(soc=None, soc_timestamp=None, force_soc_update=False, range=None, fault_state=0, fault_str='Kein Fehler.'))
2024-03-04 22:08:02,723 - {control.data:266} - {INFO:MainThread} - ev13
EvData(set=Set(soc_error_counter=0), charge_template=0, ev_template=0, name='Standard-Fahrzeug', tag_id=[], get=Get(soc=None, soc_timestamp=None, force_soc_update=False, range=None, fault_state=0, fault_str='Kein Fehler.'))
2024-03-04 22:08:02,726 - {control.data:266} - {INFO:MainThread} - et0
EvTemplateData(name='Standard-Fahrzeug-Vorlage', max_current_multi_phases=16, max_phases=3, phase_switch_pause=2, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=False, control_pilot_interruption_duration=4, average_consump=17000, min_current=6, max_current_single_phase=32, battery_capacity=82000, efficiency=90, nominal_difference=2, keep_charge_active_duration=40)
2024-03-04 22:08:02,728 - {control.data:266} - {INFO:MainThread} - et1
EvTemplateData(name='Tesla', max_current_multi_phases=16, max_phases=3, phase_switch_pause=2, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=False, control_pilot_interruption_duration=4, average_consump=20000, min_current=6, max_current_single_phase=32, battery_capacity=75000, efficiency=98, nominal_difference=1, keep_charge_active_duration=60)
2024-03-04 22:08:02,729 - {control.data:266} - {INFO:MainThread} - et3
EvTemplateData(name='e2008', max_current_multi_phases=16, max_phases=3, phase_switch_pause=60, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=True, control_pilot_interruption_duration=4, average_consump=20000, min_current=6, max_current_single_phase=32, battery_capacity=46000, efficiency=95, nominal_difference=1, keep_charge_active_duration=40)
2024-03-04 22:08:02,732 - {control.data:245} - {INFO:MainThread} - general_data
GeneralData(chargemode_config=ChargemodeConfig(instant_charging=InstantCharging(phases_to_use=3), pv_charging=PvCharging(bat_prio=False, charging_power_reserve=100, control_range=[-300, 0], feed_in_yield=0, phase_switch_delay=8, phases_to_use=0, rundown_power=0, rundown_soc=50, switch_off_delay=180, switch_off_soc=40, switch_off_threshold=350, switch_on_delay=40, switch_on_soc=60, switch_on_threshold=1400), scheduled_charging=ScheduledCharging(phases_to_use=0), time_charging=TimeCharging(phases_to_use=3), unbalanced_load_limit=18, unbalanced_load=False), control_interval=10, extern_display_mode='local', extern=False, external_buttons_hw=False, grid_protection_active=False, grid_protection_configured=True, grid_protection_random_stop=0, grid_protection_timestamp='', mqtt_bridge=False, prices=Prices(bat=0.0002, cp=0, grid=0.0003, pv=0.00015), range_unit='km', ripple_control_receiver=RippleControlReceiver(get=RippleControlReceiverGet(fault_state=0, fault_str='Kein Fehler.', override_value=100), module=None, overrice_reference=<OverrideReference.CHARGEPOINT: 'chargepoint'>))
2024-03-04 22:08:02,733 - {control.data:246} - {INFO:MainThread} - general_data-display
local
2024-03-04 22:08:02,734 - {control.data:247} - {INFO:MainThread} - graph_data
GraphData(config=Config(duration=120))
2024-03-04 22:08:02,734 - {control.data:248} - {INFO:MainThread} - optional_data
OptionalData(et=Et(get=EtGet(fault_state=0, fault_str='Kein Fehler.', prices={})), int_display=InternalDisplay(active=False, on_if_plugged_in=True, pin_active=False, pin_code='0000', standby=60, theme=<modules.display_themes.cards.config.CardsDisplayTheme object at 0x6c129070>), led=Led(active=False), rfid=Rfid(active=False))
2024-03-04 22:08:02,735 - {control.data:266} - {INFO:MainThread} - pv22
PvData(config=Config(max_ac_out=0), get=Get(currents=[0.0, 0.0, 0.0], daily_exported=3439.0, monthly_exported=0, yearly_exported=0, exported=6457597, fault_state=0, fault_str='Kein Fehler.', power=0))
2024-03-04 22:08:02,735 - {control.data:266} - {INFO:MainThread} - pv23
PvData(config=Config(max_ac_out=0), get=Get(currents=[0.0, 0.0, 0.0], daily_exported=5602.0, monthly_exported=0, yearly_exported=0, exported=44877015, fault_state=0, fault_str='Kein Fehler.', power=0))
2024-03-04 22:08:02,735 - {control.data:266} - {INFO:MainThread} - pv24
PvData(config=Config(max_ac_out=0), get=Get(currents=[0.0, 0.0, 0.0], daily_exported=6002.0, monthly_exported=0, yearly_exported=0, exported=389068.03, fault_state=0, fault_str='Kein Fehler.', power=0))
2024-03-04 22:08:02,738 - {control.data:250} - {INFO:MainThread} - pv_all_data
PvAllData(config=Config(configured=True), get=Get(daily_exported=15043.0, fault_str='Kein Fehler.', fault_state=0, monthly_exported=0, yearly_exported=0, exported=51723680.03, power=0))
2024-03-04 22:08:02,739 - {control.data:266} - {INFO:MainThread} - system
{'update_in_progress': False, 'perform_update': False, 'boot_done': True, 'ip_address': '192.168.178.205', 'dataprotection_acknowledged': True, 'debug_level': 10, 'release_train': 'master', 'lastlivevaluesJson': {'timestamp': 1709586472, 'time': '22:07:52', 'grid': 0.529, 'counter14-power': 0.0, 'counter15-power': 0.002, 'house-power': 0.527, 'charging-all': 0.0, 'pv-all': -0.0, 'cp26-power': 0.0, 'cp27-power': 0.0, 'ev3-soc': 42.0, 'ev15-soc': 85, 'bat-all-power': 0.0, 'bat-all-soc': 0}, 'version': '2.1.3-Alpha.4', 'current_commit': '2024-03-01 08:58:18 +0100 [414810a6a]', 'current_missing_commits': [], 'current_branch': 'master', 'current_branch_commit': '2024-03-01 08:58:18 +0100 [414810a6a]', 'datastore_version': 37, 'usage_terms_acknowledged': True, 'module_update_completed': True}
2024-03-04 22:08:02,741 - {control.data:279} - {INFO:MainThread} - device4
{'name': 'EVU', 'type': 'sma_shm', 'id': 4, 'configuration': {}}
2024-03-04 22:08:02,745 - {control.data:281} - {INFO:MainThread} - component7
{'name': 'EnergyMeter 1.0', 'type': 'counter', 'id': 7, 'configuration': {'serials': None}}
2024-03-04 22:08:02,746 - {control.data:279} - {INFO:MainThread} - device8
{'name': 'Pumpe', 'type': 'json', 'id': 8, 'configuration': {'url': 'http://192.168.178.81/meter/0'}}
2024-03-04 22:08:02,747 - {control.data:281} - {INFO:MainThread} - component14
{'name': 'Pumpe', 'type': 'counter', 'id': 14, 'configuration': {'jq_power': '.power', 'jq_exported': None, 'jq_imported': None, 'jq_powers': [None, None, None], 'jq_currents': [None, None, None]}}
2024-03-04 22:08:02,748 - {control.data:279} - {INFO:MainThread} - device9
{'name': 'Trockner', 'type': 'json', 'id': 9, 'configuration': {'url': 'http://192.168.178.209/meter/0'}}
2024-03-04 22:08:02,749 - {control.data:281} - {INFO:MainThread} - component15
{'name': 'Trockner', 'type': 'counter', 'id': 15, 'configuration': {'jq_power': '.power', 'jq_exported': None, 'jq_imported': None, 'jq_powers': [None, None, None], 'jq_currents': [None, None, None]}}
2024-03-04 22:08:02,749 - {control.data:279} - {INFO:MainThread} - device15
{'name': 'WR Garage (SB3.0)', 'type': 'sma_sunny_boy', 'id': 15, 'configuration': {'ip_address': '192.168.178.204'}}
2024-03-04 22:08:02,750 - {control.data:281} - {INFO:MainThread} - component22
{'name': 'WR Garage', 'type': 'inverter', 'id': 22, 'configuration': {'hybrid': False, 'version': 0}}
2024-03-04 22:08:02,751 - {control.data:279} - {INFO:MainThread} - device16
{'name': 'WR Haus (4000TL-21)', 'type': 'sma_sunny_boy', 'id': 16, 'configuration': {'ip_address': '192.168.178.201'}}
2024-03-04 22:08:02,752 - {control.data:281} - {INFO:MainThread} - component23
{'name': 'WR Haus', 'type': 'inverter', 'id': 23, 'configuration': {'hybrid': False, 'version': 0}}
2024-03-04 22:08:02,753 - {control.data:279} - {INFO:MainThread} - device17
{'name': 'WR Haus (STP6.0)', 'type': 'sma_sunny_boy', 'id': 17, 'configuration': {'ip_address': '192.168.178.206'}}
2024-03-04 22:08:02,755 - {control.data:281} - {INFO:MainThread} - component24
{'name': 'PV STP6.0', 'type': 'inverter', 'id': 24, 'configuration': {'hybrid': True, 'version': 0}}
2024-03-04 22:08:02,756 - {control.data:281} - {INFO:MainThread} - component25
{'name': 'Batterie STP6.0', 'type': 'bat_smart_energy', 'id': 25, 'configuration': {}}
2024-03-04 22:08:02,757 - {control.data:253} - {INFO:MainThread} - 

2024-03-04 22:08:02,758 - {control.algorithm.algorithm:25} - {INFO:MainThread} - # Algorithmus
2024-03-04 22:08:02,758 - {control.algorithm.algorithm:30} - {INFO:MainThread} - **Mindestrom setzen**
2024-03-04 22:08:02,762 - {control.algorithm.min_current:18} - {INFO:MainThread} - Mode-Tuple Chargemode.PV_CHARGING - Chargemode.PV_CHARGING - True, Zähler 7
2024-03-04 22:08:02,765 - {control.algorithm.algorithm:32} - {INFO:MainThread} - **Sollstrom setzen**
2024-03-04 22:08:02,769 - {control.counter:249} - {DEBUG:MainThread} - Anpassen des Regelbereichs -150.0W
2024-03-04 22:08:02,769 - {control.counter:217} - {INFO:MainThread} - Überschuss zur PV-geführten Ladung: -780.0999999999985W
2024-03-04 22:08:02,770 - {control.counter:484} - {DEBUG:MainThread} - Zähler 7: Begrenzung der verbleibenden Leistung auf -780.0999999999985W
2024-03-04 22:08:02,772 - {control.counter:484} - {DEBUG:MainThread} - Zähler 14: Begrenzung der verbleibenden Leistung auf -780.0999999999985W
2024-03-04 22:08:02,773 - {control.counter:484} - {DEBUG:MainThread} - Zähler 15: Begrenzung der verbleibenden Leistung auf -780.0999999999985W
2024-03-04 22:08:02,774 - {control.chargepoint.chargepoint:83} - {INFO:MainThread} - LP 26: Die Ladung kann nicht gestartet werden, da die Einschaltschwelle nicht erreicht wird.
2024-03-04 22:08:02,774 - {control.algorithm.algorithm:43} - {INFO:MainThread} - **Keine Leistung für PV-geführtes Laden übrig.**
2024-03-04 22:08:02,775 - {control.process:23} - {INFO:MainThread} - # Ladung starten.
2024-03-04 22:08:02,777 - {control.process:111} - {INFO:MainThread} - LP26: set current 0 A, state NO_CHARGING_ALLOWED
2024-03-04 22:08:02,781 - {modules.common.component_context:25} - {DEBUG:set current cp26} - Update Komponente ['Ladepunkt']
2024-03-04 22:08:02,783 - {modules.common.component_context:25} - {DEBUG:set current cp27} - Update Komponente ['Ladepunkt']
2024-03-04 22:08:02,790 - {urllib3.connectionpool:227} - {DEBUG:set current cp27} - Starting new HTTP connection (1): 192.168.178.207:80
2024-03-04 22:08:02,810 - {urllib3.connectionpool:452} - {DEBUG:set current cp27} - http://192.168.178.207:80 "POST /connect.php HTTP/1.1" 200 19
2024-03-04 22:08:02,813 - {modules.common.req:11} - {DEBUG:set current cp27} - Get-Response: OK Value:0 accepted
2024-03-04 22:08:02,820 - {control.counter:193} - {INFO:MainThread} - 0W reservierte EVU-Leistung, 0W freigegebene EVU-Leistung
2024-03-04 22:08:05,080 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=smarthome_handler, args=(), kwargs={})
2024-03-04 22:08:10,097 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=smarthome_handler, args=(), kwargs={})
2024-03-04 22:08:10,101 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=handler10Sec, args=(), kwargs={})
2024-03-04 22:08:10,103 - {root:75} - {INFO:MainThread} - # ***Start*** 

Re: Debug Erzeugungszähler SMA hybird Wechselrichter

Verfasst: Di Mär 05, 2024 7:45 am
von mrinas
ich suche immer noch. Was ich bisher gefunden habe.

Normaler SMA Wechselrichter (device16, component23) - hier passt alles:

device16 liefert die Rohwerte (exported=44877015)

Code: Alles auswählen

2024-03-04 22:08:02,205 - {modules.devices.sma_sunny_boy.inverter:73} - {DEBUG:device16} - WR 192.168.178.201: InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=44877015, dc_power=4294967296)
2024-03-04 22:08:02,206 - {modules.common.store._api:26} - {DEBUG:device16} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=44877015, dc_power=4294967296)
component23 gibt die unverändert/unverarbeitet weiter. (exported=44877015)

Code: Alles auswählen

2024-03-04 22:08:02,243 - {modules.common.component_context:25} - {DEBUG:component23} - Update Komponente ['WR Haus']
2024-03-04 22:08:02,244 - {modules.common.store._api:26} - {DEBUG:component23} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=44877015, dc_power=None)
2024-03-04 22:08:02,245 - {modules.common.store._api:30} - {INFO:component23} - Saving InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=44877015, dc_power=None)
hybrider SMA Wechselrichter (device17, wr component24, bat component25) liefert ebenfalls die erwarteten Rohwerte (exported=331114 im InverterState)

Code: Alles auswählen

2024-03-04 22:08:00,885 - {modules.common.component_context:25} - {DEBUG:device17} - Update Komponente ['PV STP6.0']
2024-03-04 22:08:01,893 - {modules.devices.sma_sunny_boy.inverter:73} - {DEBUG:device17} - WR 192.168.178.206: InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=331114, dc_power=0)
2024-03-04 22:08:01,897 - {modules.common.store._api:26} - {DEBUG:device17} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=331114, dc_power=0)
2024-03-04 22:08:01,907 - {modules.common.component_context:25} - {DEBUG:device17} - Update Komponente ['Batterie STP6.0']
2024-03-04 22:08:01,995 - {modules.common.simcount._simcount:37} - {DEBUG:device17} - Previous state: SimCounterState(timestamp=1709586471.6718953, power=-0.0, imported=207745.82564867733, exported=149791.79642494305)
2024-03-04 22:08:01,996 - {modules.common.simcount._calculate:11} - {DEBUG:device17} - time passed: 0.00286778, power1: -0, power2: -0
2024-03-04 22:08:01,996 - {modules.common.simcount._calculate:27} - {DEBUG:device17} - power did not change sign. Total energy: 0
2024-03-04 22:08:01,997 - {modules.common.simcount._simcount:46} - {DEBUG:device17} - imported: 0 Wh, exported: 0 Wh, new state: SimCounterState(timestamp=1709586481.9959111, power=-0.0, imported=207745.82564867733, exported=149791.79642494305)
2024-03-04 22:08:01,998 - {modules.common.store._api:26} - {DEBUG:device17} - Raw data BatState(imported=207745.82564867733, exported=149791.79642494305, power=-0.0, soc=0)
Für component24 wird dann aber ein anderere InverterState geschrieben, woher die vermutlich berechneten/angepassten Werte stammen ist mir nicht klar. Auffällig ist dass aus dem int ein float wird. InverterState hat nun exported=389068.03, nicht mehr 331114. Woher kommt der Unterschied?

Code: Alles auswählen

2024-03-04 22:08:02,250 - {modules.common.component_context:25} - {DEBUG:component24} - Update Komponente ['PV STP6.0']
2024-03-04 22:08:02,282 - {modules.common.store._api:26} - {DEBUG:component24} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=[b]389068.03[/b], dc_power=None)
2024-03-04 22:08:02,294 - {modules.common.store._api:30} - {INFO:component24} - Saving InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=389068.03, dc_power=None)

Re: Debug Erzeugungszähler SMA hybird Wechselrichter

Verfasst: Di Mär 05, 2024 7:57 am
von LenaK
Hier ist die Verrechnung bei Hybrid-Systemen erklärt: https://github.com/openWB/core/wiki/Hyb ... d-Speicher

Im Code werden im ersten Schritt (loadvars.py) geräteweise die Werte der Komponenten abgefragt und im zweiten Schritt werden die Werte komponentenweise an den Broker gepublished. Ggf werden vorher bei Hybrid-Systemen oder virtuellen Zählern noch die Werte verrechnet. (common/store/_inverter.py)

Passen die Leistungen von PV und Speicher? Dann gibt SMA bei Hybrid-Systemen möglicherweise bei der Leistung Wechselrichter-Leistung und Speicher-Leistung aus und bei den Zählerständen PV-Zählerstand und Speicher-Zählerstand.

Re: Debug Erzeugungszähler SMA hybird Wechselrichter

Verfasst: Di Mär 05, 2024 8:03 am
von mrinas
Ja, die Leistungswerte passen. PV liefert aktuell enorme 79W, genau so sehe ich das auch auf der openWB in der Statusseite. Gleiches für Speicherladung/entladung, hier sind mir auch keine diskrepanzen aufgefallen.

In der Hierachie is mein Speicher im Wechselrichter (Wechselrichterleistung wird angegeben).

Re: Debug Erzeugungszähler SMA hybird Wechselrichter

Verfasst: Di Mär 05, 2024 8:12 am
von mrinas
Jup, das wird es wohl sein:
https://github.com/openWB/core/blob/mas ... ter.py#L73

device17 InverterState exported + (device17 BatState imported - device17 BatState exported) = component24 InverterState
331114 + (207745 - 149791) = 389068

SMA liefert wohl Zählerstände welche nicht weiter verrechnet werden müssen.

Re: Debug Erzeugungszähler SMA hybird Wechselrichter

Verfasst: Di Mär 05, 2024 8:28 am
von LenaK
Die Werte, die der Wechselrichter liefert, müssen zusammen passen. Korrekt wäre, wenn bei einem Hybrid-System der Zählerstand für die WR-Leistung ausgegeben wird. Dann würde der Zählerstand auch zur Leistung passen.
Kannst Du bitte in der Doku nachsehen, ob Du ein entsprechendes Register findest?

Re: Debug Erzeugungszähler SMA hybird Wechselrichter

Verfasst: Di Mär 05, 2024 8:38 am
von mrinas
LenaK hat geschrieben: Di Mär 05, 2024 8:28 am Die Werte, die der Wechselrichter liefert, müssen zusammen passen. Korrekt wäre, wenn bei einem Hybrid-System der Zählerstand für die WR-Leistung ausgegeben wird. Dann würde der Zählerstand auch zur Leistung passen.
Kannst Du bitte in der Doku nachsehen, ob Du ein entsprechendes Register findest?
Damit hatte ich begonnen, die hier ausgelesenen Register sind leider die einzigen welche gelieferten Wh abbilden. Konnte keine anderen Register finden.

https://files.sma.de/downloads/PARAMETE ... 9R_V11.zip
AC-Seite > Messwerte > Gesamtertrag

Könnten die Module ggf. ein Flag senden welches die Berechnung dann überspringt?

Re: Debug Erzeugungszähler SMA hybird Wechselrichter

Verfasst: Di Mär 05, 2024 9:11 am
von mrinas
Anderes Thema, ist mir gerade noch aufgefallen. Die Zählerstände des Speichers werden berechnet, nicht ausgelesen.

Im normalen SMA Batteriemodul werden die Register abgefragt, im SmartEnergy wird berechnet/simuliert. Obwohl (zumindest mein hybrider WR) die passenden Register hat. Ich schau' mal nach den anderen hybriden SMA Wechselrichtern, wenn die das Register lt. Doku ebenfalls haben kann ich einen PR einstellen um diese Register auszulesen.