Kostal Plenticore

Fragen zur Nutzung, Features, usw..
rleidner
Beiträge: 793
Registriert: Mo Nov 02, 2020 9:50 am

Re: Feedback Beta 1

Beitrag von rleidner »

rleidner hat geschrieben: Mo Nov 14, 2022 9:44 am
LenaK hat geschrieben: Mo Nov 14, 2022 9:25 am Ich habe in 1.9 einen PR erstellt, der das Kostal-Plenticore-Modul portiert. Ein User hat sich gemeldet, dass noch Bugs drin wären und er ein Fix erstellen will, der ist aber noch nicht da. Kannst Du das Modul testen?
Danke, ja, ich werde es gleich mal testen.
Auf 1.9 und 2.0 getestet. Ich habe nur den Plenticore Wechselrichter, sonst keine weiteren Kostal-Komponenten.
Im 1.9 Testsystem funktioniert PR2440 wie erwartet und exakt synchron zur 1.9 Original-WB.

In 2.0 funktioniert es nicht - u.a. ist der PV-Teil im Dashboard verschwunden.
Ich habe den MQTT-PV-Modul gelöscht, die mqtt-Weiterleitung in NR abgestellt und den Plenticore WR konfiguriert (IP-Adresse).
Zunächst fehlte im Setup noch ipparser, den habe ich nachinstalliert (und in requirements.txt eingetragen).

Im main.log sehe ich keine Daten des Plenticore, aber eine Exception.
Der Counter des Plenticore ist in 1.9 aktuell bei ca. 17.977 kWh, die finde ich im main.log nicht.
Hier ein Regeldurchlauf im Details mode:

Code: Alles auswählen

2022-11-14 11:49:29,504 - {root:63} - {INFO:MainThread} - # ***Start*** 
2022-11-14 11:49:29,540 - {soc.modules.common.component_context:51} - {DEBUG:device0} - Update Komponenten ['MQTT-EVU-Kit']
2022-11-14 11:49:29,541 - {modules.mqtt.device:47} - {DEBUG:device0} - MQTT-Module müssen nicht ausgelesen werden.
2022-11-14 11:49:29,541 - {soc.modules.common.component_context:51} - {DEBUG:device1} - Update Komponenten []
2022-11-14 11:49:29,542 - {soc.modules.common.component_context:24} - {DEBUG:cp3} - Update Komponente ['Ladepunkt']
2022-11-14 11:49:29,542 - {modules.mqtt.chargepoint_module:37} - {DEBUG:cp3} - MQTT-Ladepunkte müssen nicht ausgelesen werden.
2022-11-14 11:49:29,543 - {soc.modules.common.component_context:24} - {DEBUG:cp4} - Update Komponente ['Ladepunkt']
2022-11-14 11:49:29,543 - {modules.mqtt.chargepoint_module:37} - {DEBUG:cp4} - MQTT-Ladepunkte müssen nicht ausgelesen werden.
2022-11-14 11:49:29,549 - {modules.loadvars:96} - {ERROR:MainThread} - Element 5 konnte keinem Gerät zugeordnet werden.
2022-11-14 11:49:29,552 - {soc.modules.common.component_context:24} - {DEBUG:cp3} - Update Komponente ['Ladepunkt']
2022-11-14 11:49:29,558 - {soc.modules.common.component_context:24} - {DEBUG:cp4} - Update Komponente ['Ladepunkt']
2022-11-14 11:49:29,586 - {soc.modules.common.component_context:24} - {DEBUG:component0} - Update Komponente ['MQTT-EVU-Kit']
2022-11-14 11:49:29,638 - {control.counter:427} - {DEBUG:MainThread} - 35000W EVU-Leistung, die noch bezogen werden kann.
2022-11-14 11:49:29,639 - {control.chargepoint:689} - {DEBUG:MainThread} - EV-Phasenzahl beschränkt die nutzbaren Phasen auf 3
2022-11-14 11:49:29,639 - {control.chargepoint:680} - {DEBUG:MainThread} - Phasenzahl Lademodus: 1
2022-11-14 11:49:29,640 - {control.ev:389} - {DEBUG:MainThread} - Änderung der Sollstromstärke :False, Änderung des Lademodus :False
2022-11-14 11:49:29,641 - {control.chargepoint:844} - {DEBUG:MainThread} - LP 3, EV: ID3 (EV-Nr.2): Theoretisch benötigter Strom 6A, Lademodus pv_charging, Submodus: instant_charging, Phasen: 1, Priorität: False, max. Ist-Strom: 7.6
2022-11-14 11:49:29,642 - {control.chargepoint:347} - {INFO:MainThread} - LP 4: Keine Ladung, da kein Auto angesteckt ist.
2022-11-14 11:49:29,642 - {control.pv:98} - {DEBUG:MainThread} - Kein PV-Modul konfiguriert.
2022-11-14 11:49:29,643 - {control.counter:106} - {ERROR:MainThread} - Fehler in der allgemeinen Zähler-Klasse
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/counter.py", line 77, in set_home_consumption
    home_consumption, elements = self._calc_home_consumption()
  File "/var/www/html/openWB/packages/control/counter.py", line 123, in _calc_home_consumption
    power += data.data.pv_data[f"pv{element['id']}"].data["get"]["power"]
KeyError: 'pv5'
2022-11-14 11:49:29,644 - {control.data:296} - {DEBUG:MainThread} - all
{'get': {'power': 0}, 'config': {'configured': False}, 'set': {'charging_power_left': 0, 'switch_on_soc_reached': False}}
2022-11-14 11:49:29,645 - {control.data:269} - {DEBUG:MainThread} - cp_all_data
AllChargepointData(get=AllGet(daily_imported=516, daily_exported=0, power=1733, imported=3055299, exported=0))
2022-11-14 11:49:29,645 - {control.data:296} - {DEBUG:MainThread} - cp3
ChargepointData(get=Get(charge_state=True, connected_vehicle=ConnectedVehicle(config=ConnectedConfig(average_consumption=17, charge_template=0, chargemode='stop', current_plan=0, ev_template=0, priority=False), info=ConnectedInfo(id=0, name='Ladepunkt'), soc=79), currents=[7.6, 0, 0], daily_imported=516, daily_exported=0, exported=0, fault_str='Kein Fehler.', fault_state=0, imported=1708039, phases_in_use=1, plug_state=True, power=1733, rfid_timestamp=None, rfid=None, state_str=None, voltages=[230.8, 232.4, 233.5]), set=Set(change_ev_permitted=[True, ''], charging_ev=2, charging_ev_prev=2, current=6, energy_to_charge=0, loadmanagement_available=True, log=Log(chargemode_log_entry='pv_charging', imported_at_mode_switch=1707392, imported_at_plugtime=1707392, imported_since_mode_switch=642, imported_since_plugged=642, range_charged=3.5666666666666664, time_charged='0:24', timestamp_start_charging='11/14/2022, 11:25:33'), manual_lock=False, phases_to_use=1, plug_time='11/11/2022, 12:50:28', required_power=0, rfid=None, charging_ev_data=<control.ev.Ev object at 0xb15df808>), config=Config(connection_module={'type': 'mqtt', 'name': 'MQTT-Ladepunkt', 'configuration': {}}, power_module={}, ev=2, name='MQTT-CP3-ID3', type='mqtt', template=0, connected_phases=3, phase_1=3, auto_phase_switch_hw=True, control_pilot_interruption_hw=True, id=3))
2022-11-14 11:49:29,647 - {control.data:296} - {DEBUG:MainThread} - cp4
ChargepointData(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), info=ConnectedInfo(id=0, name='Ladepunkt'), soc=100), currents=[0.02132741852926122, 0, 0], daily_imported=0, daily_exported=0, exported=0, fault_str='Kein Fehler.', fault_state=0, imported=1347260, phases_in_use=0, plug_state=False, power=0, rfid_timestamp=None, rfid=None, state_str='Keine Ladung, da kein Auto angesteckt ist.', voltages=[0, 0, 0]), 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=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), manual_lock=False, phases_to_use=0, plug_time=None, required_power=0, rfid=None, charging_ev_data=<control.ev.Ev object at 0xb1593568>), config=Config(connection_module={'type': 'mqtt', 'name': 'MQTT-Ladepunkt', 'configuration': {}}, power_module={}, ev=3, name='MQTT-CP4-smart', type='mqtt', template=0, connected_phases=3, phase_1=1, auto_phase_switch_hw=False, control_pilot_interruption_hw=False, id=4))
2022-11-14 11:49:29,647 - {control.data:296} - {DEBUG:MainThread} - cpt0
CpTemplateData(autolock=Autolock(active=False, plans={}, wait_for_charging_end=False), name='Standard Ladepunkt-Vorlage', rfid_enabling=False, valid_tags=[], id=0)
2022-11-14 11:49:29,647 - {control.data:296} - {DEBUG:MainThread} - counter0
{'set': {'state_str': 'Das Lastmanagement regelt nur anhand der Gesamtleistung, da keine                     Phasenströme ermittelt werden konnten.', 'consumption_left': 35000, 'currents_used': [3.235, 2.117, 4.993]}, 'get': {'daily_exported': 2852.71039053, 'daily_imported': 3032.281008028, 'fault_str': 'Kein Fehler.', 'fault_state': 0, 'power': -86, 'imported': 6213133.8525, 'exported': 9566523.324226452, 'frequency': 50.06, 'voltages': [233.4, 232.72, 231.87], 'currents': [3.235, 2.117, 4.993], 'powers': [-752, -469, 1135], 'power_factors': [-0.9991, -0.9912, 0.9845]}, 'config': {'max_currents': [25, 25, 25], 'max_total_power': 35000}}
2022-11-14 11:49:29,648 - {control.data:273} - {DEBUG:MainThread} - counter_all_data
CounterAllData(get=Get(hierarchy=[{'id': 0, 'type': 'counter', 'children': [{'id': 3, 'type': 'cp', 'children': []}, {'id': 4, 'type': 'cp', 'children': []}, {'id': 5, 'type': 'inverter', 'children': []}]}]), set=Set(loadmanagement_active=False, home_consumption=528, invalid_home_consumption=0, daily_yield_home_consumption=4850.334644582))
2022-11-14 11:49:29,648 - {control.data:296} - {DEBUG: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=10, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=10000, soc=50))))
2022-11-14 11:49:29,648 - {control.data:296} - {DEBUG:MainThread} - ct1
ChargeTemplateData(name='ID3-LPV1', 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=6, min_current=6, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=16, limit=Limit(selected='none', amount=10000, soc=100))))
2022-11-14 11:49:29,649 - {control.data:296} - {DEBUG:MainThread} - ct2
ChargeTemplateData(name='smart-LPV1', 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=10, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=10000, soc=100))))
2022-11-14 11:49:29,650 - {control.data:296} - {DEBUG:MainThread} - ct3
ChargeTemplateData(name='BMW-LPV1', disable_after_unplug=False, prio=False, load_default=False, time_charging=TimeCharging(active=False, plans={}), chargemode=Chargemode(selected='stop', pv_charging=PvCharging(min_soc_current=10, min_current=6, feed_in_limit=False, min_soc=0, max_soc=70), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=1000, soc=50))))
2022-11-14 11:49:29,650 - {control.data:296} - {DEBUG: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=17, min_current=6, max_current_one_phase=32, battery_capacity=58, nominal_difference=2), et_num=0)), control_parameter=ControlParameter(required_current=0, phases=0, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='stop', chargemode='stop', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=0, ev_template=0, name='Standard-Fahrzeug', tag_id=[], get=Get(soc=0, soc_timestamp='', force_soc_update=False, range=0, fault_state=0, fault_str=''))
2022-11-14 11:49:29,650 - {control.data:296} - {DEBUG:MainThread} - ev2
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='ID3', 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=18, min_current=6, max_current_one_phase=18, battery_capacity=58, nominal_difference=2), et_num=0)), control_parameter=ControlParameter(required_current=6, phases=1, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='instant_charging', chargemode='pv_charging', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=1, ev_template=1, name='ID3', tag_id=[], get=Get(soc=79, soc_timestamp='11/14/2022, 11:45:34', force_soc_update=False, range=263.0, fault_state=0, fault_str='Kein Fehler.'))
2022-11-14 11:49:29,650 - {control.data:296} - {DEBUG:MainThread} - ev3
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='smart', max_current_multi_phases=10, max_phases=1, phase_switch_pause=2, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=False, control_pilot_interruption_duration=4, average_consump=16, min_current=10, max_current_one_phase=10, battery_capacity=17, nominal_difference=1), et_num=0)), control_parameter=ControlParameter(required_current=0, phases=0, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='stop', chargemode='stop', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=2, ev_template=2, name='smart', tag_id=[], get=Get(soc=100, soc_timestamp='11/14/2022, 03:53:38', force_soc_update=False, range=110.0, fault_state=0, fault_str='Kein Fehler.'))
2022-11-14 11:49:29,653 - {control.data:296} - {DEBUG:MainThread} - ev4
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='BMW 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=17, min_current=6, max_current_one_phase=16, battery_capacity=42, nominal_difference=2), et_num=0)), control_parameter=ControlParameter(required_current=0, phases=0, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='stop', chargemode='stop', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=3, ev_template=3, name='BMW-Test', tag_id=[], get=Get(soc=99, soc_timestamp='11/13/2022, 20:58:58', force_soc_update=False, range=283.0, fault_state=0, fault_str='Kein Fehler.'))
2022-11-14 11:49:29,654 - {control.data:296} - {DEBUG: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=17, min_current=6, max_current_one_phase=32, battery_capacity=58, nominal_difference=2)
2022-11-14 11:49:29,654 - {control.data:296} - {DEBUG:MainThread} - et1
EvTemplateData(name='ID3', 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=18, min_current=6, max_current_one_phase=18, battery_capacity=58, nominal_difference=2)
2022-11-14 11:49:29,654 - {control.data:296} - {DEBUG:MainThread} - et2
EvTemplateData(name='smart', max_current_multi_phases=10, max_phases=1, phase_switch_pause=2, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=False, control_pilot_interruption_duration=4, average_consump=16, min_current=10, max_current_one_phase=10, battery_capacity=17, nominal_difference=1)
2022-11-14 11:49:29,654 - {control.data:296} - {DEBUG:MainThread} - et3
EvTemplateData(name='BMW 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=17, min_current=6, max_current_one_phase=16, battery_capacity=42, nominal_difference=2)
2022-11-14 11:49:29,654 - {control.data:277} - {DEBUG:MainThread} - general_data
GeneralData(chargemode_config=ChargemodeConfig(instant_charging=InstantCharging(phases_to_use=3), pv_charging=PvCharging(bat_prio=False, charging_power_reserve=200, control_range=[-230, 0], feed_in_yield=0, phase_switch_delay=8, phases_to_use=0, rundown_power=1000, rundown_soc=50, switch_off_delay=60, switch_off_soc=40, switch_off_threshold=5, switch_on_delay=30, switch_on_soc=60, switch_on_threshold=1500), scheduled_charging=ScheduledCharging(phases_to_use=0), standby=Standby(phases_to_use=3), stop=Stop(phases_to_use=1), time_charging=TimeCharging(phases_to_use=3), unbalanced_load_limit=18, unbalanced_load=True), 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.3176, range_unit='km', ripple_control_receiver=RippleControlReceiver(configured=False, r1_active=False, r2_active=False))
2022-11-14 11:49:29,654 - {control.data:296} - {DEBUG:MainThread} - graph
{'config': {'duration': 120}}
2022-11-14 11:49:29,654 - {control.data:279} - {DEBUG: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='cards'), led=Led(active=False), rfid=Rfid(active=False))
2022-11-14 11:49:29,656 - {control.data:296} - {DEBUG:MainThread} - all
{'set': {'overhang_power_left': 0, 'available_power': 0, 'reserved_evu_overhang': 0, 'released_evu_overhang': 0}, 'get': {'power': 0, 'exported': 0, 'daily_exported': 0, 'monthly_exported': 0, 'yearly_exported': 0}, 'config': {'configured': False}}
2022-11-14 11:49:29,656 - {control.data:296} - {DEBUG:MainThread} - system
{'update_in_progress': False, 'perform_update': False, 'boot_done': True, 'dataprotection_acknowledged': True, 'debug_level': 10, 'release_train': 'master', 'version': '1.99.100', 'lastlivevaluesJson': {'timestamp': 1668422959, 'time': '11:49:19', 'grid': -0.069, 'house-power': 0.528, 'charging-all': 1.737, 'cp3-power': 1.737, 'cp4-power': 0.0}, 'current_commit': '2022-11-10 12:58:50 +0100 [dae7a3f6]', 'current_missing_commits': [], 'current_branch': 'master', 'current_branch_commit': '2022-11-10 12:58:50 +0100 [dae7a3f6]', 'datastore_version': 3, 'module_update_completed': True}
2022-11-14 11:49:29,656 - {control.data:309} - {DEBUG:MainThread} - device0
{'name': 'MQTT', 'type': 'mqtt', 'id': 0, 'configuration': {}}
2022-11-14 11:49:29,656 - {control.data:311} - {DEBUG:MainThread} - component0
{'name': 'MQTT-EVU-Kit', 'type': 'counter', 'id': 0, 'configuration': {}}
2022-11-14 11:49:29,657 - {control.data:309} - {DEBUG:MainThread} - device1
{'name': 'Kostal Plenticore', 'type': 'kostal_plenticore', 'id': 1, 'configuration': {'ip_address': '192.168.1.170'}}
2022-11-14 11:49:29,657 - {control.data:283} - {DEBUG:MainThread} - 

