You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to connect my charger to the plugin in Home Assistant, but believe the connection fails.
I am no expert so would appreciate any hints to narrow down the problem.
I am using these versions:
OCPP v0.6.1
HACS 2.01
Home Assistant Core 2024.12.2
Home Assistant Frontend 20241127.7
I can see the BootNotification message in the logs and data from it in Home Assistant, but then it seems to stop.
Not sure if something is wrong in the certificate I tried to install for Home assistant/ the ocpp server, or if it has to do with the specific charger implementation, e.g. a missing password or something else.
Any hints are appreciated.
Debug log
raspberrypivijf:/config# cat home-assistant.log | grep ocpp
2024-12-17 11:16:04.218 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ocpp which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-17 11:16:06.994 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_cert_chain with args (<ssl.SSLContext object at 0x7ffefd2f9250>, '/config/fullchain.pem') inside the event loop by custom integration 'ocpp' at custom_components/ocpp/api.py, line 104: self.ssl_context.load_cert_chain( (offender: /config/custom_components/ocpp/api.py, line 104: self.ssl_context.load_cert_chain(), please create a bug report at https://github.com/lbbrhzn/ocpp/issues
File "/config/custom_components/ocpp/init.py", line 71, in async_setup_entry
File "/config/custom_components/ocpp/api.py", line 113, in create
File "/config/custom_components/ocpp/api.py", line 104, in init
2024-12-17 11:19:49.202 WARNING (MainThread) [custom_components.ocpp] Skipping websocket subprotocol validation
2024-12-17 11:19:49.423 INFO (MainThread) [ocpp] EVB-500-019-341: receive message [2,"1d58f42a-be8c-49ca-a456-eeefcc58e01c","BootNotification",{"reason":"PowerUp","chargingStation":{"vendorName":"EVBox","model":"Livo","firmwareVersion":"v5.24.0;v1.46.1","serialNumber":"oVUEYQCw8pArNfVvp4SB72bw3"}}]
2024-12-17 11:19:49.427 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/usr/local/lib/python3.13/site-packages/ocpp/v201/schemas/BootNotificationRequest.json', 'r') inside the event loop by custom integration 'ocpp' at custom_components/ocpp/chargepoint.py, line 514: await super()._handle_call(msg) (offender: /usr/local/lib/python3.13/site-packages/ocpp/messages.py, line 164: with open(path, "r", encoding="utf-8-sig") as f:), please create a bug report at https://github.com/lbbrhzn/ocpp/issues
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 238, in start
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 261, in route_message
File "/config/custom_components/ocpp/chargepoint.py", line 514, in _handle_call
2024-12-17 11:19:49.439 INFO (MainThread) [ocpp] EVB-500-019-341: send [3,"1d58f42a-be8c-49ca-a456-eeefcc58e01c",{"currentTime":"2024-12-17T10:19:49.428805+00:00","interval":10,"status":"Accepted"}]
2024-12-17 11:19:51.437 INFO (MainThread) [ocpp] EVB-500-019-341: send [2,"03758573-281e-4b15-b4c6-e9c9b9ba2bf2","GetBaseReport",{"requestId":1,"reportBase":"FullInventory"}]
File "/config/custom_components/ocpp/chargepoint.py", line 332, in post_connect
File "/config/custom_components/ocpp/chargepoint.py", line 266, in fetch_supported_features
File "/config/custom_components/ocpp/ocppv201.py", line 206, in get_supported_features
File "/config/custom_components/ocpp/ocppv201.py", line 126, in _get_inventory
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 404, in call
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 457, in _send
2024-12-17 12:07:57.451 WARNING (MainThread) [custom_components.ocpp] Skipping websocket subprotocol validation
2024-12-17 12:07:57.451 INFO (MainThread) [custom_components.ocpp] Charger websocket path=/EVB-500-019-341
2024-12-17 12:07:57.451 INFO (MainThread) [custom_components.ocpp] Charger EVB-500-019-341 reconnected to 0.0.0.0:9123.
2024-12-17 12:07:57.452 DEBUG (MainThread) [custom_components.ocpp] Reconnect websocket to EVB-500-019-341
2024-12-17 12:07:57.616 INFO (MainThread) [ocpp] EVB-500-019-341: receive message [2,"82826ea1-2913-4772-9a1e-8a95b38fada6","BootNotification",{"reason":"PowerUp","chargingStation":{"vendorName":"EVBox","model":"Livo","firmwareVersion":"v5.24.0;v1.46.1","serialNumber":"oVUEYQCw8pArNfVvp4SB72bw3"}}]
2024-12-17 12:07:57.617 DEBUG (MainThread) [custom_components.ocpp] Updating device info Livo: {'vendor_name': 'EVBox', 'model': 'Livo', 'firmware_version': 'v5.24.0;v1.46.1', 'serial_number': 'oVUEYQCw8pArNfVvp4SB72bw3'}
2024-12-17 12:07:57.629 INFO (MainThread) [ocpp] EVB-500-019-341: send [3,"82826ea1-2913-4772-9a1e-8a95b38fada6",{"currentTime":"2024-12-17T11:07:57.617135+00:00","interval":10,"status":"Accepted"}]
2024-12-17 12:07:57.714 DEBUG (MainThread) [custom_components.ocpp] Connection closed to 'EVB-500-019-341': no close frame received or sent
2024-12-17 12:07:57.714 INFO (MainThread) [custom_components.ocpp] Charger EVB-500-019-341 disconnected from 0.0.0.0:9123.
2024-12-17 12:07:59.630 INFO (MainThread) [ocpp] EVB-500-019-341: send [2,"e812e79a-559b-40bb-9328-4b2974f77606","GetBaseReport",{"requestId":1,"reportBase":"FullInventory"}]
File "/config/custom_components/ocpp/chargepoint.py", line 332, in post_connect
File "/config/custom_components/ocpp/chargepoint.py", line 266, in fetch_supported_features
File "/config/custom_components/ocpp/ocppv201.py", line 206, in get_supported_features
File "/config/custom_components/ocpp/ocppv201.py", line 126, in _get_inventory
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 404, in call
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 457, in _send
raspberrypivijf:/config# cat home-assistant.log | grep ocpp |
more
2024-12-17 11:16:04.218 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ocpp which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-17 11:16:06.994 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_cert_chain with args (<ssl.SSLContext object at 0x7ffefd2f9250>, '/config/fullchain.pem') inside the event loop by custom integration 'ocpp' at custom_components/ocpp/api.py, line 104: self.ssl_context.load_cert_chain( (offender: /config/custom_components/ocpp/api.py, line 104: self.ssl_context.load_cert_chain(), please create a bug report at https://github.com/lbbrhzn/ocpp/issues
File "/config/custom_components/ocpp/init.py", line 71, in async_setup_entry
File "/config/custom_components/ocpp/api.py", line 113, in create
File "/config/custom_components/ocpp/api.py", line 104, in init
2024-12-17 11:19:49.202 WARNING (MainThread) [custom_components.ocpp] Skipping websocket subprotocol validation
2024-12-17 11:19:49.423 INFO (MainThread) [ocpp] EVB-500-019-341: receive message [2,"1d58f42a-be8c-49ca-a456-eeefcc58e01c","BootNotification",{"reason":"PowerUp","chargingStation":{"vendorName":"EVBox","model":"Livo","firmwareVersion":"v5.24.0;v1.46.1","serialNumber":"oVUEYQCw8pArNfVvp4SB72bw3"}}]
2024-12-17 11:19:49.427 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/usr/local/lib/python3.13/site-packages/ocpp/v201/schemas/BootNotificationRequest.json', 'r') inside the event loop by custom integration 'ocpp' at custom_components/ocpp/chargepoint.py, line 514: await super()._handle_call(msg) (offender: /usr/local/lib/python3.13/site-packages/ocpp/messages.py, line 164: with open(path, "r", encoding="utf-8-sig") as f:), please create a bug report at https://github.com/lbbrhzn/ocpp/issues
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 238, in start
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 261, in route_message
File "/config/custom_components/ocpp/chargepoint.py", line 514, in _handle_call
2024-12-17 11:19:49.439 INFO (MainThread) [ocpp] EVB-500-019-341: send [3,"1d58f42a-be8c-49ca-a456-eeefcc58e01c",{"currentTime":"2024-12-17T10:19:49.428805+00:00","interval":10,"status":"Accepted"}]
2024-12-17 11:19:51.437 INFO (MainThread) [ocpp] EVB-500-019-341: send [2,"03758573-281e-4b15-b4c6-e9c9b9ba2bf2","GetBaseReport",{"requestId":1,"reportBase":"FullInventory"}]
File "/config/custom_components/ocpp/chargepoint.py", line 332, in post_connect
File "/config/custom_components/ocpp/chargepoint.py", line 266, in fetch_supported_features
File "/config/custom_components/ocpp/ocppv201.py", line 206, in get_supported_features
File "/config/custom_components/ocpp/ocppv201.py", line 126, in _get_inventory
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 404, in call
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 457, in _send
2024-12-17 12:07:57.451 WARNING (MainThread) [custom_components.ocpp] Skipping websocket subprotocol validation
2024-12-17 12:07:57.451 INFO (MainThread) [custom_components.ocpp] Charger websocket path=/EVB-500-019-341
2024-12-17 12:07:57.451 INFO (MainThread) [custom_components.ocpp] Charger EVB-500-019-341 reconnected to 0.0.0.0:9123.
2024-12-17 12:07:57.452 DEBUG (MainThread) [custom_components.ocpp] Reconnect websocket to EVB-500-019-341
2024-12-17 12:07:57.616 INFO (MainThread) [ocpp] EVB-500-019-341: receive message [2,"82826ea1-2913-4772-9a1e-8a95b38fada6","BootNotification",{"reason":"PowerUp","chargingStation":{"vendorName":"EVBox","model":"Livo","firmwareVersion":"v5.24.0;v1.46.1","serialNumber":"oVUEYQCw8pArNfVvp4SB72bw3"}}]
2024-12-17 12:07:57.617 DEBUG (MainThread) [custom_components.ocpp] Updating device info Livo: {'vendor_name': 'EVBox', 'model': 'Livo', 'firmware_version': 'v5.24.0;v1.46.1', 'serial_number': 'oVUEYQCw8pArNfVvp4SB72bw3'}
2024-12-17 12:07:57.629 INFO (MainThread) [ocpp] EVB-500-019-341: send [3,"82826ea1-2913-4772-9a1e-8a95b38fada6",{"currentTime":"2024-12-17T11:07:57.617135+00:00","interval":10,"status":"Accepted"}]
2024-12-17 12:07:57.714 DEBUG (MainThread) [custom_components.ocpp] Connection closed to 'EVB-500-019-341': no close frame received or sent
2024-12-17 12:07:57.714 INFO (MainThread) [custom_components.ocpp] Charger EVB-500-019-341 disconnected from 0.0.0.0:9123.
2024-12-17 12:07:59.630 INFO (MainThread) [ocpp] EVB-500-019-341: send [2,"e812e79a-559b-40bb-9328-4b2974f77606","GetBaseReport",{"requestId":1,"reportBase":"FullInventory"}]
File "/config/custom_components/ocpp/chargepoint.py", line 332, in post_connect
File "/config/custom_components/ocpp/chargepoint.py", line 266, in fetch_supported_features
File "/config/custom_components/ocpp/ocppv201.py", line 206, in get_supported_features
File "/config/custom_components/ocpp/ocppv201.py", line 126, in _get_inventory
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 404, in call
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 457, in _send
The text was updated successfully, but these errors were encountered:
Thanks @drc38. I’ll try it as soon as I am at home. Note the charger only supports 2.01, so I will try that.
If it only supports 2.0.1 then ignore my comment above, I thought it was perhaps selecting the wrong protocol. I have no experience with 2.0.1, @ars3niy may have some suggestions on why it's not working.
I am trying to connect my charger to the plugin in Home Assistant, but believe the connection fails.
I am no expert so would appreciate any hints to narrow down the problem.
I am using these versions:
OCPP v0.6.1
HACS 2.01
Home Assistant Core 2024.12.2
Home Assistant Frontend 20241127.7
I can see the BootNotification message in the logs and data from it in Home Assistant, but then it seems to stop.
Not sure if something is wrong in the certificate I tried to install for Home assistant/ the ocpp server, or if it has to do with the specific charger implementation, e.g. a missing password or something else.
Any hints are appreciated.
Debug log
raspberrypivijf:/config# cat home-assistant.log | grep ocpp
2024-12-17 11:16:04.218 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ocpp which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-17 11:16:06.994 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_cert_chain with args (<ssl.SSLContext object at 0x7ffefd2f9250>, '/config/fullchain.pem') inside the event loop by custom integration 'ocpp' at custom_components/ocpp/api.py, line 104: self.ssl_context.load_cert_chain( (offender: /config/custom_components/ocpp/api.py, line 104: self.ssl_context.load_cert_chain(), please create a bug report at https://github.com/lbbrhzn/ocpp/issues
File "/config/custom_components/ocpp/init.py", line 71, in async_setup_entry
File "/config/custom_components/ocpp/api.py", line 113, in create
File "/config/custom_components/ocpp/api.py", line 104, in init
2024-12-17 11:19:49.202 WARNING (MainThread) [custom_components.ocpp] Skipping websocket subprotocol validation
2024-12-17 11:19:49.423 INFO (MainThread) [ocpp] EVB-500-019-341: receive message [2,"1d58f42a-be8c-49ca-a456-eeefcc58e01c","BootNotification",{"reason":"PowerUp","chargingStation":{"vendorName":"EVBox","model":"Livo","firmwareVersion":"v5.24.0;v1.46.1","serialNumber":"oVUEYQCw8pArNfVvp4SB72bw3"}}]
2024-12-17 11:19:49.427 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/usr/local/lib/python3.13/site-packages/ocpp/v201/schemas/BootNotificationRequest.json', 'r') inside the event loop by custom integration 'ocpp' at custom_components/ocpp/chargepoint.py, line 514: await super()._handle_call(msg) (offender: /usr/local/lib/python3.13/site-packages/ocpp/messages.py, line 164: with open(path, "r", encoding="utf-8-sig") as f:), please create a bug report at https://github.com/lbbrhzn/ocpp/issues
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 238, in start
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 261, in route_message
File "/config/custom_components/ocpp/chargepoint.py", line 514, in _handle_call
2024-12-17 11:19:49.439 INFO (MainThread) [ocpp] EVB-500-019-341: send [3,"1d58f42a-be8c-49ca-a456-eeefcc58e01c",{"currentTime":"2024-12-17T10:19:49.428805+00:00","interval":10,"status":"Accepted"}]
2024-12-17 11:19:51.437 INFO (MainThread) [ocpp] EVB-500-019-341: send [2,"03758573-281e-4b15-b4c6-e9c9b9ba2bf2","GetBaseReport",{"requestId":1,"reportBase":"FullInventory"}]
File "/config/custom_components/ocpp/chargepoint.py", line 332, in post_connect
File "/config/custom_components/ocpp/chargepoint.py", line 266, in fetch_supported_features
File "/config/custom_components/ocpp/ocppv201.py", line 206, in get_supported_features
File "/config/custom_components/ocpp/ocppv201.py", line 126, in _get_inventory
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 404, in call
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 457, in _send
2024-12-17 12:07:57.451 WARNING (MainThread) [custom_components.ocpp] Skipping websocket subprotocol validation
2024-12-17 12:07:57.451 INFO (MainThread) [custom_components.ocpp] Charger websocket path=/EVB-500-019-341
2024-12-17 12:07:57.451 INFO (MainThread) [custom_components.ocpp] Charger EVB-500-019-341 reconnected to 0.0.0.0:9123.
2024-12-17 12:07:57.452 DEBUG (MainThread) [custom_components.ocpp] Reconnect websocket to EVB-500-019-341
2024-12-17 12:07:57.616 INFO (MainThread) [ocpp] EVB-500-019-341: receive message [2,"82826ea1-2913-4772-9a1e-8a95b38fada6","BootNotification",{"reason":"PowerUp","chargingStation":{"vendorName":"EVBox","model":"Livo","firmwareVersion":"v5.24.0;v1.46.1","serialNumber":"oVUEYQCw8pArNfVvp4SB72bw3"}}]
2024-12-17 12:07:57.617 DEBUG (MainThread) [custom_components.ocpp] Updating device info Livo: {'vendor_name': 'EVBox', 'model': 'Livo', 'firmware_version': 'v5.24.0;v1.46.1', 'serial_number': 'oVUEYQCw8pArNfVvp4SB72bw3'}
2024-12-17 12:07:57.629 INFO (MainThread) [ocpp] EVB-500-019-341: send [3,"82826ea1-2913-4772-9a1e-8a95b38fada6",{"currentTime":"2024-12-17T11:07:57.617135+00:00","interval":10,"status":"Accepted"}]
2024-12-17 12:07:57.714 DEBUG (MainThread) [custom_components.ocpp] Connection closed to 'EVB-500-019-341': no close frame received or sent
2024-12-17 12:07:57.714 INFO (MainThread) [custom_components.ocpp] Charger EVB-500-019-341 disconnected from 0.0.0.0:9123.
2024-12-17 12:07:59.630 INFO (MainThread) [ocpp] EVB-500-019-341: send [2,"e812e79a-559b-40bb-9328-4b2974f77606","GetBaseReport",{"requestId":1,"reportBase":"FullInventory"}]
File "/config/custom_components/ocpp/chargepoint.py", line 332, in post_connect
File "/config/custom_components/ocpp/chargepoint.py", line 266, in fetch_supported_features
File "/config/custom_components/ocpp/ocppv201.py", line 206, in get_supported_features
File "/config/custom_components/ocpp/ocppv201.py", line 126, in _get_inventory
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 404, in call
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 457, in _send
raspberrypivijf:/config# cat home-assistant.log | grep ocpp |
The text was updated successfully, but these errors were encountered: