lbbrhzn / ocpp

Home Assistant integration for electric vehicle chargers that support the Open Charge Point Protocol (OCPP).
MIT License
206 stars 64 forks source link

Topdon EVSE continuously reboots #1203

Open bkcberry opened 1 month ago

bkcberry commented 1 month ago

Version of the custom_component

0.5.6

Configuration

Not sure what to put here? I left most settings as default and checked skip schema validation

Describe the bug

When pointed towards home assistant/ocpp, the evse will repeatedly connect for a few seconds before rebooting. I did see where someone on amazon who bought this same EVSE was apparently able to get it working with this same addin/repo, and issue #1023 claims that what looks to be the same EVSE from amazon with different branding works as well

Debug log


2024-06-12 13:41:06.223 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-06-12 13:41:07.331 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'localtuya', 'history', 'map', 'config', 'intent', 'scene', 'backup', 'input_boolean', 'hardware', 'input_select', 'blueprint', 'application_credentials', 'onboarding', 'automation', 'august', 'diagnostics', 'file_upload', 'zwave_js', 'stt', 'tasmota', 'input_button', 'trace', 'template', 'default_config', 'homeassistant_alerts', 'input_datetime', 'logbook', 'esphome', 'ocpp', 'wake_word', 'lovelace', 'group', 'system_health', 'conversation', 'schedule', 'counter', 'mobile_app', 'image_upload', 'person', 'ffmpeg', 'script', 'assist_pipeline', 'hacs', 'thread', 'media_source', 'zone', 'tts', 'owntracks', 'my', 'energy', 'sun', 'timer', 'input_number', 'input_text', 'search', 'stream', 'mqtt', 'switch_as_x', 'persistent_notification', 'device_automation', 'tag', 'analytics'}
2024-06-12 13:41:07.640 INFO (MainThread) [homeassistant.setup] Setting up ocpp
2024-06-12 13:41:07.640 INFO (MainThread) [custom_components.ocpp] config = {}
2024-06-12 13:41:07.640 INFO (MainThread) [homeassistant.setup] Setup of domain ocpp took 0.00 seconds
2024-06-12 13:41:08.714 INFO (MainThread) [homeassistant.components.sensor] Setting up ocpp.sensor
2024-06-12 13:41:08.725 INFO (MainThread) [homeassistant.components.switch] Setting up ocpp.switch
2024-06-12 13:41:08.726 INFO (MainThread) [homeassistant.components.number] Setting up ocpp.number
2024-06-12 13:41:08.727 INFO (MainThread) [homeassistant.components.button] Setting up ocpp.button
2024-06-12 14:00:25.589 INFO (MainThread) [homeassistant.components.sensor] Setting up ocpp.sensor
2024-06-12 14:00:25.590 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_reactive_export_register
2024-06-12 14:00:25.590 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_time_session
2024-06-12 14:00:25.591 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_power_reactive_import
2024-06-12 14:00:25.592 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_voltage
2024-06-12 14:00:25.592 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_reactive_import_register
2024-06-12 14:00:25.593 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_current_offered
2024-06-12 14:00:25.594 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_current_import
2024-06-12 14:00:25.595 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_meter_start
2024-06-12 14:00:25.595 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_reactive_import_interval
2024-06-12 14:00:25.596 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_active_export_interval
2024-06-12 14:00:25.596 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_soc
2024-06-12 14:00:25.597 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_active_export_register
2024-06-12 14:00:25.597 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_frequency
2024-06-12 14:00:25.598 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_active_import_interval
2024-06-12 14:00:25.598 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_power_factor
2024-06-12 14:00:25.599 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_reactive_export_interval
2024-06-12 14:00:25.600 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_rpm
2024-06-12 14:00:25.601 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_current_export
2024-06-12 14:00:25.601 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_power_reactive_export
2024-06-12 14:00:25.602 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_power_active_export
2024-06-12 14:00:25.602 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_transaction_id
2024-06-12 14:00:25.602 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_active_import_register
2024-06-12 14:00:25.603 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_power_active_import
2024-06-12 14:00:25.603 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_temperature
2024-06-12 14:00:25.604 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_power_offered
2024-06-12 14:00:25.604 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_session
2024-06-12 14:00:25.605 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_status
2024-06-12 14:00:25.605 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_status_connector
2024-06-12 14:00:25.607 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_heartbeat
2024-06-12 14:00:25.607 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_latency_ping
2024-06-12 14:00:25.608 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_latency_pong
2024-06-12 14:00:25.609 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_error_code
2024-06-12 14:00:25.609 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_error_code_connector
2024-06-12 14:00:25.610 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_stop_reason
2024-06-12 14:00:25.611 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_status_firmware
2024-06-12 14:00:25.611 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_reconnects
2024-06-12 14:00:25.612 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_id_tag
2024-06-12 14:00:25.613 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_id
2024-06-12 14:00:25.613 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_model
2024-06-12 14:00:25.614 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_vendor
2024-06-12 14:00:25.615 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_serial
2024-06-12 14:00:25.615 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_version_firmware
2024-06-12 14:00:25.615 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_features
2024-06-12 14:00:25.616 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_connectors
2024-06-12 14:00:25.618 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_timestamp_data_response
2024-06-12 14:00:25.618 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_timestamp_data_transfer
2024-06-12 14:00:25.618 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_timestamp_config_response
2024-06-12 14:00:25.619 INFO (MainThread) [homeassistant.components.switch] Setting up ocpp.switch
2024-06-12 14:00:25.619 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new switch.ocpp entity: switch.charger_charge_control
2024-06-12 14:00:25.620 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new switch.ocpp entity: switch.charger_availability
2024-06-12 14:00:25.621 INFO (MainThread) [homeassistant.components.number] Setting up ocpp.number
2024-06-12 14:00:25.621 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.ocpp entity: number.charger_maximum_current
2024-06-12 14:00:25.621 INFO (MainThread) [homeassistant.components.button] Setting up ocpp.button
2024-06-12 14:00:25.621 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new button.ocpp entity: button.charger_reset
2024-06-12 14:00:25.622 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new button.ocpp entity: button.charger_unlock
2024-06-12 14:03:39.608 WARNING (MainThread) [custom_components.ocpp] Skipping websocket subprotocol validation
2024-06-12 14:03:39.608 INFO (MainThread) [custom_components.ocpp] Charger websocket path=/40252204456519
2024-06-12 14:03:39.609 INFO (MainThread) [custom_components.ocpp] Charger 40252204456519 connected to 0.0.0.0:9000.
2024-06-12 14:03:40.616 INFO (MainThread) [ocpp] 40252204456519: receive message [2,"112033600","BootNotification",{"chargePointVendor":"WWWW","chargePointModel":"SingleSocketCharger","chargePointSerialNumber":"40252204456519","firmwareVersion":"AC_DUL_2.11TO"}]
2024-06-12 14:03:40.621 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'ocpp' at custom_components/ocpp/api.py, line 1005: await super()._handle_call(msg) (offender: /home/bryan/homeassistant/lib/python3.12/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 "/home/bryan/homeassistant/lib/python3.12/site-packages/ocpp/charge_point.py", line 238, in start
File "/home/bryan/homeassistant/lib/python3.12/site-packages/ocpp/charge_point.py", line 261, in route_message
File "/home/bryan/.homeassistant/custom_components/ocpp/api.py", line 1005, in _handle_call
2024-06-12 14:03:40.622 DEBUG (MainThread) [custom_components.ocpp] Received boot notification for 40252204456519: {'charge_point_vendor': 'WWWW', 'charge_point_model': 'SingleSocketCharger', 'charge_point_serial_number': '40252204456519', 'firmware_version': 'AC_DUL_2.11TO'}
2024-06-12 14:03:40.622 DEBUG (MainThread) [custom_components.ocpp] Updating device info charger: {'charge_point_vendor': 'WWWW', 'charge_point_model': 'SingleSocketCharger', 'charge_point_serial_number': '40252204456519', 'firmware_version': 'AC_DUL_2.11TO'}
2024-06-12 14:03:40.637 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'ocpp' at custom_components/ocpp/api.py, line 1005: await super()._handle_call(msg) (offender: /home/bryan/homeassistant/lib/python3.12/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 "/home/bryan/homeassistant/lib/python3.12/site-packages/ocpp/charge_point.py", line 238, in start
File "/home/bryan/homeassistant/lib/python3.12/site-packages/ocpp/charge_point.py", line 261, in route_message
File "/home/bryan/.homeassistant/custom_components/ocpp/api.py", line 1005, in _handle_call
2024-06-12 14:03:40.641 INFO (MainThread) [ocpp] 40252204456519: send [3,"112033600",{"currentTime":"2024-06-12T19:03:40Z","interval":3600,"status":"Accepted"}]
2024-06-12 14:03:41.608 INFO (MainThread) [ocpp] 40252204456519: receive message [2,"119034001","StatusNotification",{"connectorId":1,"status":"Available","errorCode":"NoError"}]
2024-06-12 14:03:41.610 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'ocpp' at custom_components/ocpp/api.py, line 1005: await super()._handle_call(msg) (offender: /home/bryan/homeassistant/lib/python3.12/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 "/home/bryan/homeassistant/lib/python3.12/site-packages/ocpp/charge_point.py", line 238, in start
File "/home/bryan/homeassistant/lib/python3.12/site-packages/ocpp/charge_point.py", line 261, in route_message
File "/home/bryan/.homeassistant/custom_components/ocpp/api.py", line 1005, in _handle_call
2024-06-12 14:03:41.617 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'ocpp' at custom_components/ocpp/api.py, line 1005: await super()._handle_call(msg) (offender: /home/bryan/homeassistant/lib/python3.12/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 "/home/bryan/homeassistant/lib/python3.12/site-packages/ocpp/charge_point.py", line 238, in start
File "/home/bryan/homeassistant/lib/python3.12/site-packages/ocpp/charge_point.py", line 261, in route_message
File "/home/bryan/.homeassistant/custom_components/ocpp/api.py", line 1005, in _handle_call
2024-06-12 14:03:41.617 INFO (MainThread) [ocpp] 40252204456519: send [3,"119034001",{}]
2024-06-12 14:03:41.620 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'ocpp' at custom_components/ocpp/api.py, line 571: resp = await self.call(req) (offender: /home/bryan/homeassistant/lib/python3.12/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 "/home/bryan/.homeassistant/custom_components/ocpp/api.py", line 459, in post_connect
File "/home/bryan/.homeassistant/custom_components/ocpp/api.py", line 571, in get_supported_features
2024-06-12 14:03:41.620 INFO (MainThread) [ocpp] 40252204456519: send [2,"c3599dc4-9c79-456e-8c3b-8ed3e67ffb58","GetConfiguration",{"key":["SupportedFeatureProfiles"]}]
2024-06-12 14:03:41.712 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"c3599dc4-9c79-456e-8c3b-8ed3e67ffb58",{"configurationKey":[{"key":"SupportedFeatureProfiles","value":"Core,Reservation,Smart Charging,Remote Trigger","readonly":true}]}]
2024-06-12 14:03:41.714 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'ocpp' at custom_components/ocpp/api.py, line 571: resp = await self.call(req) (offender: /home/bryan/homeassistant/lib/python3.12/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 "/home/bryan/.homeassistant/custom_components/ocpp/api.py", line 459, in post_connect
File "/home/bryan/.homeassistant/custom_components/ocpp/api.py", line 571, in get_supported_features
2024-06-12 14:03:41.714 DEBUG (MainThread) [custom_components.ocpp] Feature profiles returned: Profiles.CORE|SMART|RES|REM
2024-06-12 14:03:41.716 INFO (MainThread) [ocpp] 40252204456519: send [2,"caa93f47-7ef1-4fe0-ab3c-a1f929b91b66","GetConfiguration",{"key":["NumberOfConnectors"]}]
2024-06-12 14:03:41.809 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"caa93f47-7ef1-4fe0-ab3c-a1f929b91b66",{"configurationKey":[{"key":"NumberOfConnectors","value":"1","readonly":true}]}]
2024-06-12 14:03:41.809 DEBUG (MainThread) [custom_components.ocpp] Get Configuration for NumberOfConnectors: 1
2024-06-12 14:03:41.809 INFO (MainThread) [ocpp] 40252204456519: send [2,"15fe871c-8d43-44a7-ad1f-151e71526f9d","GetConfiguration",{"key":["HeartbeatInterval"]}]
2024-06-12 14:03:41.914 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"15fe871c-8d43-44a7-ad1f-151e71526f9d",{"configurationKey":[{"key":"HeartbeatInterval","value":"3600","readonly":false}]}]
2024-06-12 14:03:41.914 DEBUG (MainThread) [custom_components.ocpp] Get Configuration for HeartbeatInterval: 3600
2024-06-12 14:03:41.914 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Current.Export'
2024-06-12 14:03:41.916 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'ocpp' at custom_components/ocpp/api.py, line 474: resp = await self.call(req) (offender: /home/bryan/homeassistant/lib/python3.12/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 "/home/bryan/.homeassistant/custom_components/ocpp/api.py", line 474, in post_connect
2024-06-12 14:03:41.917 INFO (MainThread) [ocpp] 40252204456519: send [2,"d029cd17-2dbe-4b9f-bafb-2bd075adb5c8","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Current.Export"}]
2024-06-12 14:03:41.999 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"d029cd17-2dbe-4b9f-bafb-2bd075adb5c8",{"status":"NotSupported"}]
2024-06-12 14:03:42.002 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'ocpp' at custom_components/ocpp/api.py, line 474: resp = await self.call(req) (offender: /home/bryan/homeassistant/lib/python3.12/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 "/home/bryan/.homeassistant/custom_components/ocpp/api.py", line 474, in post_connect
2024-06-12 14:03:42.003 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Current.Import'
2024-06-12 14:03:42.003 INFO (MainThread) [ocpp] 40252204456519: send [2,"8abf0c53-5d98-4130-bb32-e8ce232cfdcb","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Current.Import"}]
2024-06-12 14:03:42.073 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"8abf0c53-5d98-4130-bb32-e8ce232cfdcb",{"status":"NotSupported"}]
2024-06-12 14:03:42.073 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Current.Offered'
2024-06-12 14:03:42.073 INFO (MainThread) [ocpp] 40252204456519: send [2,"658fc1f6-a796-4a16-a7ac-b768cd52b495","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Current.Offered"}]
2024-06-12 14:03:42.140 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"658fc1f6-a796-4a16-a7ac-b768cd52b495",{"status":"NotSupported"}]
2024-06-12 14:03:42.140 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Active.Export.Interval'
2024-06-12 14:03:42.140 INFO (MainThread) [ocpp] 40252204456519: send [2,"f9f15ee6-f677-47ec-9b54-26593f5f4c06","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Active.Export.Interval"}]
2024-06-12 14:03:42.205 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"f9f15ee6-f677-47ec-9b54-26593f5f4c06",{"status":"NotSupported"}]
2024-06-12 14:03:42.205 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Active.Export.Register'
2024-06-12 14:03:42.205 INFO (MainThread) [ocpp] 40252204456519: send [2,"814ec858-8bd2-4350-bca8-6f214c5e3864","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Active.Export.Register"}]
2024-06-12 14:03:42.271 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"814ec858-8bd2-4350-bca8-6f214c5e3864",{"status":"NotSupported"}]
2024-06-12 14:03:42.271 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Active.Import.Interval'
2024-06-12 14:03:42.272 INFO (MainThread) [ocpp] 40252204456519: send [2,"d8d2369b-7035-4bea-9562-46d41ec5527f","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Active.Import.Interval"}]
2024-06-12 14:03:42.335 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"d8d2369b-7035-4bea-9562-46d41ec5527f",{"status":"NotSupported"}]
2024-06-12 14:03:42.336 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Active.Import.Register'
2024-06-12 14:03:42.336 INFO (MainThread) [ocpp] 40252204456519: send [2,"47134dd8-6ccf-4ece-b6ca-d7477ff956eb","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Active.Import.Register"}]
2024-06-12 14:03:42.417 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"47134dd8-6ccf-4ece-b6ca-d7477ff956eb",{"status":"NotSupported"}]
2024-06-12 14:03:42.417 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Reactive.Export.Interval'
2024-06-12 14:03:42.417 INFO (MainThread) [ocpp] 40252204456519: send [2,"11e84f1e-be7b-4a84-b449-92b9671e811d","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Reactive.Export.Interval"}]
2024-06-12 14:03:42.496 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"11e84f1e-be7b-4a84-b449-92b9671e811d",{"status":"NotSupported"}]
2024-06-12 14:03:42.497 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Reactive.Export.Register'
2024-06-12 14:03:42.497 INFO (MainThread) [ocpp] 40252204456519: send [2,"3d2264c6-545b-48d8-8c8d-c7283bf8c037","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Reactive.Export.Register"}]
2024-06-12 14:03:42.573 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"3d2264c6-545b-48d8-8c8d-c7283bf8c037",{"status":"NotSupported"}]
2024-06-12 14:03:42.573 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Reactive.Import.Interval'
2024-06-12 14:03:42.574 INFO (MainThread) [ocpp] 40252204456519: send [2,"5bc85060-3d77-439b-897b-18539cd24472","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Reactive.Import.Interval"}]
2024-06-12 14:03:42.637 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"5bc85060-3d77-439b-897b-18539cd24472",{"status":"NotSupported"}]
2024-06-12 14:03:42.638 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Reactive.Import.Register'
2024-06-12 14:03:42.638 INFO (MainThread) [ocpp] 40252204456519: send [2,"0134a352-87fe-4e87-bcbc-673417df1de0","GetConfiguration",{"key":["SupportedFeatureProfiles"]}]
2024-06-12 14:03:42.700 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"0134a352-87fe-4e87-bcbc-673417df1de0",{"configurationKey":[{"key":"SupportedFeatureProfiles","value":"Core,Reservation,Smart Charging,Remote Trigger","readonly":true}]}]
2024-06-12 14:03:42.700 DEBUG (MainThread) [custom_components.ocpp] Feature profiles returned: Profiles.CORE|SMART|RES|REM
2024-06-12 14:03:42.700 INFO (MainThread) [ocpp] 40252204456519: send [2,"2f643fd9-ba2c-4d3a-90a6-f839aa4d21c4","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Reactive.Import.Register"}]
2024-06-12 14:03:42.787 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"2f643fd9-ba2c-4d3a-90a6-f839aa4d21c4",{"status":"NotSupported"}]
2024-06-12 14:03:42.787 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Frequency'
2024-06-12 14:03:42.787 INFO (MainThread) [ocpp] 40252204456519: send [2,"5af7dc73-2660-43c0-8032-5c343a49409d","GetConfiguration",{"key":["NumberOfConnectors"]}]
2024-06-12 14:03:42.846 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"5af7dc73-2660-43c0-8032-5c343a49409d",{"configurationKey":[{"key":"NumberOfConnectors","value":"1","readonly":true}]}]
2024-06-12 14:03:42.846 DEBUG (MainThread) [custom_components.ocpp] Get Configuration for NumberOfConnectors: 1
2024-06-12 14:03:42.846 INFO (MainThread) [ocpp] 40252204456519: send [2,"6daadfa5-cc22-4ede-bdd8-5534bb565610","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Frequency"}]
2024-06-12 14:03:42.910 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"6daadfa5-cc22-4ede-bdd8-5534bb565610",{"status":"NotSupported"}]
2024-06-12 14:03:42.911 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Power.Active.Export'
2024-06-12 14:03:42.911 INFO (MainThread) [ocpp] 40252204456519: send [2,"bc8d91e1-4880-4efe-a5fd-02e2be5955cb","GetConfiguration",{"key":["HeartbeatInterval"]}]
2024-06-12 14:03:42.965 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"bc8d91e1-4880-4efe-a5fd-02e2be5955cb",{"configurationKey":[{"key":"HeartbeatInterval","value":"3600","readonly":false}]}]
2024-06-12 14:03:42.966 DEBUG (MainThread) [custom_components.ocpp] Get Configuration for HeartbeatInterval: 3600
2024-06-12 14:03:42.966 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Current.Export'
2024-06-12 14:03:42.966 INFO (MainThread) [ocpp] 40252204456519: send [2,"5016cfc7-23e0-45a7-8c1e-41a2414a5f63","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Power.Active.Export"}]
2024-06-12 14:03:43.031 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"5016cfc7-23e0-45a7-8c1e-41a2414a5f63",{"status":"NotSupported"}]
2024-06-12 14:03:43.032 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Power.Active.Import'
2024-06-12 14:03:43.032 INFO (MainThread) [ocpp] 40252204456519: send [2,"f24ebe35-8baf-47cb-8209-283f957c5b6c","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Current.Export"}]
2024-06-12 14:03:43.096 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"f24ebe35-8baf-47cb-8209-283f957c5b6c",{"status":"NotSupported"}]
2024-06-12 14:03:43.097 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Current.Import'
2024-06-12 14:03:43.097 INFO (MainThread) [ocpp] 40252204456519: send [2,"3c1f5efd-eacd-4e55-9ecc-92190c16ec01","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Power.Active.Import"}]
2024-06-12 14:03:43.161 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"3c1f5efd-eacd-4e55-9ecc-92190c16ec01",{"status":"NotSupported"}]
2024-06-12 14:03:43.162 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Power.Factor'
2024-06-12 14:03:43.162 INFO (MainThread) [ocpp] 40252204456519: send [2,"9a991fe8-d42f-4a7d-b73f-1bec55c90182","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Current.Import"}]
2024-06-12 14:03:43.224 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"9a991fe8-d42f-4a7d-b73f-1bec55c90182",{"status":"NotSupported"}]
2024-06-12 14:03:43.224 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Current.Offered'
2024-06-12 14:03:43.224 INFO (MainThread) [ocpp] 40252204456519: send [2,"c3ecfea8-c4b1-4847-b3b5-58e7d2312380","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Power.Factor"}]
2024-06-12 14:03:43.289 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"c3ecfea8-c4b1-4847-b3b5-58e7d2312380",{"status":"NotSupported"}]
2024-06-12 14:03:43.289 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Power.Offered'
2024-06-12 14:03:43.289 INFO (MainThread) [ocpp] 40252204456519: send [2,"58643ec2-befa-4845-a1b5-45980a89e2b0","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Current.Offered"}]
2024-06-12 14:03:43.350 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"58643ec2-befa-4845-a1b5-45980a89e2b0",{"status":"NotSupported"}]
2024-06-12 14:03:43.351 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Active.Export.Interval'
2024-06-12 14:03:43.351 INFO (MainThread) [ocpp] 40252204456519: send [2,"2364db70-4875-4550-bce4-79b63f4400df","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Power.Offered"}]
2024-06-12 14:03:43.414 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"2364db70-4875-4550-bce4-79b63f4400df",{"status":"NotSupported"}]
2024-06-12 14:03:43.414 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Power.Reactive.Export'
2024-06-12 14:03:43.414 INFO (MainThread) [ocpp] 40252204456519: send [2,"6fe75e24-bbbf-4823-8f97-c28c58f01fb8","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Active.Export.Interval"}]
2024-06-12 14:03:43.478 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"6fe75e24-bbbf-4823-8f97-c28c58f01fb8",{"status":"NotSupported"}]
2024-06-12 14:03:43.479 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Active.Export.Register'
2024-06-12 14:03:43.479 INFO (MainThread) [ocpp] 40252204456519: send [2,"9e6b0dce-ab35-4d50-9b7c-24b476146437","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Power.Reactive.Export"}]
2024-06-12 14:03:43.543 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"9e6b0dce-ab35-4d50-9b7c-24b476146437",{"status":"NotSupported"}]
2024-06-12 14:03:43.544 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Power.Reactive.Import'
2024-06-12 14:03:43.544 INFO (MainThread) [ocpp] 40252204456519: send [2,"9dee5ea5-0690-4a94-b95d-5d6eca73844a","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Active.Export.Register"}]
2024-06-12 14:03:43.608 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"9dee5ea5-0690-4a94-b95d-5d6eca73844a",{"status":"NotSupported"}]
2024-06-12 14:03:43.608 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Active.Import.Interval'
2024-06-12 14:03:43.609 INFO (MainThread) [ocpp] 40252204456519: send [2,"e8f2e650-d2da-4824-b06e-051f35d81485","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Power.Reactive.Import"}]
2024-06-12 14:03:43.674 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"e8f2e650-d2da-4824-b06e-051f35d81485",{"status":"NotSupported"}]
2024-06-12 14:03:43.675 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'RPM'
2024-06-12 14:03:43.675 INFO (MainThread) [ocpp] 40252204456519: send [2,"16b716c8-eef7-46ab-9a2a-1b1f652fb855","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Active.Import.Interval"}]
2024-06-12 14:03:43.741 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"16b716c8-eef7-46ab-9a2a-1b1f652fb855",{"status":"NotSupported"}]
2024-06-12 14:03:43.741 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Active.Import.Register'
2024-06-12 14:03:43.741 INFO (MainThread) [ocpp] 40252204456519: send [2,"d4904596-cc88-428d-86f9-3d2c842faea0","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"RPM"}]
2024-06-12 14:03:43.801 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"d4904596-cc88-428d-86f9-3d2c842faea0",{"status":"NotSupported"}]
2024-06-12 14:03:43.802 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'SoC'
2024-06-12 14:03:43.802 INFO (MainThread) [ocpp] 40252204456519: send [2,"5d82cba8-d354-455f-b5d3-89ef8b69df4f","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Active.Import.Register"}]
2024-06-12 14:03:43.866 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"5d82cba8-d354-455f-b5d3-89ef8b69df4f",{"status":"NotSupported"}]
2024-06-12 14:03:43.867 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Reactive.Export.Interval'
2024-06-12 14:03:43.867 INFO (MainThread) [ocpp] 40252204456519: send [2,"61afa693-af00-4555-912f-3010aff02a99","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"SoC"}]
2024-06-12 14:03:43.927 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"61afa693-af00-4555-912f-3010aff02a99",{"status":"NotSupported"}]
2024-06-12 14:03:43.928 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Temperature'
2024-06-12 14:03:43.928 INFO (MainThread) [ocpp] 40252204456519: send [2,"98a0d6dd-51fb-4fc3-8ec7-1a7e9ab36d73","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Reactive.Export.Interval"}]
2024-06-12 14:03:43.994 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"98a0d6dd-51fb-4fc3-8ec7-1a7e9ab36d73",{"status":"NotSupported"}]
2024-06-12 14:03:43.994 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Reactive.Export.Register'
2024-06-12 14:03:43.995 INFO (MainThread) [ocpp] 40252204456519: send [2,"0d8aa975-61d6-4ebd-8629-880ca81d606c","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Temperature"}]
2024-06-12 14:03:44.062 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"0d8aa975-61d6-4ebd-8629-880ca81d606c",{"status":"NotSupported"}]
2024-06-12 14:03:44.063 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Voltage'
2024-06-12 14:03:44.063 INFO (MainThread) [ocpp] 40252204456519: send [2,"59701473-94f3-4124-9c85-68ed12159794","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Reactive.Export.Register"}]
2024-06-12 14:03:44.127 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"59701473-94f3-4124-9c85-68ed12159794",{"status":"NotSupported"}]
2024-06-12 14:03:44.128 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Reactive.Import.Interval'
2024-06-12 14:03:44.128 INFO (MainThread) [ocpp] 40252204456519: send [2,"24286a3e-c089-4bf9-92d2-0651ccda007c","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Voltage"}]
2024-06-12 14:03:44.187 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"24286a3e-c089-4bf9-92d2-0651ccda007c",{"status":"NotSupported"}]
2024-06-12 14:03:44.188 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' measurands not configurable by OCPP
2024-06-12 14:03:44.188 INFO (MainThread) [ocpp] 40252204456519: send [2,"236d7605-ce99-4969-bc49-3febe8b25ece","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Reactive.Import.Interval"}]
2024-06-12 14:03:44.252 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"236d7605-ce99-4969-bc49-3febe8b25ece",{"status":"NotSupported"}]
2024-06-12 14:03:44.253 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Energy.Reactive.Import.Register'
2024-06-12 14:03:44.253 INFO (MainThread) [ocpp] 40252204456519: send [2,"b0c243a3-63e9-4911-8d30-95f445fa67f9","GetConfiguration",{"key":["MeterValuesSampledData"]}]
2024-06-12 14:03:44.305 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"b0c243a3-63e9-4911-8d30-95f445fa67f9",{"configurationKey":[]}]
2024-06-12 14:03:44.306 INFO (MainThread) [ocpp] 40252204456519: send [2,"1adf0660-d03f-48e5-bb04-d9cfd32d6ab0","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Reactive.Import.Register"}]
2024-06-12 14:03:44.306 ERROR (MainThread) [custom_components.ocpp] Unexpected exception in connection to '40252204456519': 'list index out of range'
File "/home/bryan/.homeassistant/custom_components/ocpp/api.py", line 1020, in run
File "/home/bryan/.homeassistant/custom_components/ocpp/api.py", line 489, in post_connect
File "/home/bryan/.homeassistant/custom_components/ocpp/api.py", line 889, in get_configuration
2024-06-12 14:03:44.307 DEBUG (MainThread) [custom_components.ocpp] Closing websocket to '40252204456519'
2024-06-12 14:03:44.372 INFO (MainThread) [ocpp] 40252204456519: receive message [3,"1adf0660-d03f-48e5-bb04-d9cfd32d6ab0",{"status":"NotSupported"}]
2024-06-12 14:03:44.372 DEBUG (MainThread) [custom_components.ocpp] '40252204456519' trying measurand 'Frequency'
2024-06-12 14:03:44.373 INFO (MainThread) [ocpp] 40252204456519: send [2,"4db4c316-fae9-4bdc-97d9-8d41dec3d152","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Frequency"}]
2024-06-12 14:03:44.431 INFO (MainThread) [custom_components.ocpp] Charger 40252204456519 disconnected from 0.0.0.0:9000.
merkurmaniac commented 1 month ago