2022-11-14 11:49:29,657 - {control.algorithm:45} - {DEBUG:MainThread} - # Algorithmus-Start
2022-11-14 11:49:29,657 - {control.algorithm:47} - {INFO:MainThread} - EVU-Punkt: Leistung[W] -86, Ströme[A] [3.235, 2.117, 4.993]
2022-11-14 11:49:29,657 - {control.algorithm:85} - {INFO:MainThread} - ## Überschuss-Ladung über Mindeststrom bei PV-Laden zurücknehmen.
2022-11-14 11:49:29,658 - {control.algorithm:112} - {DEBUG:MainThread} - Ladung an LP3 um -1.5999999999999996A auf 6A angepasst.
2022-11-14 11:49:29,658 - {control.algorithm:205} - {DEBUG:MainThread} - ## Ladung muss nicht wegen aktiven Lastmanagements gestoppt werden.
2022-11-14 11:49:29,659 - {control.algorithm:548} - {DEBUG:MainThread} - Ladepunkt 3: Prüfen, ob Phasenumschaltung durchgeführt werden soll.
2022-11-14 11:49:29,659 - {control.ev:505} - {DEBUG:MainThread} - Genutzter Strom: 7.6A, Überschuss: 0W, benötigte neue Leistung: 0W
2022-11-14 11:49:29,660 - {control.algorithm:574} - {INFO:MainThread} - ## Zuteilung des Überschusses
2022-11-14 11:49:29,660 - {control.algorithm:610} - {INFO:MainThread} - ## Zuteilung beendet, da kein Ladepunkt mehr auf Zuteilung wartet.
2022-11-14 11:49:29,660 - {control.algorithm:870} - {INFO:MainThread} - ## Übrigen Überschuss verteilen.
2022-11-14 11:49:29,661 - {control.process:22} - {DEBUG:MainThread} - # Ladung starten.
2022-11-14 11:49:29,661 - {control.chargelog:49} - {DEBUG:MainThread} - imported_since_mode_switch 647 counter 1708039
2022-11-14 11:49:29,661 - {control.process:108} - {INFO:MainThread} - LP3: set current 6 A
2022-11-14 11:49:29,662 - {soc.modules.common.component_context:24} - {DEBUG:cp3} - Update Komponente ['Ladepunkt']
2022-11-14 11:49:29,665 - {modules.mqtt.chargepoint_module:33} - {DEBUG:cp3} - MQTT-Ladepunkte abonnieren die Soll-Stromstärke direkt vom Broker.
2022-11-14 11:49:29,664 - {soc.modules.common.component_context:24} - {DEBUG:cp4} - Update Komponente ['Ladepunkt']
2022-11-14 11:49:29,668 - {modules.mqtt.chargepoint_module:33} - {DEBUG:cp4} - MQTT-Ladepunkte abonnieren die Soll-Stromstärke direkt vom Broker.
2022-11-14 11:49:29,678 - {control.pv:433} - {DEBUG:MainThread} - 0W EVU-Überschuss, der für die Regelung verfügbar ist, davon 0W für die Einschaltverzögerung reservierte Leistung.
2022-11-14 11:49:29,679 - {control.counter:446} - {DEBUG:MainThread} - 35368.0W verbleibende EVU-Bezugs-Leistung
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Smart EQ forfour
LenaK
Beiträge: 1021
Registriert: Fr Jan 22, 2021 6:40 am

Re: Feedback Beta 1

Beitrag von LenaK »

rleidner hat geschrieben: Mo Nov 14, 2022 11:08 am
rleidner hat geschrieben: Mo Nov 14, 2022 9:44 am
LenaK hat geschrieben: Mo Nov 14, 2022 9:25 am Ich habe in 1.9 einen PR erstellt, der das Kostal-Plenticore-Modul portiert. Ein User hat sich gemeldet, dass noch Bugs drin wären und er ein Fix erstellen will, der ist aber noch nicht da. Kannst Du das Modul testen?
Danke, ja, ich werde es gleich mal testen.
Auf 1.9 und 2.0 getestet. Ich habe nur den Plenticore Wechselrichter, sonst keine weiteren Kostal-Komponenten.
Im 1.9 Testsystem funktioniert PR2440 wie erwartet und exakt synchron zur 1.9 Original-WB.

In 2.0 funktioniert es nicht - u.a. ist der PV-Teil im Dashboard verschwunden.
Ich habe den MQTT-PV-Modul gelöscht, die mqtt-Weiterleitung in NR abgestellt und den Plenticore WR konfiguriert (IP-Adresse).
Zunächst fehlte im Setup noch ipparser, den habe ich nachinstalliert (und in requirements.txt eingetragen).

Im main.log sehe ich keine Daten des Plenticore, aber eine Exception.
Der Counter des Plenticore ist in 1.9 aktuell bei ca. 17.977 kWh, die finde ich im main.log nicht.
Hier ein Regeldurchlauf im Details mode:

Code: Alles auswählen

