Das Auslesen des SoC aus der openWB-Pro scheint ohne Probleme zu funktionieren. Nur mit dem Berechnen in der Standalone klappts noch nicht so ganz gut.
Heute hat auf Grund der scheinenden Sonne das Farhzeug mit Überschuß geladen. Danach habe ich den aktuellen Master installiert. Nach dem Neustart der Standalone habe ich mein Fahrzeug wieder angesteckt und folgendes bemerkt.
Code: Alles auswählen
Main-Log
2023-10-27 15:01:40,698 - {root:70} - {INFO:MainThread} - # ***Start***
2023-10-27 15:01:40,764 - {modules.common.component_context:51} - {DEBUG:device0} - Update Komponenten ['SMA Home Manager Zähler']
2023-10-27 15:01:40,765 - {modules.devices.sma_sunny_boy.device:72} - {DEBUG:device1} - Start device reading {'component1': <modules.devices.sma_sunny_boy.inverter.SmaSunnyBoyInverter object at 0x70bbfad8>}
2023-10-27 15:01:40,767 - {modules.common.component_context:24} - {DEBUG:set values cp2} - Update Komponente ['Ladepunkt']
2023-10-27 15:01:40,777 - {urllib3.connectionpool:227} - {DEBUG:set values cp2} - Starting new HTTP connection (1): 192.168.5.111:80
2023-10-27 15:01:40,780 - {modules.common.component_context:24} - {DEBUG:device1} - Update Komponente ['Sma Sunny Boy/Tripower Wechselrichter']
2023-10-27 15:01:40,796 - {urllib3.connectionpool:452} - {DEBUG:set values cp2} - http://192.168.5.111:80 "GET /connect.php HTTP/1.1" 200 436
2023-10-27 15:01:40,799 - {modules.common.req:11} - {DEBUG:set values cp2} - Get-Response: {"date":"2023:10:27-15:01:40","timestamp":1698411700,"powers":[0,0,0],"power_all":0,"currents":[0,0,0],"voltages":[229.74,229.15,227],"frequency":50.01,"imported":3037112,"exported":2557,"plug_state":true,"charge_state":false,"phases_actual":0,"phases_target":1,"phases_in_use":1,"offered_current":0,"evse_signaling":"unclear\n","v2g_ready":0,"soc_value":45,"soc_timestamp":1698404494,"vehicle_id":"E0:0E:E1:02:56:45","serial":"386723"}
2023-10-27 15:01:40,801 - {modules.common.store._api:26} - {DEBUG:set values cp2} - Raw data ChargepointState(currents=[0, 0, 0], powers=[0, 0, 0], voltages=[229.74, 229.15, 227], frequency=50.01, imported=3037112, exported=2557, power=0, phases_in_use=1, charge_state=False, plug_state=True, rfid=E0:0E:E1:02:56:45, power_factors=[0.0, 0.0, 0.0], soc=45, soc_timestamp=1698404494, evse_current=0)
2023-10-27 15:01:41,305 - {modules.devices.sma_sunny_boy.inverter:72} - {DEBUG:device1} - WR 192.168.5.130: InverterState(currents=[0.0, 0.0, 0.0], power=-376, exported=55698404, dc_power=-354)
2023-10-27 15:01:41,306 - {modules.common.store._api:26} - {DEBUG:device1} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=-376, exported=55698404, dc_power=-354)
2023-10-27 15:01:41,767 - {modules.common.component_context:24} - {DEBUG:device0} - Update Komponente ['SMA Home Manager Zähler']
2023-10-27 15:01:41,768 - {modules.common.store._api:26} - {DEBUG:device0} - Raw data CounterState(currents=[8.994, 0.896, 0.921], powers=[2014.8, 76.9, 81.5], voltages=[226.57, 228.528, 229.241], power_factors=[0.992, 0.6, 0.451], imported=56729140.0, exported=30322159.1, power=2173.2, frequency=50)
2023-10-27 15:01:41,775 - {modules.devices.sma_shm.device:29} - {DEBUG:device0} - All components updated
2023-10-27 15:01:41,783 - {modules.common.component_context:24} - {DEBUG:component1} - Update Komponente ['Sma Sunny Boy/Tripower Wechselrichter']
2023-10-27 15:01:41,785 - {modules.common.store._api:26} - {DEBUG:component1} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=-376, exported=55698404, dc_power=None)
2023-10-27 15:01:41,786 - {modules.common.component_context:24} - {DEBUG:update values cp2} - Update Komponente ['Ladepunkt']
2023-10-27 15:01:41,787 - {modules.common.store._api:30} - {INFO:component1} - Saving InverterState(currents=[0.0, 0.0, 0.0], power=-376, exported=55698404, dc_power=None)
2023-10-27 15:01:41,790 - {modules.common.store._api:30} - {INFO:update values cp2} - Saving ChargepointState(currents=[0, 0, 0], powers=[0, 0, 0], voltages=[229.74, 229.15, 227], frequency=50.01, imported=3037112, exported=2557, power=0, phases_in_use=1, charge_state=False, plug_state=True, rfid=E0:0E:E1:02:56:45, power_factors=[0.0, 0.0, 0.0], soc=45, soc_timestamp=1698404494, evse_current=0)
2023-10-27 15:01:41,921 - {modules.common.component_context:24} - {DEBUG:component0} - Update Komponente ['SMA Home Manager Zähler']
2023-10-27 15:01:41,922 - {modules.common.store._api:30} - {INFO:component0} - Saving CounterState(currents=[8.994, 0.896, 0.921], powers=[2014.8, 76.9, 81.5], voltages=[226.57, 228.528, 229.241], power_factors=[0.992, 0.6, 0.451], imported=56729140.0, exported=30322159.1, power=2173.2, frequency=50)
2023-10-27 15:01:42,053 - {modules.ripple_control_receiver:30} - {DEBUG:MainThread} - RSE1-Status: False, RSE2-Status: False
2023-10-27 15:01:42,055 - {control.counter:138} - {INFO:MainThread} - Verbleibende Ströme an Zähler 0: [26.009999999999998, 34.1, 34.08]A
2023-10-27 15:01:42,057 - {control.counter:161} - {INFO:MainThread} - Verbleibende Leistung an Zähler 0: 21826.8W
2023-10-27 15:01:42,058 - {modules.common.component_context:24} - {DEBUG:MainThread} - Update Komponente ['Ladepunkt']
2023-10-27 15:01:42,059 - {modules.chargepoints.openwb_pro.chargepoint_module:88} - {DEBUG:MainThread} - Die openWB-Pro unterstützt keine RFID-Tags.
2023-10-27 15:01:42,062 - {control.chargepoint.chargepoint:699} - {DEBUG:MainThread} - EV-Phasenzahl beschränkt die nutzbaren Phasen auf 3
2023-10-27 15:01:42,063 - {control.chargepoint.chargepoint:682} - {DEBUG:MainThread} - Phasenzahl Lademodus: 1
2023-10-27 15:01:42,064 - {control.ev:572} - {DEBUG:MainThread} - Keine Ladung, da kein Zeitfenster für Zeitladen aktiv ist.
2023-10-27 15:01:42,067 - {control.chargepoint.chargepoint:898} - {INFO:MainThread} - LP 2, EV: Kona (EV-Nr.1): Theoretisch benötigter Strom 6A, Lademodus pv_charging, Submodus: Chargemode.PV_CHARGING, Phasen: 1, Priorität: False, max. Ist-Strom: 0
2023-10-27 15:01:42,070 - {modules.common.simcount._simcount:38} - {DEBUG:MainThread} - Previous state: SimCounterState(timestamp=1698411691.3605778, power=4761.5, imported=1188958.1669533586, exported=0)
2023-10-27 15:01:42,072 - {modules.common.simcount._calculate:13} - {DEBUG:MainThread} - time passed: 0.00297498, power1: 4761.5, power2: 2549.2
2023-10-27 15:01:42,073 - {modules.common.simcount._calculate:29} - {DEBUG:MainThread} - power did not change sign. Total energy: 10.8746
2023-10-27 15:01:42,073 - {modules.common.simcount._simcount:47} - {DEBUG:MainThread} - imported: 10.8746 Wh, exported: 0 Wh, new state: SimCounterState(timestamp=1698411702.0705118, power=2549.2, imported=1188969.04155259, exported=0)
2023-10-27 15:01:42,076 - {control.data:236} - {INFO:MainThread} - bat_all_data
BatAllData(config=Config(configured=False), get=Get(soc=0, daily_exported=0, daily_imported=0, imported=0, exported=0, power=0), set=Set(charging_power_left=0, switch_on_soc_reached=False))
2023-10-27 15:01:42,076 - {control.data:237} - {INFO:MainThread} - cp_all_data
AllChargepointData(get=AllGet(daily_imported=6230, daily_exported=8, power=0, imported=3037112, exported=2557))
2023-10-27 15:01:42,078 - {control.data:266} - {INFO:MainThread} - cp2
ChargepointData(control_parameter=ControlParameter(chargemode=<Chargemode.PV_CHARGING: 'pv_charging'>, current_plan=None, imported_at_plan_start=3037112, imported_instant_charging=None, limit=None, phases=1, prio=False, 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=49.0), currents=[0, 0, 0], daily_imported=6230, daily_exported=8, evse_current=0, exported=2557, fault_str='Kein Fehler.', fault_state=0, imported=3037112, phases_in_use=1, plug_state=True, power=0, rfid_timestamp=None, rfid=None, soc=45, soc_timestamp=1698404494, state_str=None, voltages=[229.74, 229.15, 227]), set=Set(change_ev_permitted=[True, ''], charging_ev=1, charging_ev_prev=1, current=0, energy_to_charge=0, loadmanagement_available=True, log=Log(chargemode_log_entry='_', imported_at_mode_switch=3037112, imported_at_plugtime=3037112, imported_since_mode_switch=0, imported_since_plugged=0, range_charged=0, time_charged='00:00', timestamp_start_charging=None), manual_lock=False, phases_to_use=1, plug_state_prev=True, plug_time='10/27/2023, 15:01:31', required_power=1380.0, rfid='E0:0E:E1:02:56:45', target_current=0, charging_ev_data=<control.ev.Ev object at 0x715723e8>), config=Config(configuration={'ip_address': '192.168.5.111', 'duo_num': 0}, ev=1, name='Garage', type='openwb_pro', template=1, connected_phases=3, phase_1=1, auto_phase_switch_hw=True, control_pilot_interruption_hw=True, id=2))
2023-10-27 15:01:42,079 - {control.data:266} - {INFO:MainThread} - cpt0
CpTemplateData(autolock=Autolock(active=False, plans={}, wait_for_charging_end=False), id=0, max_current_multi_phases=32, max_current_single_phase=32, name='Standard Ladepunkt-Vorlage', rfid_enabling=False, valid_tags=[])
2023-10-27 15:01:42,080 - {control.data:266} - {INFO:MainThread} - cpt1
CpTemplateData(autolock=Autolock(active=False, plans={}, wait_for_charging_end=False), id=1, max_current_multi_phases=16, max_current_single_phase=16, name='openWB Pro', rfid_enabling=True, valid_tags=['E0:0E:E1:02:56:45'])
2023-10-27 15:01:42,081 - {control.data:266} - {INFO:MainThread} - counter0
CounterData(config=Config(max_currents=[35, 35, 35], max_total_power=24000), get=Get(powers=[2014.8, 76.9, 81.5], currents=[8.99, 0.9, 0.92], voltages=[226.57, 228.53, 229.24], power_factors=[0.99, 0.6, 0.45], unbalanced_load=0, frequency=50, daily_exported=1419.9, daily_imported=11291.699999996, imported=56729140.0, exported=30322159.1, fault_state=0, fault_str='Kein Fehler.', power=2173.2), set=Set(error_counter=0, reserved_surplus=0, released_surplus=0, raw_power_left=21826.8, raw_currents_left=[26.009999999999998, 34.1, 34.08], surplus_power_left=0, state_str=''))
2023-10-27 15:01:42,082 - {control.data:241} - {INFO:MainThread} - counter_all_data
CounterAllData(config=Config(reserve_for_not_charging=False), get=Get(hierarchy=[{'id': 0, 'type': 'counter', 'children': [{'id': 1, 'type': 'inverter', 'children': []}, {'id': 2, 'type': 'cp', 'children': []}]}]), set=Set(loadmanagement_active=False, home_consumption=2549.2, invalid_home_consumption=0, daily_yield_home_consumption=16098.4981825692, imported_home_consumption=1188969.04155259, disengageable_smarthome_power=0))
2023-10-27 15:01:42,083 - {control.data:266} - {INFO:MainThread} - ct0
ChargeTemplateData(name='Standard-Ladeprofil-Vorlage', disable_after_unplug=False, prio=False, load_default=False, time_charging=TimeCharging(active=False, plans={}), chargemode=Chargemode(selected='pv_charging', pv_charging=PvCharging(min_soc_current=10, min_current=0, feed_in_limit=False, min_soc=0, max_soc=101), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=1000, soc=50))))
2023-10-27 15:01:42,085 - {control.data:266} - {INFO:MainThread} - ct1
ChargeTemplateData(name='Kona-Lade-Profil', disable_after_unplug=False, prio=False, load_default=False, time_charging=TimeCharging(active=True, plans={'0': TimeChargingPlan(active=True, frequency=Frequency(selected='weekly', once=['2021-11-01', '2021-11-05'], weekly=[True, True, True, True, True, False, False]), time=['06:50', '07:15'], name='Vorklimatisierung 6:45-7:15', current=6, limit=Limit(selected='none', amount=1000, soc=55))}), chargemode=Chargemode(selected='pv_charging', pv_charging=PvCharging(min_soc_current=8, min_current=0, feed_in_limit=False, min_soc=25, max_soc=101), scheduled_charging=ScheduledCharging(plans={'0': ScheduledChargingPlan(active=True, frequency=Frequency(selected='daily', once=['2021-11-01', '2021-11-05'], weekly=[False, False, False, False, False, False, False]), current=8, name='Zielladen morgens 6:30', limit=ScheduledLimit(selected='soc', amount=1000, soc_limit=45, soc_scheduled=40), time='06:30')}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=1000, soc=50))))
2023-10-27 15:01:42,086 - {control.data:266} - {INFO:MainThread} - ev0
EvData(set=Set(ev_template=EvTemplate(data=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=1, keep_charge_active_duration=40), et_num=0), 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=0, fault_state=0, fault_str='Kein Fehler.'))
2023-10-27 15:01:42,088 - {control.data:266} - {INFO:MainThread} - ev1
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='Kona-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=11800, min_current=6, max_current_single_phase=16, battery_capacity=39000, efficiency=88, nominal_difference=3, keep_charge_active_duration=40), et_num=0), soc_error_counter=0), charge_template=1, ev_template=1, name='Kona', tag_id=['E0:0E:E1:02:56:45'], get=Get(soc=49.0, soc_timestamp='10/27/2023, 14:57:34', force_soc_update=True, range=156.0, fault_state=2, fault_str="<class 'UnboundLocalError'> local variable 'response' referenced before assignment"))
2023-10-27 15:01:42,091 - {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=16, battery_capacity=82000, efficiency=90, nominal_difference=2, keep_charge_active_duration=40)
2023-10-27 15:01:42,092 - {control.data:266} - {INFO:MainThread} - et1
EvTemplateData(name='Kona-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=11800, min_current=6, max_current_single_phase=16, battery_capacity=39000, efficiency=88, nominal_difference=3, keep_charge_active_duration=40)
2023-10-27 15:01:42,092 - {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=0, control_range=[-230, 230], feed_in_yield=3000, phase_switch_delay=1, phases_to_use=0, rundown_power=0, rundown_soc=100, switch_off_delay=60, switch_off_soc=40, switch_off_threshold=50, switch_on_delay=30, switch_on_soc=60, switch_on_threshold=1300), scheduled_charging=ScheduledCharging(phases_to_use=0), time_charging=TimeCharging(phases_to_use=1), 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, price_kwh=0.305, range_unit='km', ripple_control_receiver=RippleControlReceiver(configured=True, r1_active=False, r2_active=False))
2023-10-27 15:01:42,093 - {control.data:246} - {INFO:MainThread} - general_data-display
local
2023-10-27 15:01:42,096 - {control.data:247} - {INFO:MainThread} - graph_data
GraphData(config=Config(duration=120))
2023-10-27 15:01:42,097 - {control.data:248} - {INFO:MainThread} - optional_data
OptionalData(et=Et(active=False, config=EtConfig(max_price=0, provider={}), get=EtGet(price=0, price_list=[])), 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 0x70bf9fb8>), led=Led(active=False), rfid=Rfid(active=True))
2023-10-27 15:01:42,098 - {control.data:266} - {INFO:MainThread} - pv1
PvData(config=Config(max_ac_out=0), get=Get(currents=[0.0, 0.0, 0.0], daily_exported=12152, monthly_exported=0, yearly_exported=0, exported=55698404, fault_state=0, fault_str='Kein Fehler.', power=-376))
2023-10-27 15:01:42,100 - {control.data:250} - {INFO:MainThread} - pv_all_data
PvAllData(config=Config(configured=True), get=Get(daily_exported=12152, monthly_exported=0, yearly_exported=0, exported=55698404, power=-376))
2023-10-27 15:01:42,102 - {control.data:266} - {INFO:MainThread} - system
{'update_in_progress': False, 'perform_update': False, 'ip_address': '192.168.5.110', 'current_commit': '2023-10-27 14:04:58 +0200 [8778d1eed]', 'current_branch': 'master', 'current_branch_commit': '2023-10-27 14:04:58 +0200 [8778d1eed]', 'current_missing_commits': [], 'boot_done': True, 'datastore_version': 25, 'dataprotection_acknowledged': True, 'usage_terms_acknowledged': True, 'release_train': 'master', 'version': '2.1.2-Alpha.2', 'lastlivevaluesJson': {'timestamp': 1698411691, 'time': '15:01:31', 'grid': 4.391, 'house-power': 4.761, 'charging-all': 0.0, 'pv-all': 0.371, 'cp2-power': 0.0, 'ev1-soc': 49.0}, 'debug_level': 10, 'module_update_completed': True}
2023-10-27 15:01:42,105 - {control.data:279} - {INFO:MainThread} - device0
{'name': 'SMA Home Manager', 'type': 'sma_shm', 'id': 0, 'configuration': {}}
2023-10-27 15:01:42,105 - {control.data:281} - {INFO:MainThread} - component0
{'name': 'SMA Home Manager Zähler', 'type': 'counter', 'id': 0, 'configuration': {'serials': None}}
2023-10-27 15:01:42,107 - {control.data:279} - {INFO:MainThread} - device1
{'name': 'SMA Sunny Boy', 'type': 'sma_sunny_boy', 'id': 1, 'configuration': {'ip_address': '192.168.5.130'}}
2023-10-27 15:01:42,109 - {control.data:281} - {INFO:MainThread} - component1
{'name': 'Sma Sunny Boy/Tripower Wechselrichter', 'type': 'inverter', 'id': 1, 'configuration': {'hybrid': False, 'version': 0}}
2023-10-27 15:01:42,110 - {control.data:253} - {INFO:MainThread} -
2023-10-27 15:01:42,111 - {control.algorithm.algorithm:25} - {INFO:MainThread} - # Algorithmus
2023-10-27 15:01:42,112 - {control.algorithm.algorithm:30} - {INFO:MainThread} - **Mindestrom setzen**
2023-10-27 15:01:42,115 - {control.algorithm.min_current:18} - {INFO:MainThread} - Mode-Tuple Chargemode.PV_CHARGING - Chargemode.PV_CHARGING - False, Zähler 0
2023-10-27 15:01:42,119 - {control.algorithm.algorithm:32} - {INFO:MainThread} - **Sollstrom setzen**
2023-10-27 15:01:42,121 - {control.counter:211} - {INFO:MainThread} - Überschuss zur PV-geführten Ladung: 0W
2023-10-27 15:01:42,123 - {control.counter:457} - {DEBUG:MainThread} - Zähler 0: Begrenzung der verbleibenden Leistung auf 0W
2023-10-27 15:01:42,124 - {control.chargepoint.chargepoint:277} - {INFO:MainThread} - LP 2: Die Ladung kann nicht gestartet werden, da die Einschaltschwelle nicht erreicht wird.
2023-10-27 15:01:42,125 - {control.algorithm.algorithm:43} - {INFO:MainThread} - **Keine Leistung für PV-geführtes Laden übrig.**
2023-10-27 15:01:42,126 - {control.process:23} - {INFO:MainThread} - # Ladung starten.
2023-10-27 15:01:42,128 - {control.process:111} - {INFO:MainThread} - LP2: set current 0 A, state NO_CHARGING_ALLOWED
2023-10-27 15:01:42,134 - {modules.common.component_context:24} - {DEBUG:set current cp2} - Update Komponente ['Ladepunkt']
2023-10-27 15:01:42,141 - {urllib3.connectionpool:227} - {DEBUG:set current cp2} - Starting new HTTP connection (1): 192.168.5.111:80
2023-10-27 15:01:42,159 - {urllib3.connectionpool:452} - {DEBUG:set current cp2} - http://192.168.5.111:80 "POST /connect.php HTTP/1.1" 200 19
2023-10-27 15:01:42,162 - {modules.common.req:11} - {DEBUG:set current cp2} - Get-Response: OK Value:0 accepted
2023-10-27 15:01:42,165 - {control.counter:186} - {INFO:MainThread} - 0W reservierte EVU-Leistung, 0W freigegebene EVU-Leistung
2023-10-27 15:01:42,357 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=smarthome_handler, args=(), kwargs={})
2023-10-27 15:01:45,378 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=smarthome_handler, args=(), kwargs={})
2023-10-27 15:01:50,392 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=handler10Sec, args=(), kwargs={})
2023-10-27 15:01:50,394 - {root:70} - {INFO:MainThread} - # ***Start***
2023-10-27 15:01:50,460 - {modules.common.component_context:51} - {DEBUG:device0} - Update Komponenten ['SMA Home Manager Zähler']
2023-10-27 15:01:50,461 - {modules.devices.sma_sunny_boy.device:72} - {DEBUG:device1} - Start device reading {'component1': <modules.devices.sma_sunny_boy.inverter.SmaSunnyBoyInverter object at 0x70bbfad8>}
2023-10-27 15:01:50,462 - {modules.common.component_context:24} - {DEBUG:set values cp2} - Update Komponente ['Ladepunkt']
2023-10-27 15:01:50,470 - {urllib3.connectionpool:227} - {DEBUG:set values cp2} - Starting new HTTP connection (1): 192.168.5.111:80
2023-10-27 15:01:50,470 - {modules.common.component_context:24} - {DEBUG:device1} - Update Komponente ['Sma Sunny Boy/Tripower Wechselrichter']
2023-10-27 15:01:50,511 - {urllib3.connectionpool:452} - {DEBUG:set values cp2} - http://192.168.5.111:80 "GET /connect.php HTTP/1.1" 200 436
2023-10-27 15:01:50,513 - {modules.common.req:11} - {DEBUG:set values cp2} - Get-Response: {"date":"2023:10:27-15:01:50","timestamp":1698411710,"powers":[0,0,0],"power_all":0,"currents":[0,0,0],"voltages":[229.74,229.15,227],"frequency":50.01,"imported":3037112,"exported":2557,"plug_state":true,"charge_state":false,"phases_actual":0,"phases_target":1,"phases_in_use":1,"offered_current":0,"evse_signaling":"unclear\n","v2g_ready":0,"soc_value":45,"soc_timestamp":1698404494,"vehicle_id":"E0:0E:E1:02:56:45","serial":"386723"}
2023-10-27 15:01:50,515 - {modules.common.store._api:26} - {DEBUG:set values cp2} - Raw data ChargepointState(currents=[0, 0, 0], powers=[0, 0, 0], voltages=[229.74, 229.15, 227], frequency=50.01, imported=3037112, exported=2557, power=0, phases_in_use=1, charge_state=False, plug_state=True, rfid=E0:0E:E1:02:56:45, power_factors=[0.0, 0.0, 0.0], soc=45, soc_timestamp=1698404494, evse_current=0)
2023-10-27 15:01:50,766 - {modules.common.component_context:24} - {DEBUG:device0} - Update Komponente ['SMA Home Manager Zähler']
2023-10-27 15:01:50,768 - {modules.common.store._api:26} - {DEBUG:device0} - Raw data CounterState(currents=[8.998, 0.769, 0.917], powers=[2018.9, 44.7, 80.1], voltages=[226.927, 228.707, 229.36], power_factors=[0.992, 0.38, 0.445], imported=56729145.4, exported=30322159.1, power=2143.7, frequency=50)
2023-10-27 15:01:50,775 - {modules.devices.sma_shm.device:29} - {DEBUG:device0} - All components updated
2023-10-27 15:01:51,076 - {modules.devices.sma_sunny_boy.inverter:72} - {DEBUG:device1} - WR 192.168.5.130: InverterState(currents=[0.0, 0.0, 0.0], power=-376, exported=55698406, dc_power=-355)
2023-10-27 15:01:51,077 - {modules.common.store._api:26} - {DEBUG:device1} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=-376, exported=55698406, dc_power=-355)
2023-10-27 15:01:51,085 - {modules.common.component_context:24} - {DEBUG:component1} - Update Komponente ['Sma Sunny Boy/Tripower Wechselrichter']
2023-10-27 15:01:51,087 - {modules.common.store._api:26} - {DEBUG:component1} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=-376, exported=55698406, dc_power=None)
2023-10-27 15:01:51,088 - {modules.common.component_context:24} - {DEBUG:update values cp2} - Update Komponente ['Ladepunkt']
2023-10-27 15:01:51,092 - {modules.common.store._api:30} - {INFO:component1} - Saving InverterState(currents=[0.0, 0.0, 0.0], power=-376, exported=55698406, dc_power=None)
2023-10-27 15:01:51,095 - {modules.common.store._api:30} - {INFO:update values cp2} - Saving ChargepointState(currents=[0, 0, 0], powers=[0, 0, 0], voltages=[229.74, 229.15, 227], frequency=50.01, imported=3037112, exported=2557, power=0, phases_in_use=1, charge_state=False, plug_state=True, rfid=E0:0E:E1:02:56:45, power_factors=[0.0, 0.0, 0.0], soc=45, soc_timestamp=1698404494, evse_current=0)
2023-10-27 15:01:51,220 - {modules.common.component_context:24} - {DEBUG:component0} - Update Komponente ['SMA Home Manager Zähler']
2023-10-27 15:01:51,223 - {modules.common.store._api:30} - {INFO:component0} - Saving CounterState(currents=[8.998, 0.769, 0.917], powers=[2018.9, 44.7, 80.1], voltages=[226.927, 228.707, 229.36], power_factors=[0.992, 0.38, 0.445], imported=56729145.4, exported=30322159.1, power=2143.7, frequency=50)
2023-10-27 15:01:51,355 - {modules.ripple_control_receiver:30} - {DEBUG:MainThread} - RSE1-Status: False, RSE2-Status: False
2023-10-27 15:01:51,362 - {control.counter:138} - {INFO:MainThread} - Verbleibende Ströme an Zähler 0: [26.0, 34.23, 34.08]A
2023-10-27 15:01:51,364 - {control.counter:161} - {INFO:MainThread} - Verbleibende Leistung an Zähler 0: 21856.3W
2023-10-27 15:01:51,365 - {modules.common.component_context:24} - {DEBUG:MainThread} - Update Komponente ['Ladepunkt']
2023-10-27 15:01:51,366 - {modules.chargepoints.openwb_pro.chargepoint_module:88} - {DEBUG:MainThread} - Die openWB-Pro unterstützt keine RFID-Tags.
2023-10-27 15:01:51,368 - {control.chargepoint.chargepoint:699} - {DEBUG:MainThread} - EV-Phasenzahl beschränkt die nutzbaren Phasen auf 3
2023-10-27 15:01:51,370 - {control.chargepoint.chargepoint:682} - {DEBUG:MainThread} - Phasenzahl Lademodus: 1
2023-10-27 15:01:51,372 - {control.ev:572} - {DEBUG:MainThread} - Keine Ladung, da kein Zeitfenster für Zeitladen aktiv ist.
2023-10-27 15:01:51,376 - {control.chargepoint.chargepoint:898} - {INFO:MainThread} - LP 2, EV: Kona (EV-Nr.1): Theoretisch benötigter Strom 6A, Lademodus pv_charging, Submodus: Chargemode.PV_CHARGING, Phasen: 1, Priorität: False, max. Ist-Strom: 0
2023-10-27 15:01:51,385 - {modules.common.simcount._simcount:38} - {DEBUG:MainThread} - Previous state: SimCounterState(timestamp=1698411702.0705118, power=2549.2, imported=1188969.04155259, exported=0)
2023-10-27 15:01:51,389 - {modules.common.simcount._calculate:13} - {DEBUG:MainThread} - time passed: 0.00258753, power1: 2549.2, power2: 2519.7
2023-10-27 15:01:51,391 - {modules.common.simcount._calculate:29} - {DEBUG:MainThread} - power did not change sign. Total energy: 6.55796
2023-10-27 15:01:51,392 - {modules.common.simcount._simcount:47} - {DEBUG:MainThread} - imported: 6.55796 Wh, exported: 0 Wh, new state: SimCounterState(timestamp=1698411711.3856184, power=2519.7, imported=1188975.5995170341, exported=0)
2023-10-27 15:01:51,396 - {control.data:236} - {INFO:MainThread} - bat_all_data
BatAllData(config=Config(configured=False), get=Get(soc=0, daily_exported=0, daily_imported=0, imported=0, exported=0, power=0), set=Set(charging_power_left=0, switch_on_soc_reached=False))
2023-10-27 15:01:51,397 - {control.data:237} - {INFO:MainThread} - cp_all_data
AllChargepointData(get=AllGet(daily_imported=6230, daily_exported=8, power=0, imported=3037112, exported=2557))
2023-10-27 15:01:51,398 - {control.data:266} - {INFO:MainThread} - cp2
ChargepointData(control_parameter=ControlParameter(chargemode=<Chargemode.PV_CHARGING: 'pv_charging'>, current_plan=None, imported_at_plan_start=3037112, imported_instant_charging=None, limit=None, phases=1, prio=False, 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=49.0), currents=[0, 0, 0], daily_imported=6230, daily_exported=8, evse_current=0, exported=2557, fault_str='Kein Fehler.', fault_state=0, imported=3037112, phases_in_use=1, plug_state=True, power=0, rfid_timestamp=None, rfid=None, soc=45, soc_timestamp=1698404494, state_str=None, voltages=[229.74, 229.15, 227]), set=Set(change_ev_permitted=[True, ''], charging_ev=1, charging_ev_prev=1, current=0, energy_to_charge=0, loadmanagement_available=True, log=Log(chargemode_log_entry='_', imported_at_mode_switch=3037112, imported_at_plugtime=3037112, imported_since_mode_switch=0, imported_since_plugged=0, range_charged=0, time_charged='00:00', timestamp_start_charging=None), manual_lock=False, phases_to_use=1, plug_state_prev=True, plug_time='10/27/2023, 15:01:31', required_power=1380.0, rfid='E0:0E:E1:02:56:45', target_current=0, charging_ev_data=<control.ev.Ev object at 0x70bf9718>), config=Config(configuration={'ip_address': '192.168.5.111', 'duo_num': 0}, ev=1, name='Garage', type='openwb_pro', template=1, connected_phases=3, phase_1=1, auto_phase_switch_hw=True, control_pilot_interruption_hw=True, id=2))
2023-10-27 15:01:51,401 - {control.data:266} - {INFO:MainThread} - cpt0
CpTemplateData(autolock=Autolock(active=False, plans={}, wait_for_charging_end=False), id=0, max_current_multi_phases=32, max_current_single_phase=32, name='Standard Ladepunkt-Vorlage', rfid_enabling=False, valid_tags=[])
2023-10-27 15:01:51,403 - {control.data:266} - {INFO:MainThread} - cpt1
CpTemplateData(autolock=Autolock(active=False, plans={}, wait_for_charging_end=False), id=1, max_current_multi_phases=16, max_current_single_phase=16, name='openWB Pro', rfid_enabling=True, valid_tags=['E0:0E:E1:02:56:45'])
2023-10-27 15:01:51,403 - {control.data:266} - {INFO:MainThread} - counter0
CounterData(config=Config(max_currents=[35, 35, 35], max_total_power=24000), get=Get(powers=[2018.9, 44.7, 80.1], currents=[9.0, 0.77, 0.92], voltages=[226.93, 228.71, 229.36], power_factors=[0.99, 0.38, 0.45], unbalanced_load=0, frequency=50, daily_exported=1419.9, daily_imported=11291.699999996, imported=56729145.4, exported=30322159.1, fault_state=0, fault_str='Kein Fehler.', power=2143.7), set=Set(error_counter=0, reserved_surplus=0, released_surplus=0, raw_power_left=21856.3, raw_currents_left=[26.0, 34.23, 34.08], surplus_power_left=0, state_str=''))
2023-10-27 15:01:51,404 - {control.data:241} - {INFO:MainThread} - counter_all_data
CounterAllData(config=Config(reserve_for_not_charging=False), get=Get(hierarchy=[{'id': 0, 'type': 'counter', 'children': [{'id': 1, 'type': 'inverter', 'children': []}, {'id': 2, 'type': 'cp', 'children': []}]}]), set=Set(loadmanagement_active=False, home_consumption=2519.7, invalid_home_consumption=0, daily_yield_home_consumption=16098.4981825692, imported_home_consumption=1188975.5995170341, disengageable_smarthome_power=0))
2023-10-27 15:01:51,404 - {control.data:266} - {INFO:MainThread} - ct0
ChargeTemplateData(name='Standard-Ladeprofil-Vorlage', disable_after_unplug=False, prio=False, load_default=False, time_charging=TimeCharging(active=False, plans={}), chargemode=Chargemode(selected='pv_charging', pv_charging=PvCharging(min_soc_current=10, min_current=0, feed_in_limit=False, min_soc=0, max_soc=101), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=1000, soc=50))))
2023-10-27 15:01:51,405 - {control.data:266} - {INFO:MainThread} - ct1
ChargeTemplateData(name='Kona-Lade-Profil', disable_after_unplug=False, prio=False, load_default=False, time_charging=TimeCharging(active=True, plans={'0': TimeChargingPlan(active=True, frequency=Frequency(selected='weekly', once=['2021-11-01', '2021-11-05'], weekly=[True, True, True, True, True, False, False]), time=['06:50', '07:15'], name='Vorklimatisierung 6:45-7:15', current=6, limit=Limit(selected='none', amount=1000, soc=55))}), chargemode=Chargemode(selected='pv_charging', pv_charging=PvCharging(min_soc_current=8, min_current=0, feed_in_limit=False, min_soc=25, max_soc=101), scheduled_charging=ScheduledCharging(plans={'0': ScheduledChargingPlan(active=True, frequency=Frequency(selected='daily', once=['2021-11-01', '2021-11-05'], weekly=[False, False, False, False, False, False, False]), current=8, name='Zielladen morgens 6:30', limit=ScheduledLimit(selected='soc', amount=1000, soc_limit=45, soc_scheduled=40), time='06:30')}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=1000, soc=50))))
2023-10-27 15:01:51,406 - {control.data:266} - {INFO:MainThread} - ev0
EvData(set=Set(ev_template=EvTemplate(data=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=1, keep_charge_active_duration=40), et_num=0), 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=0, fault_state=0, fault_str='Kein Fehler.'))
2023-10-27 15:01:51,406 - {control.data:266} - {INFO:MainThread} - ev1
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='Kona-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=11800, min_current=6, max_current_single_phase=16, battery_capacity=39000, efficiency=88, nominal_difference=3, keep_charge_active_duration=40), et_num=0), soc_error_counter=1), charge_template=1, ev_template=1, name='Kona', tag_id=['E0:0E:E1:02:56:45'], get=Get(soc=50.15, soc_timestamp='10/27/2023, 15:01:44', force_soc_update=False, range=156.0, fault_state=0, fault_str='Kein Fehler.'))
2023-10-27 15:01:51,406 - {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=16, battery_capacity=82000, efficiency=90, nominal_difference=2, keep_charge_active_duration=40)
2023-10-27 15:01:51,407 - {control.data:266} - {INFO:MainThread} - et1
EvTemplateData(name='Kona-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=11800, min_current=6, max_current_single_phase=16, battery_capacity=39000, efficiency=88, nominal_difference=3, keep_charge_active_duration=40)
2023-10-27 15:01:51,407 - {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=0, control_range=[-230, 230], feed_in_yield=3000, phase_switch_delay=1, phases_to_use=0, rundown_power=0, rundown_soc=100, switch_off_delay=60, switch_off_soc=40, switch_off_threshold=50, switch_on_delay=30, switch_on_soc=60, switch_on_threshold=1300), scheduled_charging=ScheduledCharging(phases_to_use=0), time_charging=TimeCharging(phases_to_use=1), 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, price_kwh=0.305, range_unit='km', ripple_control_receiver=RippleControlReceiver(configured=True, r1_active=False, r2_active=False))
2023-10-27 15:01:51,408 - {control.data:246} - {INFO:MainThread} - general_data-display
local
2023-10-27 15:01:51,409 - {control.data:247} - {INFO:MainThread} - graph_data
GraphData(config=Config(duration=120))
2023-10-27 15:01:51,409 - {control.data:248} - {INFO:MainThread} - optional_data
OptionalData(et=Et(active=False, config=EtConfig(max_price=0, provider={}), get=EtGet(price=0, price_list=[])), 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 0x70bf9ec8>), led=Led(active=False), rfid=Rfid(active=True))
2023-10-27 15:01:51,413 - {control.data:266} - {INFO:MainThread} - pv1
PvData(config=Config(max_ac_out=0), get=Get(currents=[0.0, 0.0, 0.0], daily_exported=12152, monthly_exported=0, yearly_exported=0, exported=55698406, fault_state=0, fault_str='Kein Fehler.', power=-376))
2023-10-27 15:01:51,416 - {control.data:250} - {INFO:MainThread} - pv_all_data
PvAllData(config=Config(configured=True), get=Get(daily_exported=12152, monthly_exported=0, yearly_exported=0, exported=55698406, power=-376))
2023-10-27 15:01:51,418 - {control.data:266} - {INFO:MainThread} - system
{'update_in_progress': False, 'perform_update': False, 'ip_address': '192.168.5.110', 'current_commit': '2023-10-27 14:04:58 +0200 [8778d1eed]', 'current_branch': 'master', 'current_branch_commit': '2023-10-27 14:04:58 +0200 [8778d1eed]', 'current_missing_commits': [], 'boot_done': True, 'datastore_version': 25, 'dataprotection_acknowledged': True, 'usage_terms_acknowledged': True, 'release_train': 'master', 'version': '2.1.2-Alpha.2', 'lastlivevaluesJson': {'timestamp': 1698411702, 'time': '15:01:42', 'grid': 2.173, 'house-power': 2.549, 'charging-all': 0.0, 'pv-all': 0.376, 'cp2-power': 0.0, 'ev1-soc': 49.0}, 'debug_level': 10, 'module_update_completed': True}
2023-10-27 15:01:51,423 - {control.data:279} - {INFO:MainThread} - device0
{'name': 'SMA Home Manager', 'type': 'sma_shm', 'id': 0, 'configuration': {}}
2023-10-27 15:01:51,424 - {control.data:281} - {INFO:MainThread} - component0
{'name': 'SMA Home Manager Zähler', 'type': 'counter', 'id': 0, 'configuration': {'serials': None}}
2023-10-27 15:01:51,431 - {control.data:279} - {INFO:MainThread} - device1
{'name': 'SMA Sunny Boy', 'type': 'sma_sunny_boy', 'id': 1, 'configuration': {'ip_address': '192.168.5.130'}}
2023-10-27 15:01:51,433 - {control.data:281} - {INFO:MainThread} - component1
{'name': 'Sma Sunny Boy/Tripower Wechselrichter', 'type': 'inverter', 'id': 1, 'configuration': {'hybrid': False, 'version': 0}}
2023-10-27 15:01:51,437 - {control.data:253} - {INFO:MainThread} -
2023-10-27 15:01:51,438 - {control.algorithm.algorithm:25} - {INFO:MainThread} - # Algorithmus
2023-10-27 15:01:51,438 - {control.algorithm.algorithm:30} - {INFO:MainThread} - **Mindestrom setzen**
2023-10-27 15:01:51,440 - {control.algorithm.min_current:18} - {INFO:MainThread} - Mode-Tuple Chargemode.PV_CHARGING - Chargemode.PV_CHARGING - False, Zähler 0
2023-10-27 15:01:51,441 - {control.algorithm.algorithm:32} - {INFO:MainThread} - **Sollstrom setzen**
2023-10-27 15:01:51,442 - {control.counter:211} - {INFO:MainThread} - Überschuss zur PV-geführten Ladung: 0W
2023-10-27 15:01:51,443 - {control.counter:457} - {DEBUG:MainThread} - Zähler 0: Begrenzung der verbleibenden Leistung auf 0W
2023-10-27 15:01:51,443 - {control.chargepoint.chargepoint:277} - {INFO:MainThread} - LP 2: Die Ladung kann nicht gestartet werden, da die Einschaltschwelle nicht erreicht wird.
2023-10-27 15:01:51,443 - {control.algorithm.algorithm:43} - {INFO:MainThread} - **Keine Leistung für PV-geführtes Laden übrig.**
2023-10-27 15:01:51,444 - {control.process:23} - {INFO:MainThread} - # Ladung starten.
2023-10-27 15:01:51,446 - {control.process:111} - {INFO:MainThread} - LP2: set current 0 A, state NO_CHARGING_ALLOWED
2023-10-27 15:01:51,448 - {modules.common.component_context:24} - {DEBUG:set current cp2} - Update Komponente ['Ladepunkt']
2023-10-27 15:01:51,454 - {urllib3.connectionpool:227} - {DEBUG:set current cp2} - Starting new HTTP connection (1): 192.168.5.111:80
2023-10-27 15:01:51,471 - {urllib3.connectionpool:452} - {DEBUG:set current cp2} - http://192.168.5.111:80 "POST /connect.php HTTP/1.1" 200 19
2023-10-27 15:01:51,473 - {modules.common.req:11} - {DEBUG:set current cp2} - Get-Response: OK Value:0 accepted
2023-10-27 15:01:51,477 - {control.counter:186} - {INFO:MainThread} - 0W reservierte EVU-Leistung, 0W freigegebene EVU-Leistung
2023-10-27 15:01:51,657 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=smarthome_handler, args=(), kwargs={})
2023-10-27 15:01:55,691 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=smarthome_handler, args=(), kwargs={})
2023-10-27 15:02:00,705 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=handler10Sec, args=(), kwargs={})
2023-10-27 15:02:00,706 - {root:70} - {INFO:MainThread} - # ***Start***
Sollte nach dem Anstecken des Fahrzeugs nicht generell der Wert verwendet werden der aktuell ausgelesen wird? Die Berechnung kann mit dem Abstecken des Fahrzeugs eigentlich verworfen werden oder?