I just bought one of these after reading the Home Assistant mention in the guy's review. I did NOT get the 123456789 password to work, so I am at a loss. Did you get that far ?

bkcberry commented 1 month ago

Yeah it's 1-8 not 1-9. Make sure you write down all the info in it before you change anything (serial number, factory OCPP url, etc) because resetting the unit does not restore the original values

bkcberry commented 1 month ago

Also FWIW, the problems the grizzl-e charger have looked similar so I tried the work around that's supposed to make those work but it made no difference

SAUhrich commented 1 month ago

Just adding my experience with this charger and this issue, I bought and configured a MaxpeedingRods charger last August and configured it to work with this OCPP integration. It worked well, and provided me with the 3 key features I was looking for: HA control to start/stop the charge, current control during the charge, and tracking the power used daily. I'm 100% solar at home and need to manage the big power loads timing. This worked fantastically until 0.5.2 when this behavior started where it will communicate for around 20sec, then lose connection, then reconnect about 30sec later, where the integration reports a charger reboot. The charger has not, however, rebooted (unless it magically reboots without stopping the current charge cycle :).

Like I said, it worked fine until 0.5.2. I suspect it is some kind of Websockets timing issue or something similar, and I have tried many adjustments to the configuration options related to timing (WEBSOCKET_CLOSE_TIMEOUT, WEBSOCKET_PING_TRIES, WEBSOCKET_PING_INTERVAL, WEBSOCKET_PING_TIMEOUT, SLEEP_TIME, etc.) but no changes to those values seems to have any effect on the behavior. Sadly, I don't know more, I am hoping that a future update will bring a fix! I will certainly post back here though if I have any relevant info/experience.