2022-11-14 11:49:29,504 - {root:63} - {INFO:MainThread} - # ***Start*** 
2022-11-14 11:49:29,540 - {soc.modules.common.component_context:51} - {DEBUG:device0} - Update Komponenten ['MQTT-EVU-Kit']
2022-11-14 11:49:29,541 - {modules.mqtt.device:47} - {DEBUG:device0} - MQTT-Module müssen nicht ausgelesen werden.
2022-11-14 11:49:29,541 - {soc.modules.common.component_context:51} - {DEBUG:device1} - Update Komponenten []
2022-11-14 11:49:29,542 - {soc.modules.common.component_context:24} - {DEBUG:cp3} - Update Komponente ['Ladepunkt']
2022-11-14 11:49:29,542 - {modules.mqtt.chargepoint_module:37} - {DEBUG:cp3} - MQTT-Ladepunkte müssen nicht ausgelesen werden.
2022-11-14 11:49:29,543 - {soc.modules.common.component_context:24} - {DEBUG:cp4} - Update Komponente ['Ladepunkt']
2022-11-14 11:49:29,543 - {modules.mqtt.chargepoint_module:37} - {DEBUG:cp4} - MQTT-Ladepunkte müssen nicht ausgelesen werden.
2022-11-14 11:49:29,549 - {modules.loadvars:96} - {ERROR:MainThread} - Element 5 konnte keinem Gerät zugeordnet werden.
2022-11-14 11:49:29,552 - {soc.modules.common.component_context:24} - {DEBUG:cp3} - Update Komponente ['Ladepunkt']
2022-11-14 11:49:29,558 - {soc.modules.common.component_context:24} - {DEBUG:cp4} - Update Komponente ['Ladepunkt']
2022-11-14 11:49:29,586 - {soc.modules.common.component_context:24} - {DEBUG:component0} - Update Komponente ['MQTT-EVU-Kit']
2022-11-14 11:49:29,638 - {control.counter:427} - {DEBUG:MainThread} - 35000W EVU-Leistung, die noch bezogen werden kann.
2022-11-14 11:49:29,639 - {control.chargepoint:689} - {DEBUG:MainThread} - EV-Phasenzahl beschränkt die nutzbaren Phasen auf 3
2022-11-14 11:49:29,639 - {control.chargepoint:680} - {DEBUG:MainThread} - Phasenzahl Lademodus: 1
2022-11-14 11:49:29,640 - {control.ev:389} - {DEBUG:MainThread} - Änderung der Sollstromstärke :False, Änderung des Lademodus :False
2022-11-14 11:49:29,641 - {control.chargepoint:844} - {DEBUG:MainThread} - LP 3, EV: ID3 (EV-Nr.2): Theoretisch benötigter Strom 6A, Lademodus pv_charging, Submodus: instant_charging, Phasen: 1, Priorität: False, max. Ist-Strom: 7.6
2022-11-14 11:49:29,642 - {control.chargepoint:347} - {INFO:MainThread} - LP 4: Keine Ladung, da kein Auto angesteckt ist.
2022-11-14 11:49:29,642 - {control.pv:98} - {DEBUG:MainThread} - Kein PV-Modul konfiguriert.
2022-11-14 11:49:29,643 - {control.counter:106} - {ERROR:MainThread} - Fehler in der allgemeinen Zähler-Klasse
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/counter.py", line 77, in set_home_consumption
    home_consumption, elements = self._calc_home_consumption()
  File "/var/www/html/openWB/packages/control/counter.py", line 123, in _calc_home_consumption
    power += data.data.pv_data[f"pv{element['id']}"].data["get"]["power"]
KeyError: 'pv5'
2022-11-14 11:49:29,644 - {control.data:296} - {DEBUG:MainThread} - all
{'get': {'power': 0}, 'config': {'configured': False}, 'set': {'charging_power_left': 0, 'switch_on_soc_reached': False}}
2022-11-14 11:49:29,645 - {control.data:269} - {DEBUG:MainThread} - cp_all_data
AllChargepointData(get=AllGet(daily_imported=516, daily_exported=0, power=1733, imported=3055299, exported=0))
2022-11-14 11:49:29,645 - {control.data:296} - {DEBUG:MainThread} - cp3
ChargepointData(get=Get(charge_state=True, connected_vehicle=ConnectedVehicle(config=ConnectedConfig(average_consumption=17, charge_template=0, chargemode='stop', current_plan=0, ev_template=0, priority=False), info=ConnectedInfo(id=0, name='Ladepunkt'), soc=79), currents=[7.6, 0, 0], daily_imported=516, daily_exported=0, exported=0, fault_str='Kein Fehler.', fault_state=0, imported=1708039, phases_in_use=1, plug_state=True, power=1733, rfid_timestamp=None, rfid=None, state_str=None, voltages=[230.8, 232.4, 233.5]), set=Set(change_ev_permitted=[True, ''], charging_ev=2, charging_ev_prev=2, current=6, energy_to_charge=0, loadmanagement_available=True, log=Log(chargemode_log_entry='pv_charging', imported_at_mode_switch=1707392, imported_at_plugtime=1707392, imported_since_mode_switch=642, imported_since_plugged=642, range_charged=3.5666666666666664, time_charged='0:24', timestamp_start_charging='11/14/2022, 11:25:33'), manual_lock=False, phases_to_use=1, plug_time='11/11/2022, 12:50:28', required_power=0, rfid=None, charging_ev_data=<control.ev.Ev object at 0xb15df808>), config=Config(connection_module={'type': 'mqtt', 'name': 'MQTT-Ladepunkt', 'configuration': {}}, power_module={}, ev=2, name='MQTT-CP3-ID3', type='mqtt', template=0, connected_phases=3, phase_1=3, auto_phase_switch_hw=True, control_pilot_interruption_hw=True, id=3))
2022-11-14 11:49:29,647 - {control.data:296} - {DEBUG:MainThread} - cp4
ChargepointData(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), info=ConnectedInfo(id=0, name='Ladepunkt'), soc=100), currents=[0.02132741852926122, 0, 0], daily_imported=0, daily_exported=0, exported=0, fault_str='Kein Fehler.', fault_state=0, imported=1347260, phases_in_use=0, plug_state=False, power=0, rfid_timestamp=None, rfid=None, state_str='Keine Ladung, da kein Auto angesteckt ist.', voltages=[0, 0, 0]), 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=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), manual_lock=False, phases_to_use=0, plug_time=None, required_power=0, rfid=None, charging_ev_data=<control.ev.Ev object at 0xb1593568>), config=Config(connection_module={'type': 'mqtt', 'name': 'MQTT-Ladepunkt', 'configuration': {}}, power_module={}, ev=3, name='MQTT-CP4-smart', type='mqtt', template=0, connected_phases=3, phase_1=1, auto_phase_switch_hw=False, control_pilot_interruption_hw=False, id=4))
2022-11-14 11:49:29,647 - {control.data:296} - {DEBUG:MainThread} - cpt0
CpTemplateData(autolock=Autolock(active=False, plans={}, wait_for_charging_end=False), name='Standard Ladepunkt-Vorlage', rfid_enabling=False, valid_tags=[], id=0)
2022-11-14 11:49:29,647 - {control.data:296} - {DEBUG:MainThread} - counter0
{'set': {'state_str': 'Das Lastmanagement regelt nur anhand der Gesamtleistung, da keine                     Phasenströme ermittelt werden konnten.', 'consumption_left': 35000, 'currents_used': [3.235, 2.117, 4.993]}, 'get': {'daily_exported': 2852.71039053, 'daily_imported': 3032.281008028, 'fault_str': 'Kein Fehler.', 'fault_state': 0, 'power': -86, 'imported': 6213133.8525, 'exported': 9566523.324226452, 'frequency': 50.06, 'voltages': [233.4, 232.72, 231.87], 'currents': [3.235, 2.117, 4.993], 'powers': [-752, -469, 1135], 'power_factors': [-0.9991, -0.9912, 0.9845]}, 'config': {'max_currents': [25, 25, 25], 'max_total_power': 35000}}
2022-11-14 11:49:29,648 - {control.data:273} - {DEBUG:MainThread} - counter_all_data
CounterAllData(get=Get(hierarchy=[{'id': 0, 'type': 'counter', 'children': [{'id': 3, 'type': 'cp', 'children': []}, {'id': 4, 'type': 'cp', 'children': []}, {'id': 5, 'type': 'inverter', 'children': []}]}]), set=Set(loadmanagement_active=False, home_consumption=528, invalid_home_consumption=0, daily_yield_home_consumption=4850.334644582))
2022-11-14 11:49:29,648 - {control.data:296} - {DEBUG: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=10, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=10000, soc=50))))
2022-11-14 11:49:29,648 - {control.data:296} - {DEBUG:MainThread} - ct1
ChargeTemplateData(name='ID3-LPV1', 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=6, min_current=6, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=16, limit=Limit(selected='none', amount=10000, soc=100))))
2022-11-14 11:49:29,649 - {control.data:296} - {DEBUG:MainThread} - ct2
ChargeTemplateData(name='smart-LPV1', 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=10, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=10000, soc=100))))
2022-11-14 11:49:29,650 - {control.data:296} - {DEBUG:MainThread} - ct3
ChargeTemplateData(name='BMW-LPV1', disable_after_unplug=False, prio=False, load_default=False, time_charging=TimeCharging(active=False, plans={}), chargemode=Chargemode(selected='stop', pv_charging=PvCharging(min_soc_current=10, min_current=6, feed_in_limit=False, min_soc=0, max_soc=70), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=1000, soc=50))))
2022-11-14 11:49:29,650 - {control.data:296} - {DEBUG: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=17, min_current=6, max_current_one_phase=32, battery_capacity=58, nominal_difference=2), et_num=0)), control_parameter=ControlParameter(required_current=0, phases=0, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='stop', chargemode='stop', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=0, ev_template=0, name='Standard-Fahrzeug', tag_id=[], get=Get(soc=0, soc_timestamp='', force_soc_update=False, range=0, fault_state=0, fault_str=''))
2022-11-14 11:49:29,650 - {control.data:296} - {DEBUG:MainThread} - ev2
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='ID3', 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=18, min_current=6, max_current_one_phase=18, battery_capacity=58, nominal_difference=2), et_num=0)), control_parameter=ControlParameter(required_current=6, phases=1, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='instant_charging', chargemode='pv_charging', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=1, ev_template=1, name='ID3', tag_id=[], get=Get(soc=79, soc_timestamp='11/14/2022, 11:45:34', force_soc_update=False, range=263.0, fault_state=0, fault_str='Kein Fehler.'))
2022-11-14 11:49:29,650 - {control.data:296} - {DEBUG:MainThread} - ev3
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='smart', max_current_multi_phases=10, max_phases=1, phase_switch_pause=2, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=False, control_pilot_interruption_duration=4, average_consump=16, min_current=10, max_current_one_phase=10, battery_capacity=17, nominal_difference=1), et_num=0)), control_parameter=ControlParameter(required_current=0, phases=0, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='stop', chargemode='stop', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=2, ev_template=2, name='smart', tag_id=[], get=Get(soc=100, soc_timestamp='11/14/2022, 03:53:38', force_soc_update=False, range=110.0, fault_state=0, fault_str='Kein Fehler.'))
2022-11-14 11:49:29,653 - {control.data:296} - {DEBUG:MainThread} - ev4
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='BMW 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=17, min_current=6, max_current_one_phase=16, battery_capacity=42, nominal_difference=2), et_num=0)), control_parameter=ControlParameter(required_current=0, phases=0, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='stop', chargemode='stop', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=3, ev_template=3, name='BMW-Test', tag_id=[], get=Get(soc=99, soc_timestamp='11/13/2022, 20:58:58', force_soc_update=False, range=283.0, fault_state=0, fault_str='Kein Fehler.'))
2022-11-14 11:49:29,654 - {control.data:296} - {DEBUG: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=17, min_current=6, max_current_one_phase=32, battery_capacity=58, nominal_difference=2)
2022-11-14 11:49:29,654 - {control.data:296} - {DEBUG:MainThread} - et1
EvTemplateData(name='ID3', 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=18, min_current=6, max_current_one_phase=18, battery_capacity=58, nominal_difference=2)
2022-11-14 11:49:29,654 - {control.data:296} - {DEBUG:MainThread} - et2
EvTemplateData(name='smart', max_current_multi_phases=10, max_phases=1, phase_switch_pause=2, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=False, control_pilot_interruption_duration=4, average_consump=16, min_current=10, max_current_one_phase=10, battery_capacity=17, nominal_difference=1)
2022-11-14 11:49:29,654 - {control.data:296} - {DEBUG:MainThread} - et3
EvTemplateData(name='BMW 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=17, min_current=6, max_current_one_phase=16, battery_capacity=42, nominal_difference=2)
2022-11-14 11:49:29,654 - {control.data:277} - {DEBUG:MainThread} - general_data
GeneralData(chargemode_config=ChargemodeConfig(instant_charging=InstantCharging(phases_to_use=3), pv_charging=PvCharging(bat_prio=False, charging_power_reserve=200, control_range=[-230, 0], feed_in_yield=0, phase_switch_delay=8, phases_to_use=0, rundown_power=1000, rundown_soc=50, switch_off_delay=60, switch_off_soc=40, switch_off_threshold=5, switch_on_delay=30, switch_on_soc=60, switch_on_threshold=1500), scheduled_charging=ScheduledCharging(phases_to_use=0), standby=Standby(phases_to_use=3), stop=Stop(phases_to_use=1), time_charging=TimeCharging(phases_to_use=3), unbalanced_load_limit=18, unbalanced_load=True), 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.3176, range_unit='km', ripple_control_receiver=RippleControlReceiver(configured=False, r1_active=False, r2_active=False))
2022-11-14 11:49:29,654 - {control.data:296} - {DEBUG:MainThread} - graph
{'config': {'duration': 120}}
2022-11-14 11:49:29,654 - {control.data:279} - {DEBUG: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='cards'), led=Led(active=False), rfid=Rfid(active=False))
2022-11-14 11:49:29,656 - {control.data:296} - {DEBUG:MainThread} - all
{'set': {'overhang_power_left': 0, 'available_power': 0, 'reserved_evu_overhang': 0, 'released_evu_overhang': 0}, 'get': {'power': 0, 'exported': 0, 'daily_exported': 0, 'monthly_exported': 0, 'yearly_exported': 0}, 'config': {'configured': False}}
2022-11-14 11:49:29,656 - {control.data:296} - {DEBUG:MainThread} - system
{'update_in_progress': False, 'perform_update': False, 'boot_done': True, 'dataprotection_acknowledged': True, 'debug_level': 10, 'release_train': 'master', 'version': '1.99.100', 'lastlivevaluesJson': {'timestamp': 1668422959, 'time': '11:49:19', 'grid': -0.069, 'house-power': 0.528, 'charging-all': 1.737, 'cp3-power': 1.737, 'cp4-power': 0.0}, 'current_commit': '2022-11-10 12:58:50 +0100 [dae7a3f6]', 'current_missing_commits': [], 'current_branch': 'master', 'current_branch_commit': '2022-11-10 12:58:50 +0100 [dae7a3f6]', 'datastore_version': 3, 'module_update_completed': True}
2022-11-14 11:49:29,656 - {control.data:309} - {DEBUG:MainThread} - device0
{'name': 'MQTT', 'type': 'mqtt', 'id': 0, 'configuration': {}}
2022-11-14 11:49:29,656 - {control.data:311} - {DEBUG:MainThread} - component0
{'name': 'MQTT-EVU-Kit', 'type': 'counter', 'id': 0, 'configuration': {}}
2022-11-14 11:49:29,657 - {control.data:309} - {DEBUG:MainThread} - device1
{'name': 'Kostal Plenticore', 'type': 'kostal_plenticore', 'id': 1, 'configuration': {'ip_address': '192.168.1.170'}}
2022-11-14 11:49:29,657 - {control.data:283} - {DEBUG:MainThread} - 

