Re: Sekundäres Smartmeter in openWB einbinden
Verfasst: Mi Mär 27, 2024 2:41 pm
Ich sehe das so wie Det. Da stimmt vermutlich etwas in dem Fronius Setup nicht.
Guten Morgen LutzB,
Code: Alles auswählen
Main-Log
2024-03-30 10:15:20,683 - {urllib3.connectionpool:227} - {DEBUG:device2} - Starting new HTTP connection (1): 192.168.178.33:80
2024-03-30 10:15:20,681 - {urllib3.connectionpool:227} - {DEBUG:device0} - Starting new HTTP connection (1): 192.168.178.20:80
2024-03-30 10:15:20,689 - {urllib3.connectionpool:227} - {DEBUG:device3} - Starting new HTTP connection (1): 192.168.178.30:80
2024-03-30 10:15:20,691 - {modules.common.component_context:25} - {DEBUG:set values cp4} - Update Komponente ['Ladepunkt']
2024-03-30 10:15:20,696 - {modules.common.component_context:25} - {DEBUG:set values cp5} - Update Komponente ['Ladepunkt']
2024-03-30 10:15:20,723 - {urllib3.connectionpool:452} - {DEBUG:device2} - http://192.168.178.33:80 "GET /solar_api/v1/GetPowerFlowRealtimeData.fcgi?Scope=System HTTP/1.1" 200 928
2024-03-30 10:15:20,729 - {modules.common.req:11} - {DEBUG:device2} - Get-Response: {
"Body" : {
"Data" : {
"Inverters" : {
"2" : {
"DT" : 112,
"E_Day" : 2858.60009765625,
"E_Total" : 17672170,
"E_Year" : 687084.3125,
"P" : 1639
}
},
"Site" : {
"E_Day" : 2858.60009765625,
"E_Total" : 17672170,
"E_Year" : 687084.3125,
"Meter_Location" : "unknown",
"Mode" : "produce-only",
"P_Akku" : null,
"P_Grid" : null,
"P_Load" : null,
"P_PV" : 1639,
"rel_Autonomy" : null,
"rel_SelfConsumption" : null
},
"Version" : "12"
}
},
"Head" : {
"RequestArguments" : {},
"Status" : {
"Code" : 0,
"Reason" : "",
"UserMessage" : ""
},
"Timestamp" : "2024-03-30T10:15:20+01:00"
}
}
2024-03-30 10:15:20,736 - {modules.common.simcount._simcount:38} - {DEBUG:device2} - Previous state: SimCounterState(timestamp=1711790110.805961, power=-1626.0, imported=0.0, exported=3547809.036792722)
2024-03-30 10:15:20,737 - {modules.common.simcount._calculate:11} - {DEBUG:device2} - time passed: 0.00275849, power1: -1626, power2: -1639
2024-03-30 10:15:20,738 - {modules.common.simcount._calculate:27} - {DEBUG:device2} - power did not change sign. Total energy: -4.50323
2024-03-30 10:15:20,739 - {modules.common.simcount._simcount:53} - {DEBUG:device2} - imported: 0 Wh, exported: 4.50323 Wh, new state: SimCounterState(timestamp=1711790120.736512, power=-1639.0, imported=0.0, exported=3547813.5400217758)
2024-03-30 10:15:20,742 - {modules.common.store._api:26} - {DEBUG:device2} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=-1639.0, exported=3547813.5400217758, dc_power=None)
2024-03-30 10:15:20,754 - {urllib3.connectionpool:452} - {DEBUG:device3} - http://192.168.178.30:80 "GET /solar_api/v1/GetPowerFlowRealtimeData.fcgi?Scope=System HTTP/1.1" 200 912
2024-03-30 10:15:20,759 - {modules.common.req:11} - {DEBUG:device3} - Get-Response: {
"Body" : {
"Data" : {
"Inverters" : {
"1" : {
"DT" : 113,
"E_Day" : 1775,
"E_Total" : 779473.0625,
"E_Year" : 404197.90625,
"P" : 1056
}
},
"Site" : {
"E_Day" : 1775,
"E_Total" : 779473.0625,
"E_Year" : 404197.90625,
"Meter_Location" : "unknown",
"Mode" : "produce-only",
"P_Akku" : null,
"P_Grid" : null,
"P_Load" : null,
"P_PV" : 1056,
"rel_Autonomy" : null,
"rel_SelfConsumption" : null
},
"Version" : "12"
}
},
"Head" : {
"RequestArguments" : {},
"Status" : {
"Code" : 0,
"Reason" : "",
"UserMessage" : ""
},
"Timestamp" : "2024-03-30T10:15:20+01:00"
}
}
2024-03-30 10:15:20,763 - {modules.common.simcount._simcount:38} - {DEBUG:device3} - Previous state: SimCounterState(timestamp=1711790110.812143, power=-1041.0, imported=0.0, exported=800569.3747451135)
2024-03-30 10:15:20,764 - {modules.common.simcount._calculate:11} - {DEBUG:device3} - time passed: 0.00276418, power1: -1041, power2: -1056
2024-03-30 10:15:20,768 - {modules.common.simcount._calculate:27} - {DEBUG:device3} - power did not change sign. Total energy: -2.89824
2024-03-30 10:15:20,773 - {modules.common.simcount._simcount:53} - {DEBUG:device3} - imported: 0 Wh, exported: 2.89824 Wh, new state: SimCounterState(timestamp=1711790120.7631829, power=-1056.0, imported=0.0, exported=800572.2729854527)
2024-03-30 10:15:20,775 - {modules.common.store._api:26} - {DEBUG:device3} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=-1056.0, exported=800572.2729854527, dc_power=None)
2024-03-30 10:15:20,911 - {urllib3.connectionpool:452} - {DEBUG:device0} - http://192.168.178.20:80 "GET /solar_api/v1/GetPowerFlowRealtimeData.fcgi?Scope=System HTTP/1.1" 200 1319
2024-03-30 10:15:20,914 - {modules.common.req:11} - {DEBUG:device0} - Get-Response: {
"Body" : {
"Data" : {
"Inverters" : {
"1" : {
"Battery_Mode" : "normal",
"DT" : 99,
"E_Day" : 3575,
"E_Total" : 26174964,
"E_Year" : 1137385.375,
"P" : 2410,
"SOC" : 100
}
},
"SecondaryMeters" : {
"16711681" : {
"Category" : "METER_CAT_PV_BAT",
"Label" : "Mini-PV",
"MLoc" : 3,
"P" : 1191.0999999999999
}
},
"Site" : {
"BackupMode" : false,
"BatteryStandby" : false,
"E_Day" : 3575,
"E_Total" : 26174963.700000003,
"E_Year" : 1137385.4000000001,
"Meter_Location" : "grid",
"Mode" : "bidirectional",
"P_Akku" : 0,
"P_Grid" : -5494.4700000000003,
"P_Load" : 1893.3700000000003,
"P_PV" : 2470.5,
"rel_Autonomy" : 100,
"rel_SelfConsumption" : 0
},
"Version" : "12"
}
},
"Head" : {
"RequestArguments" : {},
"Status" : {
"Code" : 0,
"Reason" : "",
"UserMessage" : ""
},
"Timestamp" : "2024-03-30T10:15:20+01:00"
}
}
2024-03-30 10:15:20,921 - {modules.common.simcount._simcount:38} - {DEBUG:device0} - Previous state: SimCounterState(timestamp=1711790110.8131812, power=-2376.6, imported=25.200336737494887, exported=5395297.643749076)
2024-03-30 10:15:20,922 - {modules.common.simcount._calculate:11} - {DEBUG:device0} - time passed: 0.00280778, power1: -2376.6, power2: -2470.5
2024-03-30 10:15:20,924 - {modules.common.simcount._calculate:27} - {DEBUG:device0} - power did not change sign. Total energy: -6.8048
2024-03-30 10:15:20,924 - {modules.common.simcount._simcount:53} - {DEBUG:device0} - imported: 0 Wh, exported: 6.8048 Wh, new state: SimCounterState(timestamp=1711790120.9211948, power=-2470.5, imported=25.200336737494887, exported=5395304.448548085)
2024-03-30 10:15:20,925 - {modules.common.store._api:26} - {DEBUG:device0} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=-2470.5, exported=5395304.448548085, dc_power=None)
2024-03-30 10:15:20,928 - {modules.common.fault_state:49} - {ERROR:device0} - Fronius Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr <class 'KeyError'> ('2',), Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/common/configurable_device.py", line 36, in __call__
self.__updater(components_list)
File "/var/www/html/openWB/packages/modules/devices/fronius/device.py", line 55, in update_components
component.update(inverter_response)
File "/var/www/html/openWB/packages/modules/devices/fronius/inverter_secondary.py", line 29, in update
secondary_data = response["Body"]["Data"]["SecondaryMeters"][str(
KeyError: '2'
2024-03-30 10:15:20,931 - {modules.common.fault_state:49} - {ERROR:device0} - Fronius Speicher: FaultState FaultStateLevel.ERROR, FaultStr <class 'KeyError'> ('2',), Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/common/configurable_device.py", line 36, in __call__
self.__updater(components_list)
File "/var/www/html/openWB/packages/modules/devices/fronius/device.py", line 55, in update_components
component.update(inverter_response)
File "/var/www/html/openWB/packages/modules/devices/fronius/inverter_secondary.py", line 29, in update
secondary_data = response["Body"]["Data"]["SecondaryMeters"][str(
KeyError: '2'
2024-03-30 10:15:20,937 - {modules.common.fault_state:49} - {ERROR:device0} - Fronius S0 Zähler: FaultState FaultStateLevel.ERROR, FaultStr <class 'KeyError'> ('2',), Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/common/configurable_device.py", line 36, in __call__
self.__updater(components_list)
File "/var/www/html/openWB/packages/modules/devices/fronius/device.py", line 55, in update_components
component.update(inverter_response)
File "/var/www/html/openWB/packages/modules/devices/fronius/inverter_secondary.py", line 29, in update
secondary_data = response["Body"]["Data"]["SecondaryMeters"][str(
KeyError: '2'
2024-03-30 10:15:20,941 - {modules.common.fault_state:49} - {ERROR:device0} - Sekundärer Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr <class 'KeyError'> ('2',), Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/common/configurable_device.py", line 36, in __call__
self.__updater(components_list)
File "/var/www/html/openWB/packages/modules/devices/fronius/device.py", line 55, in update_components
component.update(inverter_response)
File "/var/www/html/openWB/packages/modules/devices/fronius/inverter_secondary.py", line 29, in update
secondary_data = response["Body"]["Data"]["SecondaryMeters"][str(
KeyError: '2'