SAUhrich commented 1 month ago

I just bought one of these after reading the Home Assistant mention in the guy's review. I did NOT get the 123456789 password to work, so I am at a loss. Did you get that far ?

Here is my experience with getting to the configuration of the MaxpeedingRods charger, this is after a couple of days of trial and error back last summer:

When the charger first starts up, you will have a window of opportunity to create a connection to the chargers internal wifi that will broadcast a name something like EVSE-XXXXXXXXX or TAPDON-XXXXXXX. I used a tablet or a smartphone sitting next to the charger outside. Once connected through wifi directly from your phone/tablet, etc. you open a webpage to the IP number of the charger (in my case it was 192.168.4.1). This will bring up the login to the firmware on the charger, and I will say that in my experience once I put in the password (defaulted to 12345678), I had to click the button on the webpage to login successfully. If I hit enter on my tablet/phone, it errored out. Once in the firmware, I could then change the settings, including the login password and once done, I could save, and then reset the charger.

Each time the charger is powered off/rebooted, you will have this window of opportunity to connect to the internal wifi of the charger to make changes. But if there is a configuration setting you've entered for the connection of the charger to your home wifi, once the charger connects properly, you won't be able to login to the charger. In my case the charger internal wifi broadcast will go away until I reboot the charger.

Hope this helps