2022-11-14 11:49:29,657 - {control.algorithm:45} - {DEBUG:MainThread} - # Algorithmus-Start
2022-11-14 11:49:29,657 - {control.algorithm:47} - {INFO:MainThread} - EVU-Punkt: Leistung[W] -86, Ströme[A] [3.235, 2.117, 4.993]
2022-11-14 11:49:29,657 - {control.algorithm:85} - {INFO:MainThread} - ## Überschuss-Ladung über Mindeststrom bei PV-Laden zurücknehmen.
2022-11-14 11:49:29,658 - {control.algorithm:112} - {DEBUG:MainThread} - Ladung an LP3 um -1.5999999999999996A auf 6A angepasst.
2022-11-14 11:49:29,658 - {control.algorithm:205} - {DEBUG:MainThread} - ## Ladung muss nicht wegen aktiven Lastmanagements gestoppt werden.
2022-11-14 11:49:29,659 - {control.algorithm:548} - {DEBUG:MainThread} - Ladepunkt 3: Prüfen, ob Phasenumschaltung durchgeführt werden soll.
2022-11-14 11:49:29,659 - {control.ev:505} - {DEBUG:MainThread} - Genutzter Strom: 7.6A, Überschuss: 0W, benötigte neue Leistung: 0W
2022-11-14 11:49:29,660 - {control.algorithm:574} - {INFO:MainThread} - ## Zuteilung des Überschusses
2022-11-14 11:49:29,660 - {control.algorithm:610} - {INFO:MainThread} - ## Zuteilung beendet, da kein Ladepunkt mehr auf Zuteilung wartet.
2022-11-14 11:49:29,660 - {control.algorithm:870} - {INFO:MainThread} - ## Übrigen Überschuss verteilen.
2022-11-14 11:49:29,661 - {control.process:22} - {DEBUG:MainThread} - # Ladung starten.
2022-11-14 11:49:29,661 - {control.chargelog:49} - {DEBUG:MainThread} - imported_since_mode_switch 647 counter 1708039
2022-11-14 11:49:29,661 - {control.process:108} - {INFO:MainThread} - LP3: set current 6 A
2022-11-14 11:49:29,662 - {soc.modules.common.component_context:24} - {DEBUG:cp3} - Update Komponente ['Ladepunkt']
2022-11-14 11:49:29,665 - {modules.mqtt.chargepoint_module:33} - {DEBUG:cp3} - MQTT-Ladepunkte abonnieren die Soll-Stromstärke direkt vom Broker.
2022-11-14 11:49:29,664 - {soc.modules.common.component_context:24} - {DEBUG:cp4} - Update Komponente ['Ladepunkt']
2022-11-14 11:49:29,668 - {modules.mqtt.chargepoint_module:33} - {DEBUG:cp4} - MQTT-Ladepunkte abonnieren die Soll-Stromstärke direkt vom Broker.
2022-11-14 11:49:29,678 - {control.pv:433} - {DEBUG:MainThread} - 0W EVU-Überschuss, der für die Regelung verfügbar ist, davon 0W für die Einschaltverzögerung reservierte Leistung.
2022-11-14 11:49:29,679 - {control.counter:446} - {DEBUG:MainThread} - 35368.0W verbleibende EVU-Bezugs-Leistung
Du musst im Plenticore-Gerät noch eine Komponenten Wechselrichter hinzufügen.
rleidner
Beiträge: 793
Registriert: Mo Nov 02, 2020 9:50 am

Re: Feedback Beta 1

Beitrag von rleidner »

LenaK hat geschrieben: Di Nov 15, 2022 9:56 am
rleidner hat geschrieben: Mo Nov 14, 2022 11:08 am
rleidner hat geschrieben: Mo Nov 14, 2022 9:44 am
Danke, ja, ich werde es gleich mal testen.
Auf 1.9 und 2.0 getestet. Ich habe nur den Plenticore Wechselrichter, sonst keine weiteren Kostal-Komponenten.
Im 1.9 Testsystem funktioniert PR2440 wie erwartet und exakt synchron zur 1.9 Original-WB.

In 2.0 funktioniert es nicht - u.a. ist der PV-Teil im Dashboard verschwunden.
Ich habe den MQTT-PV-Modul gelöscht, die mqtt-Weiterleitung in NR abgestellt und den Plenticore WR konfiguriert (IP-Adresse).
Zunächst fehlte im Setup noch ipparser, den habe ich nachinstalliert (und in requirements.txt eingetragen).
Du musst im Plenticore-Gerät noch eine Komponenten Wechselrichter hinzufügen.
Den Wechselrichter hatte ich schon angelegt:
plenti1.JPG
plenti2.JPG
plenti3.JPG
In MQTT sehe ich das auch unter openWB/system/device - im unteren Teil device 2, component 7:
Screenshot from 2022-11-15 12-25-49.png
Aber unter openWB/pv ist die 7 nur rudimentär vorhanden:
Screenshot from 2022-11-15 12-27-25.png
Screenshot from 2022-11-15 12-27-25.png (14.83 KiB) 1462 mal betrachtet
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Smart EQ forfour
LenaK
Beiträge: 1021
Registriert: Fr Jan 22, 2021 6:40 am

Re: Kostal Plenticore

Beitrag von LenaK »

Die Einträge der Komponenten sind im Broker vorhanden, im Log fehlt die entsprechende Struktur. Wenn die fehlt, wird der WR auch nicht ausgelesen. Mach mal einen Neustart und poste das Log vom Start und dem ersten Zyklus im Level Details.
rleidner
Beiträge: 793
Registriert: Mo Nov 02, 2020 9:50 am

Re: Kostal Plenticore

Beitrag von rleidner »

Hier der main.log, da ist tatsächlich ein Fehler bzgl. component_config:

Code: Alles auswählen

atreboot.sh started
Error: Connection refused
no restore pending, normal startup
LAN/WLAN...
apache default site...
...ok
checking required apache modules...
headers (enabled by site administrator)
headers already enabled
ssl (enabled by site administrator)
ssl already enabled
proxy_wstunnel (enabled by site administrator)
proxy_wstunnel already enabled
apt packages...
check mosquitto installation...
mosquitto.conf already up to date
mosquitto openwb.conf already up to date
mosquitto_local.conf already up to date
mosquitto openwb_local.conf already up to date
mosquitto done
python packages...
2022-11-15 17:37:48,968 - {root:134} - {DEBUG:MainThread} - Warten auf das Ende des Boot-Prozesses
ERROR: Invalid requirement: 'ipparser=0.3.8' (from line 8 of /var/www/html/openWB/requirements.txt)
Hint: = is not a valid operator. Did you mean == ?
RTNETLINK answers: Network is unreachable
load versions...
chgrp: cannot access '/var/www/html/openWB/data/restore/*': No such file or directory
chmod: cannot access '/var/www/html/openWB/data/restore/*': No such file or directory
2022-11-15 17:37:53: boot done :-)
2022-11-15 17:37:54,975 - {root:137} - {DEBUG:MainThread} - Boot-Prozess abgeschlossen
2022-11-15 17:37:54,977 - {helpermodules.update_config:320} - {DEBUG:MainThread} - Broker-Konfiguration aktualisieren
2022-11-15 17:37:59,713 - {helpermodules.subdata:700} - {ERROR:Thread-5} - Fehler im subdata-Modul
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/subdata.py", line 698, in process_system_topic
    self.set_json_payload(var["system"].data, msg)
KeyError: 'system'
2022-11-15 17:37:59,728 - {helpermodules.subdata:700} - {ERROR:Thread-5} - Fehler im subdata-Modul
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/subdata.py", line 675, in process_system_topic
    var["device"+index].add_component(config)
  File "/var/www/html/openWB/packages/modules/common/configurable_device.py", line 72, in add_component
    self.components["component" + str(component_config.id)] = self.__component_factory(component_config)
  File "/var/www/html/openWB/packages/modules/common/configurable_device.py", line 57, in __call__
    required_type = arg_spec.annotations[arg_spec.args[0]]
