E3DC in 2.0
Verfasst: Fr Jan 06, 2023 10:11 am
Hallo Zusammen,
E3DC läüft noch nicht in 2.0
Hier meine openwb 2.0 Config:
Momentan ist nur e3dc als Zähler, Speicher und externer WR definiert. Kein Ladepunkt , kein Fahrzeug.
Main.log
Auslesen tut er den Zähler und den externen WR und den Speicher (EDIT). Bis auf die IP adresse braucht es gar keine Konfig.
E3DC läüft noch nicht in 2.0
Hier meine openwb 2.0 Config:
Momentan ist nur e3dc als Zähler, Speicher und externer WR definiert. Kein Ladepunkt , kein Fahrzeug.
Main.log
Code: Alles auswählen
2023-01-06 11:02:10,479 - {root:61} - {INFO:MainThread} - # ***Start***
2023-01-06 11:02:10,512 - {modules.devices.e3dc.device:46} - {DEBUG:device0} - reading: 192.168.1.245
2023-01-06 11:02:10,514 - {soc.modules.common.component_context:24} - {DEBUG:device0} - Update Komponente ['E3DC Zähler']
2023-01-06 11:02:10,514 - {modules.devices.e3dc.counter:22} - {DEBUG:device0} - Beginning EVU update
2023-01-06 11:02:10,525 - {modules.devices.e3dc.counter:30} - {DEBUG:device0} - meters: [0, 0, 0, 0, 2, -1590, -1603, -1534, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -879, -970, 1957]
2023-01-06 11:02:10,526 - {modules.devices.e3dc.counter:36} - {DEBUG:device0} - e3dc no farm detected
2023-01-06 11:02:10,527 - {modules.devices.e3dc.counter:38} - {DEBUG:device0} - power: 108, powers [-879, -970, 1957]
2023-01-06 11:02:10,528 - {modules.common.simcount._simcount:38} - {DEBUG:device0} - Previous state: SimCounterState(timestamp=1672999265.6658697, power=556, imported=138038.45036340476, exported=223.41894931252924)
2023-01-06 11:02:10,529 - {modules.common.simcount._calculate:13} - {DEBUG:device0} - time passed: 0.0180172, power1: 556, power2: 108
2023-01-06 11:02:10,529 - {modules.common.simcount._calculate:29} - {DEBUG:device0} - power did not change sign. Total energy: 5.98172
2023-01-06 11:02:10,530 - {modules.common.simcount._simcount:47} - {DEBUG:device0} - imported: 5.98172 Wh, exported: 0 Wh, new state: SimCounterState(timestamp=1672999330.5279257, power=108, imported=138044.43208634853, exported=223.41894931252924)
2023-01-06 11:02:10,532 - {soc.modules.common.store._api:26} - {DEBUG:device0} - Raw data CounterState(voltages=[230.0, 230.0, 230.0], powers=[-879, -970, 1957], currents=[-3.8217391304347825, -4.217391304347826, 8.508695652173913], power_factors=[0.0, 0.0, 0.0], imported=138044.43208634853, exported=223.41894931252924, power=108, frequency=50)
2023-01-06 11:02:10,533 - {modules.devices.e3dc.counter:61} - {DEBUG:device0} - Update completed successfully
2023-01-06 11:02:10,543 - {soc.modules.common.component_context:24} - {DEBUG:device0} - Update Komponente ['E3DC externer Wechselrichter']
2023-01-06 11:02:10,569 - {modules.common.simcount._simcount:38} - {DEBUG:device0} - Previous state: SimCounterState(timestamp=1672999265.6893525, power=-2969, imported=0, exported=215.15565430227252)
2023-01-06 11:02:10,570 - {modules.common.simcount._calculate:13} - {DEBUG:device0} - time passed: 0.0180223, power1: -2969, power2: -4727
2023-01-06 11:02:10,570 - {modules.common.simcount._calculate:29} - {DEBUG:device0} - power did not change sign. Total energy: -69.3497
2023-01-06 11:02:10,571 - {modules.common.simcount._simcount:47} - {DEBUG:device0} - imported: 0 Wh, exported: 69.3497 Wh, new state: SimCounterState(timestamp=1672999330.569549, power=-4727, imported=0, exported=284.5053755263156)
2023-01-06 11:02:10,572 - {soc.modules.common.store._api:26} - {DEBUG:device0} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=-4727, exported=284.5053755263156, dc_power=None)
2023-01-06 11:02:10,577 - {soc.modules.common.component_context:24} - {DEBUG:device0} - Update Komponente ['E3DC Speicher']
2023-01-06 11:02:10,593 - {modules.common.simcount._simcount:38} - {DEBUG:device0} - Previous state: SimCounterState(timestamp=1672999265.7099476, power=-12, imported=0, exported=0.8471923579772312)
2023-01-06 11:02:10,594 - {modules.common.simcount._calculate:13} - {DEBUG:device0} - time passed: 0.0180232, power1: -12, power2: 1002
2023-01-06 11:02:10,594 - {modules.common.simcount._calculate:26} - {DEBUG:device0} - power changed sign. Total energy: 8.92149, exported energy: -0.00127975
2023-01-06 11:02:10,594 - {modules.common.simcount._simcount:47} - {DEBUG:device0} - imported: 8.92277 Wh, exported: 0.00127975 Wh, new state: SimCounterState(timestamp=1672999330.5935068, power=1002, imported=8.922769148330952, exported=0.848472112597093)
2023-01-06 11:02:10,596 - {soc.modules.common.store._api:26} - {DEBUG:device0} - Raw data BatState(imported=8.922769148330952, exported=0.848472112597093, power=1002, soc=4)
2023-01-06 11:02:10,602 - {soc.modules.common.component_context:24} - {DEBUG:component6} - Update Komponente ['E3DC externer Wechselrichter']
2023-01-06 11:02:10,604 - {soc.modules.common.component_context:24} - {DEBUG:component8} - Update Komponente ['E3DC Speicher']
2023-01-06 11:02:10,614 - {helpermodules.setdata:619} - {WARNING:Thread-6} - Kein Speicher 8 mit gültiger Konfiguration gefunden.
2023-01-06 11:02:10,615 - {helpermodules.setdata:619} - {WARNING:Thread-6} - Kein Speicher 8 mit gültiger Konfiguration gefunden.
2023-01-06 11:02:10,623 - {soc.modules.common.component_context:24} - {DEBUG:component0} - Update Komponente ['E3DC Zähler']
2023-01-06 11:02:10,634 - {control.pv:43} - {ERROR:MainThread} - Fehler im allgemeinen PV-Modul für pv6
Traceback (most recent call last):
File "/var/www/html/openWB/packages/control/pv.py", line 37, in calc_power_for_all_components
self.data["get"]["power"] += module_data["get"]["power"]
KeyError: 'power'
2023-01-06 11:02:11,115 - {control.counter:50} - {ERROR:MainThread} - Fehler in der Zähler-Klasse von 0
Traceback (most recent call last):
File "/var/www/html/openWB/packages/control/counter.py", line 44, in setup_counter
self._set_current_left()
File "/var/www/html/openWB/packages/control/counter.py", line 64, in _set_current_left
currents_raw = self.data["get"]["currents"]
KeyError: 'currents'
2023-01-06 11:02:11,557 - {control.counter_all:110} - {ERROR:MainThread} - Fehler in der allgemeinen Zähler-Klasse
Traceback (most recent call last):
File "/var/www/html/openWB/packages/control/counter_all.py", line 81, in set_home_consumption
home_consumption, elements = self._calc_home_consumption()
File "/var/www/html/openWB/packages/control/counter_all.py", line 127, in _calc_home_consumption
power += data.data.pv_data[f"pv{element['id']}"].data["get"]["power"]
KeyError: 'power'
2023-01-06 11:02:11,570 - {control.data:297} - {DEBUG:MainThread} - all
{'get': {'power': 0}, 'config': {'configured': False}, 'set': {'charging_power_left': 0, 'switch_on_soc_reached': False}}
2023-01-06 11:02:11,571 - {control.data:270} - {DEBUG:MainThread} - cp_all_data
AllChargepointData(get=AllGet(daily_imported=0, daily_exported=0, power=0, imported=0, exported=0))
2023-01-06 11:02:11,571 - {control.data:297} - {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)
2023-01-06 11:02:11,571 - {control.data:297} - {DEBUG:MainThread} - counter0
{'set': {'reserved_surplus': 0, 'released_surplus': 0, 'raw_power_left': 0, 'surplus_power_left': 0}, 'get': {'daily_exported': 0, 'daily_imported': 0, 'fault_str': 'Kein Fehler.', 'fault_state': 0}, 'config': {'max_currents': [32, 32, 32], 'max_total_power': 45000}}
2023-01-06 11:02:11,572 - {control.data:274} - {DEBUG:MainThread} - counter_all_data
CounterAllData(get=Get(hierarchy=[{'id': 0, 'type': 'counter', 'children': [{'id': 6, 'type': 'inverter', 'children': []}, {'id': 8, 'type': 'bat', 'children': []}]}]), set=Set(loadmanagement_active=False, home_consumption=1378.0, invalid_home_consumption=0, daily_yield_home_consumption=0))
2023-01-06 11:02:11,573 - {control.data:297} - {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='stop', 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-01-06 11:02:11,573 - {control.data:297} - {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=82, nominal_difference=2), et_num=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'>, 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=''))
2023-01-06 11:02:11,575 - {control.data:297} - {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=82, nominal_difference=2)
2023-01-06 11:02:11,576 - {control.data:278} - {DEBUG:MainThread} - general_data
GeneralData(chargemode_config=ChargemodeConfig(instant_charging=InstantCharging(phases_to_use=1), pv_charging=PvCharging(bat_prio=True, charging_power_reserve=200, control_range=[0, 230], feed_in_yield=15000, phase_switch_delay=7, phases_to_use=1, rundown_power=1000, rundown_soc=50, switch_off_delay=60, switch_off_soc=40, switch_off_threshold=50, switch_on_delay=30, switch_on_soc=60, switch_on_threshold=1500), scheduled_charging=ScheduledCharging(phases_to_use=0), standby=Standby(phases_to_use=1), stop=Stop(phases_to_use=1), time_charging=TimeCharging(phases_to_use=1), unbalanced_load_limit=18, unbalanced_load=False), control_interval=10, extern_display_mode='local', extern=False, external_buttons_hw=False, grid_protection_active=False, grid_protection_configured=False, grid_protection_random_stop=0, grid_protection_timestamp='', mqtt_bridge=False, price_kwh=0.3, range_unit='km', ripple_control_receiver=RippleControlReceiver(configured=False, r1_active=False, r2_active=False))
2023-01-06 11:02:11,577 - {control.data:297} - {DEBUG:MainThread} - graph
{'config': {'duration': 120}}
2023-01-06 11:02:11,577 - {control.data:280} - {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))
2023-01-06 11:02:11,578 - {control.data:297} - {DEBUG:MainThread} - all
{'get': {'power': 0, 'exported': 0, 'daily_exported': 0, 'monthly_exported': 0, 'yearly_exported': 0}, 'config': {'configured': True}}
2023-01-06 11:02:11,578 - {control.data:297} - {DEBUG:MainThread} - pv6
{'get': {'daily_exported': 0, 'monthly_exported': 0, 'yearly_exported': 0, 'fault_str': 'Kein Fehler.', 'fault_state': 0}, 'config': {'max_ac_out': 0}}
2023-01-06 11:02:11,579 - {control.data:297} - {DEBUG:MainThread} - system
{'update_in_progress': False, 'perform_update': False, 'boot_done': True, 'ip_address': '192.168.1.246', 'current_commit': '2023-01-06 09:56:50 +0100 [b43b1668]', 'current_branch': 'master', 'current_branch_commit': '2023-01-06 09:56:50 +0100 [b43b1668]', 'current_missing_commits': [], 'dataprotection_acknowledged': False, 'debug_level': 10, 'release_train': 'master', 'version': '1.99.101.1', 'datastore_version': 5, 'lastlivevaluesJson': {'timestamp': 1672675251, 'time': '17:00:51', 'grid': 1.341, 'house-power': 1.378, 'charging-all': 0.0, 'pv-all': -0.0}, 'module_update_completed': True}
2023-01-06 11:02:11,579 - {control.data:310} - {DEBUG:MainThread} - device0
{'name': 'E3DC', 'type': 'e3dc', 'id': 0, 'configuration': {'address': '192.168.1.245'}}
2023-01-06 11:02:11,580 - {control.data:312} - {DEBUG:MainThread} - component0
{'name': 'E3DC Zähler', 'type': 'counter', 'id': 0, 'configuration': {}}
2023-01-06 11:02:11,580 - {control.data:312} - {DEBUG:MainThread} - component6
{'name': 'E3DC externer Wechselrichter', 'type': 'external_inverter', 'id': 6, 'configuration': {}}
2023-01-06 11:02:11,581 - {control.data:312} - {DEBUG:MainThread} - component8
{'name': 'E3DC Speicher', 'type': 'bat', 'id': 8, 'configuration': {}}
2023-01-06 11:02:11,581 - {control.data:284} - {DEBUG:MainThread} -
2023-01-06 11:02:11,581 - {control.algorithm.algorithm:26} - {DEBUG:MainThread} - # Algorithmus-Start
2023-01-06 11:02:11,582 - {control.algorithm.algorithm:32} - {DEBUG:MainThread} - **Mindestrom setzen**
2023-01-06 11:02:11,592 - {control.algorithm.algorithm:34} - {DEBUG:MainThread} - **Sollstrom setzen**
2023-01-06 11:02:11,597 - {control.counter:159} - {DEBUG:MainThread} - Überschuss zur PV-geführten Ladung: 0W
2023-01-06 11:02:11,598 - {control.counter:407} - {DEBUG:MainThread} - Zähler 0: Begrenzung der verbleibenden Leistung auf 0W
2023-01-06 11:02:11,599 - {control.algorithm.algorithm:45} - {DEBUG:MainThread} - **Keine Leistung für PV-geführtes Laden übrig.**
2023-01-06 11:02:11,600 - {control.process:22} - {DEBUG:MainThread} - # Ladung starten.
2023-01-06 11:02:11,603 - {control.counter:141} - {DEBUG:MainThread} - 0W reservierte EVU-Leistung, 0W freigegebene EVU-Leistung
2023-01-06 11:02:11,604 - {helpermodules.graph:56} - {ERROR:MainThread} - Fehler im Graph-Modul
Traceback (most recent call last):
File "/var/www/html/openWB/packages/helpermodules/graph.py", line 27, in pub_graph_data
dataline.update({"grid": _convert_to_kW(data.data.counter_data[evu_counter].data["get"]["power"])})
KeyError: 'power'
2023-01-06 11:02:11,610 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=update, args=(), kwargs={})
2023-01-06 11:02:16,615 - {modules.utils:17} - {ERROR:MainThread} - Modul-Daten wurden noch nicht vollständig empfangen. Timeout abgelaufen, fortsetzen der Regelung.
2023-01-06 11:02:21,620 - {modules.utils:17} - {ERROR:MainThread} - Modul-Daten wurden noch nicht vollständig empfangen. Timeout abgelaufen, fortsetzen der Regelung.
2023-01-06 11:02:22,631 - {schedule:660} - {DEBUG:MainThread} - Running job Job(interval=1, unit=minutes, do=handler10Sec, args=(), kwargs={})
2023-01-06 11:02:22,632 - {root:61} - {INFO:MainThread} - # ***Start***
Code: Alles auswählen
2023-01-06 11:02:10,527 - {modules.devices.e3dc.counter:38} - {DEBUG:device0} - power: 108, powers [-879, -970, 1957]
2023-01-06 11:02:10,572 - {soc.modules.common.store._api:26} - {DEBUG:device0} - Raw data InverterState(currents=[0.0, 0.0, 0.0], power=-4727, exported=284.5053755263156, dc_power=None)
2023-01-06 11:02:10,596 - {soc.modules.common.store._api:26} - {DEBUG:device0} - Raw data BatState(imported=8.922769148330952, exported=0.848472112597093, power=1002, soc=4)