bkcberry commented 1 month ago

Thank you, i will try downloading 0.5.1 and see what happens. Is that still the version you're running? If so, is it still working correctly?

SAUhrich commented 1 month ago

Thank you, i will try downloading 0.5.1 and see what happens. Is that still the version you're running? If so, is it still working correctly?

Sadly, that did not work for me, I tried removing/installing about 3 or 4 versions back prior to 0.5.2 but saw the same behavior each time. I would be curious if that is the case with your setup too. if you go back to 0.5.1. I'm wondering if there is some other related code that updated around that time that is the real culprit here, like a python update, etc., but just not sure. :( But no, I reinstalled the latest version available (0.5.7), but currently have my entities (central and charger) removed. The alert messages were seriously messing with my OCD! :)

bkcberry commented 1 month ago

Same for me, 0.5.1 made no difference. Sad trombone. Just did a quick test on my lunch break, didn't have time to do much digging

SAUhrich commented 1 month ago

Thanks bkcberry for the result info. Sometime in the next few days, I am going to try to see if I can tell if I can setup a virtual central server and connect the TapdonMaxpeedingRods charger to it to see if I can see any basic errors with communications. The ocpp addin is based on python code from mobilityhouse (https://github.com/mobilityhouse/ocpp). I am not a python expert or anything close to it (!) but I can will setup a test environment to a test "central" server. I will post anything relevant back here.

bkcberry commented 1 month ago

I got it working! I downloaded and extracted 0.5.0 and needed to manually install the packages and their respective versions that are listed in requirements.txt for 0.5.0

SAUhrich commented 1 month ago

That is awesome to hear! I will do the same first thing in the morning and try to replicate your success! Thanks for posting, at least I know it’s possible :) btw, I did get a virtual machine setup with the base python test central server and got my charger to connect. It connects fine, although it gives an error about a couple of unknown messages from the charger, but it stays connected. I’m going to set that aside and try the 0.5.0 route in HA. Thx again