KeyError: 'component_config'
2022-11-15 17:38:00,568 - {helpermodules.command:125} - {DEBUG:Thread-7} - Max ID autolock_plan -1
2022-11-15 17:38:00,569 - {helpermodules.command:125} - {DEBUG:Thread-7} - Max ID mqtt_bridge -1
2022-11-15 17:38:00,570 - {helpermodules.command:125} - {DEBUG:Thread-7} - Max ID charge_template 3
2022-11-15 17:38:00,570 - {helpermodules.command:125} - {DEBUG:Thread-7} - Max ID charge_template_scheduled_plan -1
2022-11-15 17:38:00,571 - {helpermodules.command:125} - {DEBUG:Thread-7} - Max ID charge_template_time_charging_plan -1
2022-11-15 17:38:00,572 - {helpermodules.command:125} - {DEBUG:Thread-7} - Max ID chargepoint_template 0
2022-11-15 17:38:00,573 - {helpermodules.command:125} - {DEBUG:Thread-7} - Max ID device 2
2022-11-15 17:38:00,573 - {helpermodules.command:125} - {DEBUG:Thread-7} - Max ID ev_template 3
2022-11-15 17:38:00,574 - {helpermodules.command:125} - {DEBUG:Thread-7} - Max ID vehicle 4
2022-11-15 17:38:00,575 - {helpermodules.command:125} - {DEBUG:Thread-7} - Max ID hierarchy 7
2022-11-15 17:38:04,577 - {root:63} - {INFO:MainThread} - # ***Start*** 
2022-11-15 17:38:04,620 - {soc.modules.common.component_context:51} - {DEBUG:device0} - Update Komponenten ['MQTT-EVU-Kit', 'MQTT-Wechselrichter']
2022-11-15 17:38:04,621 - {modules.mqtt.device:47} - {DEBUG:device0} - MQTT-Module müssen nicht ausgelesen werden.
2022-11-15 17:38:04,622 - {soc.modules.common.component_context:51} - {DEBUG:device2} - Update Komponenten []
2022-11-15 17:38:04,623 - {soc.modules.common.component_context:24} - {DEBUG:cp3} - Update Komponente ['Ladepunkt']
2022-11-15 17:38:04,623 - {modules.mqtt.chargepoint_module:37} - {DEBUG:cp3} - MQTT-Ladepunkte müssen nicht ausgelesen werden.
2022-11-15 17:38:04,628 - {soc.modules.common.component_context:24} - {DEBUG:cp4} - Update Komponente ['Ladepunkt']
2022-11-15 17:38:04,630 - {modules.mqtt.chargepoint_module:37} - {DEBUG:cp4} - MQTT-Ladepunkte müssen nicht ausgelesen werden.
2022-11-15 17:38:04,637 - {modules.loadvars:96} - {ERROR:MainThread} - Element 7 konnte keinem Gerät zugeordnet werden.
2022-11-15 17:38:04,639 - {soc.modules.common.component_context:24} - {DEBUG:cp3} - Update Komponente ['Ladepunkt']
2022-11-15 17:38:04,643 - {soc.modules.common.component_context:24} - {DEBUG:cp4} - Update Komponente ['Ladepunkt']
2022-11-15 17:38:04,645 - {soc.modules.common.component_context:24} - {DEBUG:component6} - Update Komponente ['MQTT-Wechselrichter']
2022-11-15 17:38:04,684 - {soc.modules.common.component_context:24} - {DEBUG:component0} - Update Komponente ['MQTT-EVU-Kit']
2022-11-15 17:38:04,732 - {control.counter:427} - {DEBUG:MainThread} - 34574W EVU-Leistung, die noch bezogen werden kann.
2022-11-15 17:38:04,757 - {control.chargepoint:689} - {DEBUG:MainThread} - EV-Phasenzahl beschränkt die nutzbaren Phasen auf 3
2022-11-15 17:38:04,766 - {control.chargepoint:680} - {DEBUG:MainThread} - Phasenzahl Lademodus: 1
2022-11-15 17:38:04,768 - {control.ev:389} - {DEBUG:MainThread} - Änderung der Sollstromstärke :False, Änderung des Lademodus :False
2022-11-15 17:38:04,769 - {control.chargepoint:844} - {DEBUG:MainThread} - LP 3, EV: ID3 (EV-Nr.2): Theoretisch benötigter Strom 6A, Lademodus pv_charging, Submodus: instant_charging, Phasen: 1, Priorität: False, max. Ist-Strom: 0
2022-11-15 17:38:04,770 - {control.chargepoint:689} - {DEBUG:MainThread} - EV-Phasenzahl beschränkt die nutzbaren Phasen auf 1
2022-11-15 17:38:04,770 - {control.chargepoint:680} - {DEBUG:MainThread} - Phasenzahl Lademodus: 1
2022-11-15 17:38:04,770 - {control.chargepoint:706} - {INFO:MainThread} - Phasenumschaltung an Ladepunkt 4 wird durch die Hardware nicht unterstützt.
2022-11-15 17:38:04,771 - {control.ev:389} - {DEBUG:MainThread} - Änderung der Sollstromstärke :False, Änderung des Lademodus :False
2022-11-15 17:38:04,772 - {control.chargepoint:844} - {DEBUG:MainThread} - LP 4, EV: smart (EV-Nr.3): Theoretisch benötigter Strom 10A, Lademodus pv_charging, Submodus: instant_charging, Phasen: 0, Priorität: False, max. Ist-Strom: 0
2022-11-15 17:38:04,774 - {control.pv:89} - {DEBUG:MainThread} - -541.0W EVU-Überschuss, der für die Regelung verfügbar ist, davon 0W für die Einschaltverzögerung reservierte Leistung.
2022-11-15 17:38:04,775 - {control.counter:106} - {ERROR:MainThread} - Fehler in der allgemeinen Zähler-Klasse
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/counter.py", line 77, in set_home_consumption
    home_consumption, elements = self._calc_home_consumption()
  File "/var/www/html/openWB/packages/control/counter.py", line 123, in _calc_home_consumption
    power += data.data.pv_data[f"pv{element['id']}"].data["get"]["power"]
KeyError: 'pv7'
2022-11-15 17:38:04,783 - {control.data:296} - {DEBUG:MainThread} - all
{'get': {'power': 0}, 'config': {'configured': False}, 'set': {'charging_power_left': 0, 'switch_on_soc_reached': False}}
2022-11-15 17:38:04,783 - {control.data:269} - {DEBUG:MainThread} - cp_all_data
AllChargepointData(get=AllGet(daily_imported=3470, daily_exported=0, power=0, imported=3061000, exported=0))
2022-11-15 17:38:04,783 - {control.data:296} - {DEBUG:MainThread} - cp3
ChargepointData(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), info=ConnectedInfo(id=0, name='Ladepunkt'), soc=82), currents=[0, 0, 0], daily_imported=0, daily_exported=0, exported=0, fault_str='Kein Fehler.', fault_state=0, imported=1710220, phases_in_use=0, plug_state=True, power=0, rfid_timestamp=None, rfid=None, state_str=None, voltages=[227.9, 228.4, 230]), set=Set(change_ev_permitted=[True, ''], charging_ev=2, charging_ev_prev=2, current=6, energy_to_charge=0, loadmanagement_available=True, log=Log(chargemode_log_entry='pv_charging', imported_at_mode_switch=1707392, imported_at_plugtime=1707392, imported_since_mode_switch=2823, imported_since_plugged=2828, range_charged=15.683333333333334, time_charged='1:37', timestamp_start_charging='11/14/2022, 11:25:33'), manual_lock=False, phases_to_use=1, plug_time='11/11/2022, 12:50:28', required_power=0, rfid=None, charging_ev_data=<control.ev.Ev object at 0xb5b91550>), config=Config(connection_module={'type': 'mqtt', 'name': 'MQTT-Ladepunkt', 'configuration': {}}, power_module={}, ev=2, name='MQTT-CP3-ID3', type='mqtt', template=0, connected_phases=3, phase_1=3, auto_phase_switch_hw=True, control_pilot_interruption_hw=True, id=3))
2022-11-15 17:38:04,784 - {control.data:296} - {DEBUG:MainThread} - cp4
ChargepointData(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), info=ConnectedInfo(id=0, name='Ladepunkt'), soc=67), currents=[0, 0, 0], daily_imported=3470, daily_exported=0, exported=0, fault_str='Kein Fehler.', fault_state=0, imported=1350780, phases_in_use=0, plug_state=True, power=0, rfid_timestamp=None, rfid=None, state_str=None, voltages=[0, 0, 0]), set=Set(change_ev_permitted=[True, ''], charging_ev=3, charging_ev_prev=3, current=10, energy_to_charge=0, loadmanagement_available=True, log=Log(chargemode_log_entry='pv_charging', imported_at_mode_switch=1347360, imported_at_plugtime=1347360, imported_since_mode_switch=3390, imported_since_plugged=3420, range_charged=21.1875, time_charged='1:35', timestamp_start_charging='11/15/2022, 14:46:23'), manual_lock=False, phases_to_use=1, plug_time='11/15/2022, 14:46:23', required_power=0, rfid=None, charging_ev_data=<control.ev.Ev object at 0xb26d0640>), config=Config(connection_module={'type': 'mqtt', 'name': 'MQTT-Ladepunkt', 'configuration': {}}, power_module={}, ev=3, name='MQTT-CP4-smart', type='mqtt', template=0, connected_phases=3, phase_1=1, auto_phase_switch_hw=False, control_pilot_interruption_hw=False, id=4))
2022-11-15 17:38:04,785 - {control.data:296} - {DEBUG:MainThread} - cpt0
CpTemplateData(autolock=Autolock(active=False, plans={}, wait_for_charging_end=False), name='Standard Ladepunkt-Vorlage', rfid_enabling=False, valid_tags=[], id=0)
2022-11-15 17:38:04,785 - {control.data:296} - {DEBUG:MainThread} - counter0
{'set': {'state_str': 'Das Lastmanagement regelt nur anhand der Gesamtleistung, da keine                     Phasenströme ermittelt werden konnten.', 'consumption_left': 34574, 'currents_used': [0.338, 1.595, 0.502]}, 'get': {'daily_exported': 6756.179444443, 'daily_imported': 8825.256027021, 'fault_str': 'Kein Fehler.', 'fault_state': 0, 'power': 426, 'imported': 6226970.242876713, 'exported': 9574716.203055555, 'frequency': 50.06, 'voltages': [230.24, 228.87, 228.08], 'currents': [0.338, 1.595, 0.502], 'powers': [35, 297, 81], 'power_factors': [0.5434, 0.923, 0.8707]}, 'config': {'max_currents': [25, 25, 25], 'max_total_power': 35000}}
2022-11-15 17:38:04,786 - {control.data:273} - {DEBUG:MainThread} - counter_all_data
CounterAllData(get=Get(hierarchy=[{'id': 0, 'type': 'counter', 'children': [{'id': 3, 'type': 'cp', 'children': []}, {'id': 4, 'type': 'cp', 'children': []}, {'id': 6, 'type': 'inverter', 'children': []}, {'id': 7, 'type': 'inverter', 'children': []}]}]), set=Set(loadmanagement_active=False, home_consumption=429, invalid_home_consumption=0, daily_yield_home_consumption=11215.076582578002))
2022-11-15 17:38:04,786 - {control.data:296} - {DEBUG: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=10, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=10000, soc=50))))
2022-11-15 17:38:04,786 - {control.data:296} - {DEBUG:MainThread} - ct1
ChargeTemplateData(name='ID3-LPV1', 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=6, min_current=6, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=16, limit=Limit(selected='none', amount=10000, soc=100))))
2022-11-15 17:38:04,788 - {control.data:296} - {DEBUG:MainThread} - ct2
ChargeTemplateData(name='smart-LPV1', 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=10, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=10000, soc=100))))
2022-11-15 17:38:04,789 - {control.data:296} - {DEBUG:MainThread} - ct3
ChargeTemplateData(name='BMW-LPV1', disable_after_unplug=False, prio=False, load_default=False, time_charging=TimeCharging(active=False, plans={}), chargemode=Chargemode(selected='stop', pv_charging=PvCharging(min_soc_current=10, min_current=6, feed_in_limit=False, min_soc=0, max_soc=70), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=1000, soc=50))))
2022-11-15 17:38:04,790 - {control.data:296} - {DEBUG: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=17, min_current=6, max_current_one_phase=32, battery_capacity=58, nominal_difference=2), et_num=0)), control_parameter=ControlParameter(required_current=0, phases=0, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='stop', chargemode='stop', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=0, ev_template=0, name='Standard-Fahrzeug', tag_id=[], get=Get(soc=0, soc_timestamp='', force_soc_update=False, range=0, fault_state=0, fault_str=''))
2022-11-15 17:38:04,790 - {control.data:296} - {DEBUG:MainThread} - ev2
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='ID3', 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=18, min_current=6, max_current_one_phase=18, battery_capacity=58, nominal_difference=2), et_num=0)), control_parameter=ControlParameter(required_current=6, phases=1, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='instant_charging', chargemode='pv_charging', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=1, ev_template=1, name='ID3', tag_id=[], get=Get(soc=82, soc_timestamp='11/15/2022, 13:00:32', force_soc_update=False, range=275.0, fault_state=0, fault_str='Kein Fehler.'))
2022-11-15 17:38:04,790 - {control.data:296} - {DEBUG:MainThread} - ev3
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='smart', max_current_multi_phases=10, max_phases=1, phase_switch_pause=2, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=False, control_pilot_interruption_duration=4, average_consump=16, min_current=10, max_current_one_phase=10, battery_capacity=17, nominal_difference=1), et_num=0)), control_parameter=ControlParameter(required_current=10, phases=0, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='instant_charging', chargemode='pv_charging', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=2, ev_template=2, name='smart', tag_id=[], get=Get(soc=67, soc_timestamp='11/15/2022, 16:16:28', force_soc_update=False, range=77.0, fault_state=0, fault_str='Kein Fehler.'))
2022-11-15 17:38:04,791 - {control.data:296} - {DEBUG:MainThread} - ev4
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='BMW 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=17, min_current=6, max_current_one_phase=16, battery_capacity=42, nominal_difference=2), et_num=0)), control_parameter=ControlParameter(required_current=0, phases=0, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='stop', chargemode='stop', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=3, ev_template=3, name='BMW-Test', tag_id=[], get=Get(soc=99, soc_timestamp='11/13/2022, 20:58:58', force_soc_update=False, range=283.0, fault_state=0, fault_str='Kein Fehler.'))
2022-11-15 17:38:04,795 - {control.data:296} - {DEBUG: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=17, min_current=6, max_current_one_phase=32, battery_capacity=58, nominal_difference=2)
2022-11-15 17:38:04,795 - {control.data:296} - {DEBUG:MainThread} - et1
EvTemplateData(name='ID3', 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=18, min_current=6, max_current_one_phase=18, battery_capacity=58, nominal_difference=2)
2022-11-15 17:38:04,795 - {control.data:296} - {DEBUG:MainThread} - et2
EvTemplateData(name='smart', max_current_multi_phases=10, max_phases=1, phase_switch_pause=2, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=False, control_pilot_interruption_duration=4, average_consump=16, min_current=10, max_current_one_phase=10, battery_capacity=17, nominal_difference=1)
2022-11-15 17:38:04,795 - {control.data:296} - {DEBUG:MainThread} - et3
EvTemplateData(name='BMW 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=17, min_current=6, max_current_one_phase=16, battery_capacity=42, nominal_difference=2)
2022-11-15 17:38:04,796 - {control.data:277} - {DEBUG:MainThread} - general_data
GeneralData(chargemode_config=ChargemodeConfig(instant_charging=InstantCharging(phases_to_use=3), pv_charging=PvCharging(bat_prio=False, charging_power_reserve=200, control_range=[-230, 0], feed_in_yield=0, phase_switch_delay=8, phases_to_use=0, rundown_power=1000, rundown_soc=50, switch_off_delay=60, switch_off_soc=40, switch_off_threshold=5, switch_on_delay=30, switch_on_soc=60, switch_on_threshold=1500), scheduled_charging=ScheduledCharging(phases_to_use=0), standby=Standby(phases_to_use=3), stop=Stop(phases_to_use=1), time_charging=TimeCharging(phases_to_use=3), unbalanced_load_limit=18, unbalanced_load=True), 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.3176, range_unit='km', ripple_control_receiver=RippleControlReceiver(configured=False, r1_active=False, r2_active=False))
2022-11-15 17:38:04,796 - {control.data:296} - {DEBUG:MainThread} - graph
{'config': {'duration': 120}}
2022-11-15 17:38:04,796 - {control.data:279} - {DEBUG: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='cards'), led=Led(active=False), rfid=Rfid(active=False))
2022-11-15 17:38:04,800 - {control.data:296} - {DEBUG:MainThread} - all
{'set': {'overhang_power_left': -541.0, 'available_power': -541.0, 'reserved_evu_overhang': 0, 'released_evu_overhang': 0}, 'get': {'power': 0, 'exported': 17994726, 'daily_exported': 12616, 'monthly_exported': 0, 'yearly_exported': 0}, 'config': {'configured': True}}
2022-11-15 17:38:04,803 - {control.data:296} - {DEBUG:MainThread} - pv6
{'get': {'daily_exported': 12616, 'monthly_exported': 0, 'yearly_exported': 0, 'fault_str': 'Kein Fehler.', 'fault_state': 0, 'power': 0, 'exported': 17994726}, 'config': {'max_ac_out': 0}}
2022-11-15 17:38:04,804 - {control.data:296} - {DEBUG:MainThread} - system
{'update_in_progress': False, 'perform_update': False, 'boot_done': True, 'dataprotection_acknowledged': True, 'debug_level': 10, 'release_train': 'master', 'version': '1.99.100', 'lastlivevaluesJson': {'timestamp': 1668530258, 'time': '17:37:38', 'grid': 0.414, 'house-power': 0.429, 'charging-all': 0.0, 'pv-all': -0.0, 'cp3-power': 0.0, 'cp4-power': 0.0}, 'current_commit': '2022-11-10 12:58:50 +0100 [dae7a3f6]', 'current_missing_commits': [], 'current_branch': 'master', 'current_branch_commit': '2022-11-10 12:58:50 +0100 [dae7a3f6]', 'datastore_version': 3, 'module_update_completed': True}
2022-11-15 17:38:04,804 - {control.data:309} - {DEBUG:MainThread} - device0
{'name': 'MQTT', 'type': 'mqtt', 'id': 0, 'configuration': {}}
2022-11-15 17:38:04,805 - {control.data:311} - {DEBUG:MainThread} - component0
{'name': 'MQTT-EVU-Kit', 'type': 'counter', 'id': 0, 'configuration': {}}
2022-11-15 17:38:04,805 - {control.data:311} - {DEBUG:MainThread} - component6
{'name': 'MQTT-Wechselrichter', 'type': 'inverter', 'id': 6, 'configuration': {}}
2022-11-15 17:38:04,805 - {control.data:309} - {DEBUG:MainThread} - device2
{'name': 'Kostal Plenticore', 'type': 'kostal_plenticore', 'id': 2, 'configuration': {'ip_address': '192.168.1.170'}}
2022-11-15 17:38:04,805 - {control.data:283} - {DEBUG:MainThread} - 

