Re: Laderungssteuerung
Verfasst: Di Okt 17, 2023 6:49 pm
Es sieht zwar besser aus, aber leider zu früh gefreut. Der payload-Fehler (am Schluss des Logs) ist noch da...
Code: Alles auswählen
2023-10-17 20:32:00,677 - {root:66} - {INFO:MainThread} - # ***Start***
2023-10-17 20:32:00,723 - {modules.common.component_context:51} - {DEBUG:device0} - Update Komponenten ['SMA Home Manager Zähler']
2023-10-17 20:32:00,725 - {modules.devices.sma_sunny_boy.device:72} - {DEBUG:device1} - Start device reading {'component1': <modules.devices.sma_sunny_boy.inverter.SmaSunnyBoyInverter object at 0x722dc2f8>}
2023-10-17 20:32:00,726 - {modules.devices.sma_sunny_island.device:47} - {DEBUG:device2} - Start device reading {'component2': <modules.devices.sma_sunny_island.bat.SunnyIslandBat object at 0x71a81418>}
2023-10-17 20:32:00,730 - {modules.common.component_context:24} - {DEBUG:set values cp3} - Update Komponente ['Ladepunkt']
2023-10-17 20:32:00,731 - {modules.common.component_context:24} - {DEBUG:device2} - Update Komponente ['SMA Sunny Island Speicher']
2023-10-17 20:32:00,750 - {modules.common.component_context:24} - {DEBUG:device1} - Update Komponente ['Sma Sunny Boy/Tripower Wechselrichter']
2023-10-17 20:32:00,785 - {modules.common.store._api:26} - {DEBUG:device2} - Raw data BatState(imported=11736900, exported=8494100, power=-500, soc=72)
2023-10-17 20:32:00,884 - {modules.common.component_context:24} - {DEBUG:device0} - Update Komponente ['SMA Home Manager Zähler']
2023-10-17 20:32:00,885 - {modules.common.store._api:26} - {DEBUG:device0} - Raw data CounterState(currents=[-1.902, 1.623, 1.064], powers=[-445.9, 297.6, 167.0], voltages=[237.928, 239.002, 237.478], power_factors=[0.991, 0.913, 0.683], imported=17865633.2, exported=28634447.1, power=18.7, frequency=50)
2023-10-17 20:32:00,886 - {modules.devices.sma_shm.device:29} - {DEBUG:device0} - All components updated
2023-10-17 20:32:01,368 - {modules.devices.sma_sunny_boy.inverter:72} - {DEBUG:device1} - WR 192.168.0.XX: InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=58017064, dc_power=4294967296)
2023-10-17 20:32:01,368 - {modules.common.store._api:26} - {DEBUG:device1} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=58017064, dc_power=4294967296)
2023-10-17 20:32:01,372 - {modules.common.component_context:24} - {DEBUG:component1} - Update Komponente ['Sma Sunny Boy/Tripower Wechselrichter']
2023-10-17 20:32:01,373 - {modules.common.store._api:26} - {DEBUG:component1} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=58017064, dc_power=None)
2023-10-17 20:32:01,374 - {modules.common.store._api:30} - {INFO:component1} - Saving InverterState(currents=[0.0, 0.0, 0.0], power=0, exported=58017064, dc_power=None)
2023-10-17 20:32:01,375 - {modules.common.component_context:24} - {DEBUG:component2} - Update Komponente ['SMA Sunny Island Speicher']
2023-10-17 20:32:01,377 - {modules.common.component_context:24} - {DEBUG:update values cp3} - Update Komponente ['Ladepunkt']
2023-10-17 20:32:01,382 - {modules.common.store._api:30} - {INFO:component2} - Saving BatState(imported=11736900, exported=8494100, power=-500, soc=72)
2023-10-17 20:32:01,417 - {modules.common.component_context:24} - {DEBUG:component0} - Update Komponente ['SMA Home Manager Zähler']
2023-10-17 20:32:01,418 - {modules.common.store._api:30} - {INFO:component0} - Saving CounterState(currents=[-1.902, 1.623, 1.064], powers=[-445.9, 297.6, 167.0], voltages=[237.928, 239.002, 237.478], power_factors=[0.991, 0.913, 0.683], imported=17865633.2, exported=28634447.1, power=18.7, frequency=50)
2023-10-17 20:32:01,535 - {control.bat_all:153} - {DEBUG:MainThread} - Verbleibende Speicher-Leistung durch maximale Ausgangsleistung auf 550W begrenzt.
2023-10-17 20:32:01,537 - {control.bat_all:192} - {DEBUG:MainThread} - Erlaubte Entlade-Leistung nutzen 550W
2023-10-17 20:32:01,538 - {control.bat_all:164} - {INFO:MainThread} - 550W verbleibende Speicher-Leistung
2023-10-17 20:32:01,542 - {control.counter:138} - {INFO:MainThread} - Verbleibende Ströme an Zähler 0: [17.92, 14.4, 14.97]A
2023-10-17 20:32:01,544 - {control.counter:161} - {INFO:MainThread} - Verbleibende Leistung an Zähler 0: 10981.3W
2023-10-17 20:32:01,549 - {control.chargepoint.chargepoint:271} - {INFO:MainThread} - LP 3: Keine Ladung, da kein Auto angesteckt ist.
2023-10-17 20:32:01,557 - {modules.common.simcount._simcount:38} - {DEBUG:MainThread} - Previous state: SimCounterState(timestamp=1697567511.2662632, power=505.9, imported=13981.463472053461, exported=0)
2023-10-17 20:32:01,560 - {modules.common.simcount._calculate:13} - {DEBUG:MainThread} - time passed: 0.00285873, power1: 505.9, power2: 518.7
2023-10-17 20:32:01,561 - {modules.common.simcount._calculate:29} - {DEBUG:MainThread} - power did not change sign. Total energy: 1.46453
2023-10-17 20:32:01,561 - {modules.common.simcount._simcount:47} - {DEBUG:MainThread} - imported: 1.46453 Wh, exported: 0 Wh, new state: SimCounterState(timestamp=1697567521.5576773, power=518.7, imported=13982.927997443378, exported=0)
2023-10-17 20:32:01,564 - {control.data:337} - {INFO:MainThread} - bat2
BatData(get=Get(soc=72, daily_exported=1500, daily_imported=4300, imported=11736900, exported=8494100, fault_state=0, fault_str='Kein Fehler.', power=-500))
2023-10-17 20:32:01,566 - {control.data:307} - {INFO:MainThread} - bat_all_data
BatAllData(config=Config(configured=True), get=Get(soc=72, daily_exported=1500, daily_imported=4300, imported=11736900, exported=8494100, power=-500), set=Set(charging_power_left=550, switch_on_soc_reached=True))
2023-10-17 20:32:01,567 - {control.data:308} - {INFO:MainThread} - cp_all_data
AllChargepointData(get=AllGet(daily_imported=770, daily_exported=0, power=0, imported=3936290, exported=0))
2023-10-17 20:32:01,569 - {control.data:337} - {INFO: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, time_charging_in_use=False), info=ConnectedInfo(id=0, name='Ladepunkt'), soc=0), currents=[0.02, 0.02, 0.03], daily_imported=770, daily_exported=0, exported=0, fault_str='Kein Fehler.', fault_state=0, imported=3936290, phases_in_use=1, plug_state=False, power=0, rfid_timestamp=None, rfid=None, state_str='Keine Ladung, da kein Auto angesteckt ist.', voltages=[237.9, 238.8, 237.2]), 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=1, plug_state_prev=False, plug_time=None, required_power=0, rfid=None, target_current=0, charging_ev_data=<control.ev.Ev object at 0x70651fa0>), config=Config(configuration={'mode': 'series', 'ip_address': 'localhost', 'duo_num': 0}, ev=0, name='Goette', type='internal_openwb', template=0, connected_phases=3, phase_1=1, auto_phase_switch_hw=False, control_pilot_interruption_hw=False, id=3))
2023-10-17 20:32:01,570 - {control.data:337} - {INFO:MainThread} - cpt0
CpTemplateData(autolock=Autolock(active=False, plans={}, wait_for_charging_end=False), id=0, max_current_multi_phases=16, max_current_single_phase=16, name='Standard Ladepunkt-Profil', rfid_enabling=False, valid_tags=[])
2023-10-17 20:32:01,574 - {control.data:337} - {INFO:MainThread} - counter0
CounterData(config=Config(max_currents=[16, 16, 16], max_total_power=11000), get=Get(powers=[-445.9, 297.6, 167.0], currents=[-1.9, 1.62, 1.06], voltages=[237.93, 239.0, 237.48], power_factors=[0.99, 0.91, 0.68], unbalanced_load=0, frequency=50, daily_exported=13998.8, daily_imported=3648.099999998, imported=17865633.2, exported=28634447.1, fault_state=0, fault_str='Kein Fehler.', power=18.7), set=Set(error_counter=0, reserved_surplus=0, released_surplus=0, raw_power_left=10981.3, raw_currents_left=[17.92, 14.4, 14.97], surplus_power_left=0, state_str=''))
2023-10-17 20:32:01,576 - {control.data:312} - {INFO:MainThread} - counter_all_data
CounterAllData(config=Config(reserve_for_not_charging=False), get=Get(hierarchy=[{'id': 0, 'type': 'counter', 'children': [{'id': 1, 'type': 'inverter', 'children': []}, {'id': 2, 'type': 'bat', 'children': []}, {'id': 3, 'type': 'cp', 'children': []}]}]), set=Set(loadmanagement_active=False, home_consumption=518.7, invalid_home_consumption=0, daily_yield_home_consumption=12339.46944593414, imported_home_consumption=13982.927997443378, disengageable_smarthome_power=0))
2023-10-17 20:32:01,578 - {control.data:337} - {INFO:MainThread} - ct0
ChargeTemplateData(name='Standard-Lade-Profil', disable_after_unplug=False, prio=False, load_default=False, time_charging=TimeCharging(active=False, plans={}), chargemode=Chargemode(selected='pv_charging', pv_charging=PvCharging(min_soc_current=10, min_current=0, feed_in_limit=False, min_soc=0, max_soc=100), scheduled_charging=ScheduledCharging(plans={}), instant_charging=InstantCharging(current=10, limit=Limit(selected='none', amount=1000, soc=50))))
2023-10-17 20:32:01,581 - {control.data:337} - {INFO:MainThread} - ev0
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='Standard-Fahrzeug-Profil', max_current_multi_phases=16, max_phases=3, phase_switch_pause=2, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=False, control_pilot_interruption_duration=4, average_consump=17000, min_current=6, max_current_single_phase=32, battery_capacity=82000, nominal_difference=1, keep_charge_active_duration=40), et_num=0), soc_error_counter=0), control_parameter=ControlParameter(required_current=0, required_currents=[0.0, 0.0, 0.0], phases=1, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode='stop', chargemode='stop', imported_instant_charging=None, imported_at_plan_start=None, current_plan=None, state=0), charge_template=0, ev_template=0, name='Standard-Fahrzeug', tag_id=[], get=Get(soc=0, soc_timestamp='', force_soc_update=True, range=0, fault_state=0, fault_str=''))
2023-10-17 20:32:01,582 - {control.data:337} - {INFO:MainThread} - ev3
EvData(set=Set(ev_template=EvTemplate(data=EvTemplateData(name='Standard-Fahrzeug-Profil', max_current_multi_phases=16, max_phases=3, phase_switch_pause=2, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=False, control_pilot_interruption_duration=4, average_consump=17000, min_current=6, max_current_single_phase=32, battery_capacity=82000, nominal_difference=1, keep_charge_active_duration=40), et_num=0), soc_error_counter=0), control_parameter=ControlParameter(required_current=0, required_currents=[0.0, 0.0, 0.0], phases=0, prio=False, timestamp_switch_on_off=None, timestamp_auto_phase_switch=None, timestamp_perform_phase_switch=None, submode=<Chargemode.STOP: 'stop'>, chargemode=<Chargemode.STOP: 'stop'>, imported_instant_charging=None, imported_at_plan_start=None, current_plan=None, state=0), 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='Kein Fehler.'))
2023-10-17 20:32:01,585 - {control.data:337} - {INFO:MainThread} - et0
EvTemplateData(name='Standard-Fahrzeug-Profil', max_current_multi_phases=16, max_phases=3, phase_switch_pause=2, prevent_phase_switch=False, prevent_charge_stop=False, control_pilot_interruption=False, control_pilot_interruption_duration=4, average_consump=17000, min_current=6, max_current_single_phase=32, battery_capacity=82000, nominal_difference=1, keep_charge_active_duration=40)
2023-10-17 20:32:01,587 - {control.data:316} - {INFO:MainThread} - general_data
GeneralData(chargemode_config=ChargemodeConfig(instant_charging=InstantCharging(phases_to_use=3), pv_charging=PvCharging(bat_prio=True, charging_power_reserve=200, control_range=[0, 230], feed_in_yield=4500, phase_switch_delay=7, phases_to_use=3, rundown_power=1000, rundown_soc=30, switch_off_delay=60, switch_off_soc=40, switch_off_threshold=200, switch_on_delay=5, switch_on_soc=60, switch_on_threshold=1300), scheduled_charging=ScheduledCharging(phases_to_use=0), time_charging=TimeCharging(phases_to_use=1), unbalanced_load_limit=18, unbalanced_load=False), control_interval=10, extern_display_mode='primary', 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.32, range_unit='km', ripple_control_receiver=RippleControlReceiver(configured=False, r1_active=False, r2_active=False))
2023-10-17 20:32:01,589 - {control.data:317} - {INFO:MainThread} - general_data-display
primary
2023-10-17 20:32:01,591 - {control.data:318} - {INFO:MainThread} - graph_data
GraphData(config=Config(duration=120))
2023-10-17 20:32:01,592 - {control.data:319} - {INFO:MainThread} - optional_data
OptionalData(et=Et(active=False, config=EtConfig(max_price=0, provider={}), get=EtGet(price=0, price_list=[])), int_display=InternalDisplay(active=False, on_if_plugged_in=True, pin_active=False, pin_code='0000', standby=60, theme=<modules.display_themes.cards.config.CardsDisplayTheme object at 0x70663400>), led=Led(active=False), rfid=Rfid(active=False))
2023-10-17 20:32:01,594 - {control.data:337} - {INFO:MainThread} - pv1
PvData(config=Config(max_ac_out=0), get=Get(currents=[0.0, 0.0, 0.0], daily_exported=26023, monthly_exported=0, yearly_exported=0, exported=58017064, fault_state=0, fault_str='Kein Fehler.', power=0))
2023-10-17 20:32:01,595 - {control.data:321} - {INFO:MainThread} - pv_all_data
PvAllData(config=Config(configured=True), get=Get(daily_exported=26023, monthly_exported=0, yearly_exported=0, exported=58017064, power=0))
2023-10-17 20:32:01,596 - {control.data:337} - {INFO:MainThread} - system
{'update_in_progress': False, 'perform_update': False, 'ip_address': '192.168.0.XX', 'current_commit': '2023-09-27 10:18:20 +0200 [380ac109e]', 'current_branch': 'Release', 'current_branch_commit': '2023-09-27 10:18:20 +0200 [380ac109e]', 'current_missing_commits': [], 'boot_done': True, 'datastore_version': 21, 'dataprotection_acknowledged': True, 'usage_terms_acknowledged': True, 'debug_level': 10, 'release_train': 'master', 'version': '2.1.1', 'lastlivevaluesJson': {'timestamp': 1697567511, 'time': '20:31:51', 'grid': 0.006, 'house-power': 0.506, 'charging-all': 0.0, 'pv-all': -0.0, 'cp3-power': 0.0, 'bat-all-power': -0.5, 'bat-all-soc': 72}, 'module_update_completed': True}
2023-10-17 20:32:01,597 - {control.data:350} - {INFO:MainThread} - device0
{'name': 'SMA Home Manager', 'type': 'sma_shm', 'id': 0, 'configuration': {}}
2023-10-17 20:32:01,599 - {control.data:352} - {INFO:MainThread} - component0
{'name': 'SMA Home Manager Zähler', 'type': 'counter', 'id': 0, 'configuration': {'serials': 1234567}}
2023-10-17 20:32:01,600 - {control.data:350} - {INFO:MainThread} - device1
{'name': 'SMA Sunny Boy/Tripower', 'type': 'sma_sunny_boy', 'id': 1, 'configuration': {'ip_address': '192.168.0.XX'}}
2023-10-17 20:32:01,602 - {control.data:352} - {INFO:MainThread} - component1
{'name': 'Sma Sunny Boy/Tripower Wechselrichter', 'type': 'inverter', 'id': 1, 'configuration': {'hybrid': False, 'version': 0}}
2023-10-17 20:32:01,602 - {control.data:350} - {INFO:MainThread} - device2
{'name': 'SMA Sunny Island', 'type': 'sma_sunny_island', 'id': 2, 'configuration': {'ip_address': '192.168.0.xx'}}
2023-10-17 20:32:01,604 - {control.data:352} - {INFO:MainThread} - component2
{'name': 'SMA Sunny Island Speicher', 'type': 'bat', 'id': 2, 'configuration': {}}
2023-10-17 20:32:01,605 - {control.data:324} - {INFO:MainThread} -
2023-10-17 20:32:01,606 - {control.algorithm.algorithm:25} - {INFO:MainThread} - # Algorithmus
2023-10-17 20:32:01,608 - {control.algorithm.algorithm:31} - {INFO:MainThread} - **Mindestrom setzen**
2023-10-17 20:32:01,612 - {control.algorithm.algorithm:33} - {INFO:MainThread} - **Sollstrom setzen**
2023-10-17 20:32:01,616 - {control.counter:211} - {INFO:MainThread} - Überschuss zur PV-geführten Ladung: 646.2999999999993W
2023-10-17 20:32:01,617 - {control.counter:470} - {DEBUG:MainThread} - Zähler 0: Begrenzung der verbleibenden Leistung auf 646.2999999999993W
2023-10-17 20:32:01,619 - {control.algorithm.algorithm:39} - {INFO:MainThread} - **PV-geführten Strom setzen**
2023-10-17 20:32:01,622 - {control.process:23} - {INFO:MainThread} - # Ladung starten.
2023-10-17 20:32:01,629 - {modules.common.component_context:24} - {DEBUG:set current cp3} - Update Komponente ['Ladepunkt']
2023-10-17 20:32:01,654 - {control.counter:186} - {INFO:MainThread} - 0W reservierte EVU-Leistung, 0W freigegebene EVU-Leistung
2023-10-17 20:32:01,865 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=smarthome_handler, args=(), kwargs={})
2023-10-17 20:32:02,463 - {helpermodules.setdata:330} - {ERROR:Setdata} - Payload ungültig: Topic openWB/set/internal_chargepoint/0/get/power_factors, Payload 100.0 liegt in keinem der angegebenen Wertebereiche.
2023-10-17 20:32:04,324 - {helpermodules.setdata:330} - {ERROR:Setdata} - Payload ungültig: Topic openWB/set/internal_chargepoint/0/get/power_factors, Payload 100.0 liegt in keinem der angegebenen Wertebereiche.
2023-10-17 20:32:05,889 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=smarthome_handler, args=(), kwargs={})
2023-10-17 20:32:06,075 - {helpermodules.setdata:330} - {ERROR:Setdata} - Payload ungültig: Topic openWB/set/internal_chargepoint/0/get/power_factors, Payload 100.0 liegt in keinem der angegebenen Wertebereiche.
2023-10-17 20:32:07,900 - {helpermodules.setdata:330} - {ERROR:Setdata} - Payload ungültig: Topic openWB/set/internal_chargepoint/0/get/power_factors, Payload 100.0 liegt in keinem der angegebenen Wertebereiche.
2023-10-17 20:32:09,763 - {helpermodules.setdata:330} - {ERROR:Setdata} - Payload ungültig: Topic openWB/set/internal_chargepoint/0/get/power_factors, Payload 100.0 liegt in keinem der angegebenen Wertebereiche.
2023-10-17 20:32:10,909 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=handler10Sec, args=(), kwargs={})
2023-10-17 20:32:10,912 - {root:66} - {INFO:MainThread} - # ***Start***