SAUhrich commented 1 month ago

I got it working! I downloaded and extracted 0.5.0 and needed to manually install the packages and their respective versions that are listed in requirements.txt for 0.5.0

This is a big ask, because I'm pretty ignorant with the way different installs of HA work, for example I can use the Terminal addon to get to my configuration, but things like pip, etc. are not available.

How did you get those packages set to the correct versions?

I see the list of packages/versions in the requirements.txt. I suspect that one of those package updates is what is really behind the issue (jsonschema==4.19.2, or maybe websockets==12.0), but I don't know how to update/revert the versions of them.

Like I said, that is a big ask because of my ignorance, feel free to say "bruh, go get edumacated" :)

bkcberry commented 1 month ago

No worries. I run home assistant in a venv (python virtual environment) on ubuntu, it's the instructions on this page towards the bottom for "Install Home Assistant Core." I have actually set up a 2nd instance of HA just for testing this addon, and since it requires old packages I may just leave it there with OCPP being the only thing it does. Anyway, follow the instructions on how to install the Core version of HA, but instead of

pip3 install homeassistant==2024.6.2

you would run

pip3 install homeassistant==2023.11.1 colorlog==6.7.0 ruff==0.1.4 ocpp==0.22.0 websockets==12.0 jsonschema==4.19.2 pre-commit pytest-homeassistant-custom-component==0.13.75