2022-11-15 17:38:04,805 - {control.algorithm:45} - {DEBUG:MainThread} - # Algorithmus-Start
2022-11-15 17:38:04,806 - {control.algorithm:47} - {INFO:MainThread} - EVU-Punkt: Leistung[W] 426, Ströme[A] [0.338, 1.595, 0.502]
2022-11-15 17:38:04,806 - {control.algorithm:85} - {INFO:MainThread} - ## Überschuss-Ladung über Mindeststrom bei PV-Laden zurücknehmen.
2022-11-15 17:38:04,811 - {control.algorithm:123} - {DEBUG:MainThread} - Ladung an LP3 auf 6A angepasst.
2022-11-15 17:38:04,813 - {control.algorithm:123} - {DEBUG:MainThread} - Ladung an LP4 auf 10A angepasst.
2022-11-15 17:38:04,814 - {control.algorithm:205} - {DEBUG:MainThread} - ## Ladung muss nicht wegen aktiven Lastmanagements gestoppt werden.
2022-11-15 17:38:04,815 - {control.algorithm:574} - {INFO:MainThread} - ## Zuteilung des Überschusses
2022-11-15 17:38:04,816 - {control.algorithm:610} - {INFO:MainThread} - ## Zuteilung beendet, da kein Ladepunkt mehr auf Zuteilung wartet.
2022-11-15 17:38:04,816 - {control.algorithm:870} - {INFO:MainThread} - ## Übrigen Überschuss verteilen.
2022-11-15 17:38:04,818 - {control.process:22} - {DEBUG:MainThread} - # Ladung starten.
2022-11-15 17:38:04,819 - {control.process:108} - {INFO:MainThread} - LP3: set current 6 A
2022-11-15 17:38:04,819 - {control.chargepoint:642} - {ERROR:MainThread} - Phasenumschaltung an Ladepunkt4 nicht möglich, da der Ladepunkt keine Phasenumschaltung unterstützt.
2022-11-15 17:38:04,820 - {control.process:108} - {INFO:MainThread} - LP4: set current 10 A
2022-11-15 17:38:04,821 - {soc.modules.common.component_context:24} - {DEBUG:cp3} - Update Komponente ['Ladepunkt']
2022-11-15 17:38:04,821 - {modules.mqtt.chargepoint_module:33} - {DEBUG:cp3} - MQTT-Ladepunkte abonnieren die Soll-Stromstärke direkt vom Broker.
2022-11-15 17:38:04,826 - {soc.modules.common.component_context:24} - {DEBUG:cp4} - Update Komponente ['Ladepunkt']
2022-11-15 17:38:04,826 - {modules.mqtt.chargepoint_module:33} - {DEBUG:cp4} - MQTT-Ladepunkte abonnieren die Soll-Stromstärke direkt vom Broker.
2022-11-15 17:38:04,828 - {control.pv:433} - {DEBUG:MainThread} - -541.0W EVU-Überschuss, der für die Regelung verfügbar ist, davon 0W für die Einschaltverzögerung reservierte Leistung.
2022-11-15 17:38:04,829 - {control.counter:446} - {DEBUG:MainThread} - 34574W verbleibende EVU-Bezugs-Leistung
2022-11-15 17:38:14,587 - {root:63} - {INFO:MainThread} - # ***Start*** 
2022-11-15 17:38:14,625 - {soc.modules.common.component_context:51} - {DEBUG:device0} - Update Komponenten ['MQTT-EVU-Kit', 'MQTT-Wechselrichter']
2022-11-15 17:38:14,626 - {soc.modules.common.component_context:51} - {DEBUG:device2} - Update Komponenten []
2022-11-15 17:38:14,626 - {modules.mqtt.device:47} - {DEBUG:device0} - MQTT-Module müssen nicht ausgelesen werden.
2022-11-15 17:38:14,626 - {soc.modules.common.component_context:24} - {DEBUG:cp3} - Update Komponente ['Ladepunkt']
2022-11-15 17:38:14,627 - {soc.modules.common.component_context:24} - {DEBUG:cp4} - Update Komponente ['Ladepunkt']
2022-11-15 17:38:14,628 - {modules.mqtt.chargepoint_module:37} - {DEBUG:cp3} - MQTT-Ladepunkte müssen nicht ausgelesen werden.
2022-11-15 17:38:14,628 - {modules.mqtt.chargepoint_module:37} - {DEBUG:cp4} - MQTT-Ladepunkte müssen nicht ausgelesen werden.
2022-11-15 17:38:14,640 - {modules.loadvars:96} - {ERROR:MainThread} - Element 7 konnte keinem Gerät zugeordnet werden.
2022-11-15 17:38:14,640 - {soc.modules.common.component_context:24} - {DEBUG:cp3} - Update Komponente ['Ladepunkt']
2022-11-15 17:38:14,641 - {soc.modules.common.component_context:24} - {DEBUG:cp4} - Update Komponente ['Ladepunkt']
2022-11-15 17:38:14,644 - {soc.modules.common.component_context:24} - {DEBUG:component6} - Update Komponente ['MQTT-Wechselrichter']
2022-11-15 17:38:14,687 - {soc.modules.common.component_context:24} - {DEBUG:component0} - Update Komponente ['MQTT-EVU-Kit']
2022-11-15 17:38:14,735 - {control.counter:427} - {DEBUG:MainThread} - 34587W EVU-Leistung, die noch bezogen werden kann.
2022-11-15 17:38:14,737 - {control.chargepoint:689} - {DEBUG:MainThread} - EV-Phasenzahl beschränkt die nutzbaren Phasen auf 3
2022-11-15 17:38:14,738 - {control.chargepoint:680} - {DEBUG:MainThread} - Phasenzahl Lademodus: 1
2022-11-15 17:38:14,739 - {control.ev:389} - {DEBUG:MainThread} - Änderung der Sollstromstärke :False, Änderung des Lademodus :False
2022-11-15 17:38:14,740 - {control.chargepoint:844} - {DEBUG:MainThread} - LP 3, EV: ID3 (EV-Nr.2): Theoretisch benötigter Strom 6A, Lademodus pv_charging, Submodus: instant_charging, Phasen: 1, Priorität: False, max. Ist-Strom: 0
2022-11-15 17:38:14,741 - {control.chargepoint:689} - {DEBUG:MainThread} - EV-Phasenzahl beschränkt die nutzbaren Phasen auf 1
2022-11-15 17:38:14,741 - {control.chargepoint:680} - {DEBUG:MainThread} - Phasenzahl Lademodus: 1
2022-11-15 17:38:14,741 - {control.chargepoint:706} - {INFO:MainThread} - Phasenumschaltung an Ladepunkt 4 wird durch die Hardware nicht unterstützt.
2022-11-15 17:38:14,742 - {control.ev:389} - {DEBUG:MainThread} - Änderung der Sollstromstärke :False, Änderung des Lademodus :False
2022-11-15 17:38:14,742 - {control.chargepoint:844} - {DEBUG:MainThread} - LP 4, EV: smart (EV-Nr.3): Theoretisch benötigter Strom 10A, Lademodus pv_charging, Submodus: instant_charging, Phasen: 0, Priorität: False, max. Ist-Strom: 0
2022-11-15 17:38:14,743 - {control.pv:89} - {DEBUG:MainThread} - -528.0W EVU-Überschuss, der für die Regelung verfügbar ist, davon 0W für die Einschaltverzögerung reservierte Leistung.
2022-11-15 17:38:14,744 - {control.counter:106} - {ERROR:MainThread} - Fehler in der allgemeinen Zähler-Klasse
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/counter.py", line 77, in set_home_consumption
    home_consumption, elements = self._calc_home_consumption()
  File "/var/www/html/openWB/packages/control/counter.py", line 123, in _calc_home_consumption
    power += data.data.pv_data[f"pv{element['id']}"].data["get"]["power"]
