Re: Feedback Release Candidate 2
Verfasst: Mo Jul 03, 2023 9:20 pm
Hallo,LenaK hat geschrieben: ↑Mo Jul 03, 2023 10:56 amIst behoben, bitte ein Update auf den Master machen.Nico hat geschrieben: ↑Sa Jul 01, 2023 9:45 pmHallo,aiole hat geschrieben: ↑Sa Jul 01, 2023 8:28 pm Die WB als internen LP zu konfigurieren, ist sehr wichtig - egal ob Steuerungsmodus = primary oder secondary.
Geht es denn im "primary"? Wäre als Test zumindest interessant.
btw
"nur Ladepunkt" ist durch "secondary" ersetzt worden. Dafür brauchst du einen extra "primary", der steuert.
ich habe einen erneuten Anlauf genommen:
1. die OpenWB mit der neuen SD Karte und dem aktuellen Image komplett zurückgesetzt.
2. versucht diese als einfachen Ladepunkt zu konfigurieren, dazu einen virtuellen Zähler und einen internen Ladepunkt angelegt. Anschließend das Lastmanagement konfiguriert.
Im Ergebnis ist es unverändert: Die openWB scheint nicht mit dem Zähler zu kommunizieren. Im Log steht auch nun:Es ist eine openWB series2 standard+, aus August 2020Code: Alles auswählen
2023-07-01 23:38:44,234 - {modules.common.fault_state:52} - {ERROR:Internal Chargepoint} - Interner Ladepunkt 0: FaultState FaultStateLevel.ERROR, FaultStr <class 'UnboundLocalError'> local variable 'serial_client' referenced before assignment, Traceback: Traceback (most recent call last): File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 138, in __init__ self.cp0_client_handler = client_factory(0) File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/clients.py", line 152, in client_factory return ClientHandler(local_charge_point_num, serial_client, evse_ids) UnboundLocalError: local variable 'serial_client' referenced before assignment 2023-07-01 23:38:44,255 - {modules.internal_chargepoint_handler.internal_chargepoint_handler:270} - {ERROR:Internal Chargepoint} - Fehler im internem Ladepunkt Traceback (most recent call last): File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 266, in handler self.internal_chargepoint_handler.loop() File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 177, in loop with SingleComponentUpdateContext(self.cp0.module.component_info): AttributeError: 'InternalChargepointHandler' object has no attribute 'cp0'
Hat jemand eine Idee was ich noch probieren kann?
Vielen Dank!
zuerst vielen Dank für das schnelle Update (!). Leider konnte ich dieses bisher nicht erfolgreich testen.
Ich habe ein Update auf die Master Version2023-07-03 15:12:11 +0200 [1570a3c56] gemacht und anschließend die Box zurückgesetzt. Dann auf Modus Secondary gestellt und den internen Ladepunkt hinzugefügt.
Lieder finde ich unter Status noch immer keine richtigen Spannungen, Stromstärken, oder die Info ob der Stecker gesteckt ist.
Meine Box hat eine Addon Platine und steuert die beiden Modbusgeräte von dort aus an.
Im Log des internen Ladepunktes findet sich ein Hinweis, dass der Modbus Adapter nicht gefunden wurde:
Code: Alles auswählen
2023-07-03 23:13:03,443 - {modules.internal_chargepoint_handler.internal_chargepoint_handler:131} - {DEBUG:Internal Chargepoint} - Init internal chargepoint as series
2023-07-03 23:13:03,444 - {modules.common.component_context:24} - {DEBUG:Internal Chargepoint} - Update Komponente ['Interner Ladepunkt 0']
2023-07-03 23:13:03,446 - {modules.internal_chargepoint_handler.clients:121} - {DEBUG:Internal Chargepoint} - tty_devices[]
2023-07-03 23:13:03,447 - {modules.internal_chargepoint_handler.clients:123} - {DEBUG:Internal Chargepoint} - resolved_devices[]
2023-07-03 23:13:03,449 - {pymodbus.client.sync:663} - {ERROR:Internal Chargepoint} - [Errno 13] could not open port /dev/serial0: [Errno 13] Permission denied: '/dev/serial0'
2023-07-03 23:13:03,465 - {modules.common.fault_state:52} - {ERROR:Internal Chargepoint} - Interner Ladepunkt 0: FaultState FaultStateLevel.ERROR, FaultStr <class 'pymodbus.exceptions.ConnectionException'> Modbus Error: [Connection] Failed to connect[ModbusSerialClient(rtu baud[9600])], Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 138, in __init__
self.cp0_client_handler = client_factory(0)
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/clients.py", line 159, in client_factory
return ClientHandler(local_charge_point_num, serial_client, evse_ids)
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/clients.py", line 36, in __init__
self.evse_client = self.__evse_factory(client, evse_ids)
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/clients.py", line 45, in __evse_factory
with client:
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 52, in __enter__
self.delegate.__enter__()
File "/home/openwb/.local/lib/python3.9/site-packages/pymodbus/client/sync.py", line 120, in __enter__
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusSerialClient(rtu baud[9600])]
2023-07-03 23:13:03,493 - {modules.internal_chargepoint_handler.internal_chargepoint_handler:270} - {ERROR:Internal Chargepoint} - Fehler im internem Ladepunkt
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 266, in handler
self.internal_chargepoint_handler.loop()
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 177, in loop
with SingleComponentUpdateContext(self.cp0.module.component_info):
AttributeError: 'InternalChargepointHandler' object has no attribute 'cp0'
2023-07-03 23:13:05,498 - {modules.internal_chargepoint_handler.internal_chargepoint_handler:131} - {DEBUG:Internal Chargepoint} - Init internal chargepoint as series
2023-07-03 23:13:05,499 - {modules.common.component_context:24} - {DEBUG:Internal Chargepoint} - Update Komponente ['Interner Ladepunkt 0']
2023-07-03 23:13:05,500 - {modules.internal_chargepoint_handler.clients:121} - {DEBUG:Internal Chargepoint} - tty_devices[]
2023-07-03 23:13:05,501 - {modules.internal_chargepoint_handler.clients:123} - {DEBUG:Internal Chargepoint} - resolved_devices[]
2023-07-03 23:13:05,503 - {pymodbus.client.sync:663} - {ERROR:Internal Chargepoint} - [Errno 13] could not open port /dev/serial0: [Errno 13] Permission denied: '/dev/serial0'
2023-07-03 23:13:05,505 - {modules.common.fault_state:52} - {ERROR:Internal Chargepoint} - Interner Ladepunkt 0: FaultState FaultStateLevel.ERROR, FaultStr <class 'pymodbus.exceptions.ConnectionException'> Modbus Error: [Connection] Failed to connect[ModbusSerialClient(rtu baud[9600])], Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 138, in __init__
self.cp0_client_handler = client_factory(0)
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/clients.py", line 159, in client_factory
return ClientHandler(local_charge_point_num, serial_client, evse_ids)
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/clients.py", line 36, in __init__
self.evse_client = self.__evse_factory(client, evse_ids)
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/clients.py", line 45, in __evse_factory
with client:
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 52, in __enter__
self.delegate.__enter__()
File "/home/openwb/.local/lib/python3.9/site-packages/pymodbus/client/sync.py", line 120, in __enter__
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusSerialClient(rtu baud[9600])]
2023-07-03 23:13:05,529 - {modules.internal_chargepoint_handler.internal_chargepoint_handler:270} - {ERROR:Internal Chargepoint} - Fehler im internem Ladepunkt
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 266, in handler
self.internal_chargepoint_handler.loop()
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 177, in loop
with SingleComponentUpdateContext(self.cp0.module.component_info):
AttributeError: 'InternalChargepointHandler' object has no attribute 'cp0'
2023-07-03 23:15:02,537 - {modules.internal_chargepoint_handler.internal_chargepoint_handler:131} - {DEBUG:Internal Chargepoint} - Init internal chargepoint as series
2023-07-03 23:15:02,539 - {modules.common.component_context:24} - {DEBUG:Internal Chargepoint} - Update Komponente ['Interner Ladepunkt 0']
2023-07-03 23:15:02,540 - {modules.internal_chargepoint_handler.clients:121} - {DEBUG:Internal Chargepoint} - tty_devices[]
2023-07-03 23:15:02,540 - {modules.internal_chargepoint_handler.clients:123} - {DEBUG:Internal Chargepoint} - resolved_devices[]
2023-07-03 23:15:02,542 - {pymodbus.client.sync:663} - {ERROR:Internal Chargepoint} - [Errno 13] could not open port /dev/serial0: [Errno 13] Permission denied: '/dev/serial0'
2023-07-03 23:15:02,545 - {modules.common.fault_state:52} - {ERROR:Internal Chargepoint} - Interner Ladepunkt 0: FaultState FaultStateLevel.ERROR, FaultStr <class 'pymodbus.exceptions.ConnectionException'> Modbus Error: [Connection] Failed to connect[ModbusSerialClient(rtu baud[9600])], Traceback:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 138, in __init__
self.cp0_client_handler = client_factory(0)
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/clients.py", line 159, in client_factory
return ClientHandler(local_charge_point_num, serial_client, evse_ids)
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/clients.py", line 36, in __init__
self.evse_client = self.__evse_factory(client, evse_ids)
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/clients.py", line 45, in __evse_factory
with client:
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 52, in __enter__
self.delegate.__enter__()
File "/home/openwb/.local/lib/python3.9/site-packages/pymodbus/client/sync.py", line 120, in __enter__
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusSerialClient(rtu baud[9600])]
2023-07-03 23:15:02,565 - {modules.internal_chargepoint_handler.internal_chargepoint_handler:270} - {ERROR:Internal Chargepoint} - Fehler im internem Ladepunkt
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 266, in handler
self.internal_chargepoint_handler.loop()
File "/var/www/html/openWB/packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py", line 177, in loop
with SingleComponentUpdateContext(self.cp0.module.component_info):
AttributeError: 'InternalChargepointHandler' object has no attribute 'cp0'
Vielen Dank!