From there you would also need to extract the contents of v0.5.0 to ha_config_folder/custom_components/ocpp Also, don't forget, if you run a 2nd instance of HA on the same machine as your 1st instance, you'll need to add these lines to configuration.yaml for the 2nd instance to run it on a different port

http:
  server_port: 8124

I hope that helps, this is the only way I know of to get this old stuff installed. I couldn't figure out how to manually install old packages in docker (it seems like you'd need to make your own custom image), and I have no idea how you'd do it on any of the other ways that HA can be installed.

I use node-red pretty extensively, so I'm thinking I may use that to feed data from my "ocpp" instance of HA over to the main one via input helpers. Not really sure about that yet

SAUhrich commented 1 month ago

Thank you so much for the info. I will have to wait a day or too to dig into this, but I think I understand. If I get any other info, or workarounds discovered, I will post back here.

onelight17 commented 1 month ago

Hi all, sorry if I am hijacking this thread but I am also trying to setup the TOPDON charger with this integration. Are there any special steps to get this working? I followed the standard guide and updated the TOPDON configuration to point to ws://<ocpp-central-server>:9000

Does plug and play need to be "No" or leave that as is?

Any other configuration that needs to be updated? I know it's using the OCPP1.6-J protocol, didn't touch that. Left the "AuthPass" as is as well.