KeyError: 'pv7'
2022-11-15 17:38:14,747 - {control.data:296} - {DEBUG:MainThread} - all
{'get': {'power': 0}, 'config': {'configured': False}, 'set': {'charging_power_left': 0, 'switch_on_soc_reached': False}}
2022-11-15 17:38:14,748 - {control.data:269} - {DEBUG:MainThread} - cp_all_data
AllChargepointData(get=AllGet(daily_imported=3470, daily_exported=0, power=0, imported=3061000, exported=0))
2022-11-15 17:38:14,748 - {control.data:296} - {DEBUG:MainThread} - cp3
ChargepointData(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), info=ConnectedInfo(id=0, name='Ladepunkt'), soc=82), currents=[0, 0, 0], daily_imported=0, daily_exported=0, exported=0, fault_str='Kein Fehler.', fault_state=0, imported=1710220, phases_in_use=0, plug_state=True, power=0, rfid_timestamp=None, rfid=None, state_str=None, voltages=[227.9, 228.4, 230.1]), set=Set(change_ev_permitted=[True, ''], charging_ev=2, charging_ev_prev=2, current=6, energy_to_charge=0, loadmanagement_available=True, log=Log(chargemode_log_entry='pv_charging', imported_at_mode_switch=1707392, imported_at_plugtime=1707392, imported_since_mode_switch=2823, imported_since_plugged=2828, range_charged=15.683333333333334, time_charged='1:37', timestamp_start_charging='11/14/2022, 11:25:33'), manual_lock=False, phases_to_use=1, plug_time='11/11/2022, 12:50:28', required_power=0, rfid=None, charging_ev_data=<control.ev.Ev object at 0xb1eaac40>), config=Config(connection_module={'type': 'mqtt', 'name': 'MQTT-Ladepunkt', 'configuration': {}}, power_module={}, ev=2, name='MQTT-CP3-ID3', type='mqtt', template=0, connected_phases=3, phase_1=3, auto_phase_switch_hw=True, control_pilot_interruption_hw=True, id=3))
2022-11-15 17:38:14,748 - {control.data:296} - {DEBUG:MainThread} - cp4
ChargepointData(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), info=ConnectedInfo(id=0, name='Ladepunkt'), soc=67), currents=[0, 0, 0], daily_imported=3470, daily_exported=0, exported=0, fault_str='Kein Fehler.', fault_state=0, imported=1350780, phases_in_use=0, plug_state=True, power=0, rfid_timestamp=None, rfid=None, state_str=None, voltages=[0, 0, 0]), set=Set(change_ev_permitted=[True, ''], charging_ev=3, charging_ev_prev=3, current=10, energy_to_charge=0, loadmanagement_available=True, log=Log(chargemode_log_entry='pv_charging', imported_at_mode_switch=1347360, imported_at_plugtime=1347360, imported_since_mode_switch=3390, imported_since_plugged=3420, range_charged=21.1875, time_charged='1:35', timestamp_start_charging='11/15/2022, 14:46:23'), manual_lock=False, phases_to_use=1, plug_time='11/15/2022, 14:46:23', required_power=0, rfid=None, charging_ev_data=<control.ev.Ev object at 0xb1eab058>), config=Config(connection_module={'type': 'mqtt', 'name': 'MQTT-Ladepunkt', 'configuration': {}}, power_module={}, ev=3, name='MQTT-CP4-smart', type='mqtt', template=0, connected_phases=3, phase_1=1, auto_phase_switch_hw=False, control_pilot_interruption_hw=False, id=4))
2022-11-15 17:38:14,748 - {control.data:296} - {DEBUG:MainThread} - cpt0
CpTemplateData(autolock=Autolock(active=False, plans={}, wait_for_charging_end=False), name='Standard Ladepunkt-Vorlage', rfid_enabling=False, valid_tags=[], id=0)
2022-11-15 17:38:14,749 - {control.data:296} - {DEBUG:MainThread} - counter0
{'set': {'state_str': 'Das Lastmanagement regelt nur anhand der Gesamtleistung, da keine                     Phasenströme ermittelt werden konnten.', 'consumption_left': 34587, 'currents_used': [0.339, 1.644, 0.515]}, 'get': {'daily_exported': 6756.179444443, 'daily_imported': 8825.256027021, 'fault_str': 'Kein Fehler.', 'fault_state': 0, 'power': 413, 'imported': 6226974.899432419, 'exported': 9574716.203055555, 'frequency': 50.03, 'voltages': [230.3, 228.78, 228.09], 'currents': [0.339, 1.644, 0.515], 'powers': [35, 307, 83], 'power_factors': [0.549, 0.9256, 0.8781]}, 'config': {'max_currents': [25, 25, 25], 'max_total_power': 35000}}
2022-11-15 17:38:14,749 - {control.data:273} - {DEBUG:MainThread} - counter_all_data
CounterAllData(get=Get(hierarchy=[{'id': 0, 'type': 'counter', 'children': [{'id': 3, 'type': 'cp', 'children': []}, {'id': 4, 'type': 'cp', 'children': []}, {'id': 6, 'type': 'inverter', 'children': []}, {'id': 7, 'type': 'inverter', 'children': []}]}]), set=Set(loadmanagement_active=False, home_consumption=429, invalid_home_consumption=0, daily_yield_home_consumption=11215.076582578002))
2022-11-15 17:38:14,750 - {control.data:296} - {DEBUG: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=10, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=10000, soc=50))))
2022-11-15 17:38:14,751 - {control.data:296} - {DEBUG:MainThread} - ct1
ChargeTemplateData(name='ID3-LPV1', 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=6, min_current=6, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=16, limit=Limit(selected='none', amount=10000, soc=100))))
2022-11-15 17:38:14,751 - {control.data:296} - {DEBUG:MainThread} - ct2
ChargeTemplateData(name='smart-LPV1', 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=10, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=10000, soc=100))))
2022-11-15 17:38:14,751 - {control.data:296} - {DEBUG:MainThread} - ct3
ChargeTemplateData(name='BMW-LPV1', disable_after_unplug=False, prio=False, load_default=False, time_charging=TimeCharging(active=False, plans={}), chargemode=Chargemode(selected='stop', pv_charging=PvCharging(min_soc_current=10, min_current=6, feed_in_limit=False, min_soc=0, max_soc=70), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=1000, soc=50))))
2022-11-15 17:38:14,751 - {control.data:296} - {DEBUG: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=17, min_current=6, max_current_one_phase=32, battery_capacity=58, nominal_difference=2), et_num=0)), control_parameter=ControlParameter(required_current=0, phases=0, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='stop', chargemode='stop', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=0, ev_template=0, name='Standard-Fahrzeug', tag_id=[], get=Get(soc=0, soc_timestamp='', force_soc_update=False, range=0, fault_state=0, fault_str=''))
2022-11-15 17:38:14,751 - {control.data:296} - {DEBUG:MainThread} - ev2
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='ID3', 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=18, min_current=6, max_current_one_phase=18, battery_capacity=58, nominal_difference=2), et_num=0)), control_parameter=ControlParameter(required_current=6, phases=1, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='instant_charging', chargemode='pv_charging', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=1, ev_template=1, name='ID3', tag_id=[], get=Get(soc=82, soc_timestamp='11/15/2022, 13:00:32', force_soc_update=False, range=275.0, fault_state=0, fault_str='Kein Fehler.'))
2022-11-15 17:38:14,753 - {control.data:296} - {DEBUG:MainThread} - ev3
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='smart', max_current_multi_phases=10, max_phases=1, phase_switch_pause=2, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=False, control_pilot_interruption_duration=4, average_consump=16, min_current=10, max_current_one_phase=10, battery_capacity=17, nominal_difference=1), et_num=0)), control_parameter=ControlParameter(required_current=10, phases=0, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='instant_charging', chargemode='pv_charging', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=2, ev_template=2, name='smart', tag_id=[], get=Get(soc=67, soc_timestamp='11/15/2022, 16:16:28', force_soc_update=False, range=77.0, fault_state=0, fault_str='Kein Fehler.'))
2022-11-15 17:38:14,754 - {control.data:296} - {DEBUG:MainThread} - ev4
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='BMW 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=17, min_current=6, max_current_one_phase=16, battery_capacity=42, nominal_difference=2), et_num=0)), control_parameter=ControlParameter(required_current=0, phases=0, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='stop', chargemode='stop', used_amount_instant_charging=0, imported_at_plan_start=0, current_plan=None), charge_template=3, ev_template=3, name='BMW-Test', tag_id=[], get=Get(soc=99, soc_timestamp='11/13/2022, 20:58:58', force_soc_update=False, range=283.0, fault_state=0, fault_str='Kein Fehler.'))
2022-11-15 17:38:14,754 - {control.data:296} - {DEBUG: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=17, min_current=6, max_current_one_phase=32, battery_capacity=58, nominal_difference=2)
2022-11-15 17:38:14,754 - {control.data:296} - {DEBUG:MainThread} - et1
EvTemplateData(name='ID3', 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=18, min_current=6, max_current_one_phase=18, battery_capacity=58, nominal_difference=2)
2022-11-15 17:38:14,754 - {control.data:296} - {DEBUG:MainThread} - et2
EvTemplateData(name='smart', max_current_multi_phases=10, max_phases=1, phase_switch_pause=2, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=False, control_pilot_interruption_duration=4, average_consump=16, min_current=10, max_current_one_phase=10, battery_capacity=17, nominal_difference=1)
2022-11-15 17:38:14,754 - {control.data:296} - {DEBUG:MainThread} - et3
EvTemplateData(name='BMW 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=17, min_current=6, max_current_one_phase=16, battery_capacity=42, nominal_difference=2)
2022-11-15 17:38:14,755 - {control.data:277} - {DEBUG:MainThread} - general_data
GeneralData(chargemode_config=ChargemodeConfig(instant_charging=InstantCharging(phases_to_use=3), pv_charging=PvCharging(bat_prio=False, charging_power_reserve=200, control_range=[-230, 0], feed_in_yield=0, phase_switch_delay=8, phases_to_use=0, rundown_power=1000, rundown_soc=50, switch_off_delay=60, switch_off_soc=40, switch_off_threshold=5, switch_on_delay=30, switch_on_soc=60, switch_on_threshold=1500), scheduled_charging=ScheduledCharging(phases_to_use=0), standby=Standby(phases_to_use=3), stop=Stop(phases_to_use=1), time_charging=TimeCharging(phases_to_use=3), unbalanced_load_limit=18, unbalanced_load=True), 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.3176, range_unit='km', ripple_control_receiver=RippleControlReceiver(configured=False, r1_active=False, r2_active=False))
2022-11-15 17:38:14,755 - {control.data:296} - {DEBUG:MainThread} - graph
{'config': {'duration': 120}}
2022-11-15 17:38:14,755 - {control.data:279} - {DEBUG: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='cards'), led=Led(active=False), rfid=Rfid(active=False))
2022-11-15 17:38:14,755 - {control.data:296} - {DEBUG:MainThread} - all
{'set': {'overhang_power_left': -528.0, 'available_power': -528.0, 'reserved_evu_overhang': 0, 'released_evu_overhang': 0}, 'get': {'power': 0, 'exported': 17994726, 'daily_exported': 12616, 'monthly_exported': 0, 'yearly_exported': 0}, 'config': {'configured': True}}
2022-11-15 17:38:14,756 - {control.data:296} - {DEBUG:MainThread} - pv6
{'get': {'daily_exported': 12616, 'monthly_exported': 0, 'yearly_exported': 0, 'fault_str': 'Kein Fehler.', 'fault_state': 0, 'power': 0, 'exported': 17994726}, 'config': {'max_ac_out': 0}}
2022-11-15 17:38:14,756 - {control.data:296} - {DEBUG:MainThread} - system
{'update_in_progress': False, 'perform_update': False, 'boot_done': True, 'dataprotection_acknowledged': True, 'debug_level': 10, 'release_train': 'master', 'version': '1.99.100', 'lastlivevaluesJson': {'timestamp': 1668530284, 'time': '17:38:04', 'grid': 0.426, 'house-power': 0.429, 'charging-all': 0.0, 'pv-all': -0.0, 'cp3-power': 0.0, 'cp4-power': 0.0}, 'current_commit': '2022-11-10 12:58:50 +0100 [dae7a3f6]', 'current_missing_commits': [], 'current_branch': 'master', 'current_branch_commit': '2022-11-10 12:58:50 +0100 [dae7a3f6]', 'datastore_version': 3, 'module_update_completed': True}
2022-11-15 17:38:14,756 - {control.data:309} - {DEBUG:MainThread} - device0
{'name': 'MQTT', 'type': 'mqtt', 'id': 0, 'configuration': {}}
2022-11-15 17:38:14,756 - {control.data:311} - {DEBUG:MainThread} - component0
{'name': 'MQTT-EVU-Kit', 'type': 'counter', 'id': 0, 'configuration': {}}
2022-11-15 17:38:14,756 - {control.data:311} - {DEBUG:MainThread} - component6
{'name': 'MQTT-Wechselrichter', 'type': 'inverter', 'id': 6, 'configuration': {}}
2022-11-15 17:38:14,756 - {control.data:309} - {DEBUG:MainThread} - device2
{'name': 'Kostal Plenticore', 'type': 'kostal_plenticore', 'id': 2, 'configuration': {'ip_address': '192.168.1.170'}}
2022-11-15 17:38:14,757 - {control.data:283} - {DEBUG:MainThread} - 