I get no connection on the home assistance logs though. I set the websockets.server to debug and it only shows the entry for starting the listener.

For the ocpp logs I only see the entry for [custom_components.ocpp] config = {}

Full log if it's helpful:

2024-06-15 23:07:11.746 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-06-15 23:07:12.969 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'media_source', 'tag', 'timer', 'input_button', 'person', 'history', 'image_upload', 'map', 'intent', 'met', 'schedule', 'ffmpeg', 'energy', 'onboarding', 'conversation', 'script', 'input_datetime', 'persistent_notification', 'input_text', 'mobile_app', 'counter', 'logbook', 'device_automation', 'shopping_list', 'diagnostics', 'lovelace', 'input_boolean', 'stream', 'homeassistant_alerts', 'system_health', 'ocpp', 'radio_browser', 'tts', 'search', 'application_credentials', 'my', 'file_upload', 'trace', 'thread', 'config', 'sun', 'zone', 'automation', 'input_number', 'hacs', 'analytics', 'wake_word', 'input_select', 'stt', 'blueprint', 'google_translate', 'cast', 'scene', 'backup', 'hardware', 'default_config', 'assist_pipeline'}
2024-06-15 23:07:13.682 INFO (MainThread) [homeassistant.setup] Setting up ocpp
2024-06-15 23:07:13.682 INFO (MainThread) [custom_components.ocpp] config = {}
2024-06-15 23:07:13.682 INFO (MainThread) [homeassistant.setup] Setup of domain ocpp took 0.00 seconds
2024-06-15 23:07:14.960 INFO (MainThread) [homeassistant.components.sensor] Setting up ocpp.sensor
2024-06-15 23:07:14.993 INFO (MainThread) [homeassistant.components.switch] Setting up ocpp.switch
2024-06-15 23:07:14.995 INFO (MainThread) [homeassistant.components.number] Setting up ocpp.number
2024-06-15 23:07:14.999 INFO (MainThread) [homeassistant.components.button] Setting up ocpp.button
2024-06-15 23:10:35.831 INFO (MainThread) [homeassistant.components.sensor] Setting up ocpp.sensor
2024-06-15 23:10:35.833 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_active_export_interval
2024-06-15 23:10:35.835 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_reactive_export_register
2024-06-15 23:10:35.838 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_transaction_id
2024-06-15 23:10:35.840 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_power_active_import
2024-06-15 23:10:35.841 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_power_reactive_export
2024-06-15 23:10:35.842 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_power_reactive_import
2024-06-15 23:10:35.844 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_meter_start
2024-06-15 23:10:35.845 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_frequency
2024-06-15 23:10:35.846 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_temperature
2024-06-15 23:10:35.847 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_reactive_import_interval
2024-06-15 23:10:35.850 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_power_active_export
2024-06-15 23:10:35.851 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_active_import_interval
2024-06-15 23:10:35.852 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_soc
2024-06-15 23:10:35.853 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_active_export_register
2024-06-15 23:10:35.854 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_current_offered
2024-06-15 23:10:35.858 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_current_import
2024-06-15 23:10:35.859 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_time_session
2024-06-15 23:10:35.860 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_voltage
2024-06-15 23:10:35.861 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_current_export
2024-06-15 23:10:35.862 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_session
2024-06-15 23:10:35.864 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_power_factor
2024-06-15 23:10:35.866 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_active_import_register
2024-06-15 23:10:35.873 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_reactive_import_register
2024-06-15 23:10:35.875 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_rpm
2024-06-15 23:10:35.875 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_energy_reactive_export_interval
2024-06-15 23:10:35.876 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_power_offered
2024-06-15 23:10:35.877 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_status
2024-06-15 23:10:35.882 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_status_connector
2024-06-15 23:10:35.883 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_heartbeat
2024-06-15 23:10:35.885 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_latency_ping
2024-06-15 23:10:35.886 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_latency_pong
2024-06-15 23:10:35.888 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_error_code
2024-06-15 23:10:35.889 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_error_code_connector
2024-06-15 23:10:35.890 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_stop_reason
2024-06-15 23:10:35.891 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_status_firmware
2024-06-15 23:10:35.893 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_reconnects
2024-06-15 23:10:35.895 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_id_tag
2024-06-15 23:10:35.897 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_id
2024-06-15 23:10:35.898 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_model
2024-06-15 23:10:35.899 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_vendor
2024-06-15 23:10:35.900 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_serial
2024-06-15 23:10:35.901 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_version_firmware
2024-06-15 23:10:35.902 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_features
2024-06-15 23:10:35.904 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_connectors
2024-06-15 23:10:35.905 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_timestamp_data_response
2024-06-15 23:10:35.922 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_timestamp_data_transfer
2024-06-15 23:10:35.923 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.ocpp entity: sensor.charger_timestamp_config_response
2024-06-15 23:10:35.931 INFO (MainThread) [homeassistant.components.switch] Setting up ocpp.switch
2024-06-15 23:10:35.932 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new switch.ocpp entity: switch.charger_charge_control
2024-06-15 23:10:35.933 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new switch.ocpp entity: switch.charger_availability
2024-06-15 23:10:35.934 INFO (MainThread) [homeassistant.components.number] Setting up ocpp.number
2024-06-15 23:10:35.934 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.ocpp entity: number.charger_maximum_current
2024-06-15 23:10:35.936 INFO (MainThread) [homeassistant.components.button] Setting up ocpp.button
2024-06-15 23:10:35.937 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new button.ocpp entity: button.charger_reset
2024-06-15 23:10:35.938 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new button.ocpp entity: button.charger_unlock

Thanks in advance!

onelight17 commented 1 month ago

Scratch that, I had a silly typo in the IP Address.

So now I actually just have the same issue described here where it loops in the connectivity. Will attempt the same downgrade of versions and see if it resolves. Thanks @bkcberry for posting your solutions!

merkurmaniac commented 1 month ago

Does this mean that we need to switch back to all old version of home assistant and never upgrade, or is it just some small files that need to be reverted and held?

⁣Get BlueMail for Android ​

On Jun 15, 2024, 6:54 PM, at 6:54 PM, onelight17 @.***> wrote:

Scratch that, I had a silly typo in the IP Address.

So now I actually just have the same issue described here where it loops in the connectivity. Will attempt the same downgrade of versions and see if it resolves. Thanks @bkcberry for posting your solutions!

-- Reply to this email directly or view it on GitHub: https://github.com/lbbrhzn/ocpp/issues/1203#issuecomment-2170977973 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

bkcberry commented 1 month ago

I'm not sure, as I said I set up a test environment for this and I believe it was on 2023.12.1, but in the process of installing the packages that are required for v0.5.0 of this addon home assistant got rolled back to 2023.11.1. It may work with something later than that but it also may not. My plan is to just leave OCPP set up on my 2nd instance going forward but that is mostly because it's working now and I'm tired of messing with it

SAUhrich commented 1 month ago

Just putting this here if the HA OCPP integration devs are reading this issue post. I found this from back in 2020. This is from the MobilityHouse git, which I think this integration is based on. There was an issue early on that presents specifically like this possible reoccurrence with the diconnects/reboot message every 40sec: https://github.com/mobilityhouse/ocpp/issues/79

onelight17 commented 1 month ago

For others who may stumble upon this and like me use the docker configuration. The steps are almost the same as the one posted above by @bkcberry

Just pull the container for home assistant for version 2023.11.1 and then manually extract v0.5.0 of this custom_component "ocpp" and the run the same pip commands

pip3 install homeassistant==2023.11.1 colorlog==6.7.0 ruff==0.1.4 ocpp==0.22.0 websockets==12.0 jsonschema==4.19.2 pre-commit pytest-homeassistant-custom-component==0.13.75

All done inside the container.

That worked for me and no longer getting the disconnect loop.

SAUhrich commented 1 month ago

Just an FYI after the 0.5.8 release. I'm still testing, but as far as I can tell so far, no joy on 0.5.8 resolving this issue. In fact it seems to make the connection drop more frequently and not ever really make the connection properly.

In 0.5.7, it would accept and connect to the charger and actually allow you to send commands (begin or stop charge, change available current, etc) for about 10 seconds before going dead. Then after the 40 second timeout and reboot signal, you could get control for about 10 seconds again.