2022-11-15 17:38:14,757 - {control.algorithm:45} - {DEBUG:MainThread} - # Algorithmus-Start
2022-11-15 17:38:14,757 - {control.algorithm:47} - {INFO:MainThread} - EVU-Punkt: Leistung[W] 413, Ströme[A] [0.339, 1.644, 0.515]
2022-11-15 17:38:14,757 - {control.algorithm:85} - {INFO:MainThread} - ## Überschuss-Ladung über Mindeststrom bei PV-Laden zurücknehmen.
2022-11-15 17:38:14,758 - {control.algorithm:123} - {DEBUG:MainThread} - Ladung an LP3 auf 6A angepasst.
2022-11-15 17:38:14,761 - {control.algorithm:123} - {DEBUG:MainThread} - Ladung an LP4 auf 10A angepasst.
2022-11-15 17:38:14,762 - {control.algorithm:205} - {DEBUG:MainThread} - ## Ladung muss nicht wegen aktiven Lastmanagements gestoppt werden.
2022-11-15 17:38:14,764 - {control.algorithm:574} - {INFO:MainThread} - ## Zuteilung des Überschusses
2022-11-15 17:38:14,765 - {control.algorithm:610} - {INFO:MainThread} - ## Zuteilung beendet, da kein Ladepunkt mehr auf Zuteilung wartet.
2022-11-15 17:38:14,765 - {control.algorithm:870} - {INFO:MainThread} - ## Übrigen Überschuss verteilen.
2022-11-15 17:38:14,766 - {control.process:22} - {DEBUG:MainThread} - # Ladung starten.
2022-11-15 17:38:14,766 - {control.process:108} - {INFO:MainThread} - LP3: set current 6 A
2022-11-15 17:38:14,767 - {control.chargepoint:642} - {ERROR:MainThread} - Phasenumschaltung an Ladepunkt4 nicht möglich, da der Ladepunkt keine Phasenumschaltung unterstützt.
2022-11-15 17:38:14,767 - {control.process:108} - {INFO:MainThread} - LP4: set current 10 A
2022-11-15 17:38:14,769 - {soc.modules.common.component_context:24} - {DEBUG:cp3} - Update Komponente ['Ladepunkt']
2022-11-15 17:38:14,769 - {modules.mqtt.chargepoint_module:33} - {DEBUG:cp3} - MQTT-Ladepunkte abonnieren die Soll-Stromstärke direkt vom Broker.
2022-11-15 17:38:14,771 - {soc.modules.common.component_context:24} - {DEBUG:cp4} - Update Komponente ['Ladepunkt']
2022-11-15 17:38:14,771 - {modules.mqtt.chargepoint_module:33} - {DEBUG:cp4} - MQTT-Ladepunkte abonnieren die Soll-Stromstärke direkt vom Broker.
2022-11-15 17:38:14,779 - {control.pv:433} - {DEBUG:MainThread} - -528.0W EVU-Überschuss, der für die Regelung verfügbar ist, davon 0W für die Einschaltverzögerung reservierte Leistung.
2022-11-15 17:38:14,780 - {control.counter:446} - {DEBUG:MainThread} - 34587W verbleibende EVU-Bezugs-Leistung
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Smart EQ forfour
rleidner
Beiträge: 793
Registriert: Mo Nov 02, 2020 9:50 am

Re: Kostal Plenticore

Beitrag von rleidner »

Hi Lena,
vielleicht noch ein Hinweis:
Wenn ich den plenticore code mit anderen vergleiche, scheint in device.py die Methode add_component und deren Aufruf zu fehlen.
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Smart EQ forfour
yankee
Beiträge: 481
Registriert: Sa Mai 16, 2020 11:34 am

Re: Kostal Plenticore

Beitrag von yankee »

rleidner hat geschrieben: Di Nov 15, 2022 4:43 pm

Code: Alles auswählen

[..]
2022-11-15 17:37:59,728 - {helpermodules.subdata:700} - {ERROR:Thread-5} - Fehler im subdata-Modul
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/subdata.py", line 675, in process_system_topic
    var["device"+index].add_component(config)
  File "/var/www/html/openWB/packages/modules/common/configurable_device.py", line 72, in add_component
    self.components["component" + str(component_config.id)] = self.__component_factory(component_config)
  File "/var/www/html/openWB/packages/modules/common/configurable_device.py", line 57, in __call__
    required_type = arg_spec.annotations[arg_spec.args[0]]
KeyError: 'component_config'
[..]
Wo ich es zufällig gerade sehe. Zumindest der Fehler ist einfach. Da fehlen Type-annotations im Code
Zuletzt geändert von yankee am Mi Nov 16, 2022 12:02 pm, insgesamt 1-mal geändert.
rleidner
Beiträge: 793
Registriert: Mo Nov 02, 2020 9:50 am

Re: Kostal Plenticore

Beitrag von rleidner »

yankee hat geschrieben: Di Nov 15, 2022 9:58 pm
rleidner hat geschrieben: Di Nov 15, 2022 4:43 pm KeyError: 'component_config'
[..]
[/code]
Wo ich es zufällig gerade sehe. Zumindest der Fehler ist einfach. Da fehlen Type-annotations im Code
Danke, damit funktioniert der Plenticore WR (solo, also ohne Zähler oder Batterie) auch in 2.0:
plenti4.JPG
Diese Änderungen habe ich in meinem System gemacht:

Code: Alles auswählen

diff ~/plenti/device.py device.py
86c86
<     def create_bat_component(component_config):
---
>     def create_bat_component(component_config: KostalPlenticoreBatSetup):
89c89
<     def create_counter_component(component_config):
---
>     def create_counter_component(component_config: KostalPlenticoreCounterSetup):
92c92
<     def create_inverter_component(component_config):
---
>     def create_inverter_component(component_config: KostalPlenticoreInverterSetup):
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Smart EQ forfour
LenaK
Beiträge: 1021
Registriert: Fr Jan 22, 2021 6:40 am

Re: Kostal Plenticore

Beitrag von LenaK »

Ich habe Deine Änderungen mit in PR #648 gepackt (Review und Merge noch ausstehend). Bitte dann testen!
Danke auch an Yannik.
Antifyuri
Beiträge: 6
Registriert: Sa Nov 19, 2022 10:05 am

Re: Kostal Plenticore

Beitrag von Antifyuri »

Ich habe gerade auch mal den PR#648 getestet und scheint zumindest ohne Speicher zu funktionieren. Sobald ich den Speicher als Komponente mit angebe, bekomme ich fehler im Bat-Modul

Code: Alles auswählen

2022-11-19 11:00:00,831 - {control.bat:72} - {ERROR:MainThread} - Fehler im Bat-Modul 7
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/bat.py", line 69, in calc_power_for_all_components
    soc_sum += battery.data["get"]["soc"]
KeyError: 'soc'
2022-11-19 11:00:00,832 - {control.bat:81} - {ERROR:MainThread} - Fehler im Bat-Modul
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/bat.py", line 73, in calc_power_for_all_components
    self.data["get"]["soc"] = int(soc_sum / soc_count)
ZeroDivisionError: division by zero
2022-11-19 11:00:00,968 - {helpermodules.graph:56} - {ERROR:MainThread} - Fehler im Graph-Modul
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/graph.py", line 46, in pub_graph_data
    dataline.update({"bat-all-soc": data.data.bat_data["all"].data["get"]["soc"]})
KeyError: 'soc'
2022-11-19 11:00:10,785 - {control.bat:72} - {ERROR:MainThread} - Fehler im Bat-Modul 7
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/bat.py", line 69, in calc_power_for_all_components
    soc_sum += battery.data["get"]["soc"]
KeyError: 'soc'
2022-11-19 11:00:10,787 - {control.bat:81} - {ERROR:MainThread} - Fehler im Bat-Modul
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/bat.py", line 73, in calc_power_for_all_components
    self.data["get"]["soc"] = int(soc_sum / soc_count)
ZeroDivisionError: division by zero
2022-11-19 11:00:10,902 - {helpermodules.graph:56} - {ERROR:MainThread} - Fehler im Graph-Modul
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/graph.py", line 46, in pub_graph_data
    dataline.update({"bat-all-soc": data.data.bat_data["all"].data["get"]["soc"]})
KeyError: 'soc'
2022-11-19 11:00:20,731 - {control.bat:72} - {ERROR:MainThread} - Fehler im Bat-Modul 7
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/bat.py", line 69, in calc_power_for_all_components
    soc_sum += battery.data["get"]["soc"]
KeyError: 'soc'
2022-11-19 11:00:20,731 - {control.bat:81} - {ERROR:MainThread} - Fehler im Bat-Modul
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/bat.py", line 73, in calc_power_for_all_components
    self.data["get"]["soc"] = int(soc_sum / soc_count)
ZeroDivisionError: division by zero
2022-11-19 11:00:20,834 - {helpermodules.graph:56} - {ERROR:MainThread} - Fehler im Graph-Modul
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/graph.py", line 46, in pub_graph_data
    dataline.update({"bat-all-soc": data.data.bat_data["all"].data["get"]["soc"]})
KeyError: 'soc'
2022-11-19 11:00:30,766 - {control.bat:72} - {ERROR:MainThread} - Fehler im Bat-Modul 7
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/bat.py", line 69, in calc_power_for_all_components
    soc_sum += battery.data["get"]["soc"]
KeyError: 'soc'
2022-11-19 11:00:30,768 - {control.bat:81} - {ERROR:MainThread} - Fehler im Bat-Modul
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/control/bat.py", line 73, in calc_power_for_all_components
    self.data["get"]["soc"] = int(soc_sum / soc_count)
ZeroDivisionError: division by zero
2022-11-19 11:00:30,874 - {helpermodules.graph:56} - {ERROR:MainThread} - Fehler im Graph-Modul
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/graph.py", line 46, in pub_graph_data
    dataline.update({"bat-all-soc": data.data.bat_data["all"].data["get"]["soc"]})
KeyError: 'soc'
Anschließend geht nichts mehr. Eine Idee?
Antworten