## Version of the custom_component
OCPP: v0.5.1
ZJ BENY: v1.0.31 BCP-A2N-L
…
## Describe the bug
When I change the charging current it starts giving errors and the device goes offline for about 25 seconds before coming back online, then repeating.
I can see in the logs that it is reporting that the message is not valid JSON and ChatGPT suggests the issue is the leading comma before the first object in the 'sampledValue' array. Would that be causing the unit to become unresponsive. If so, does this mean there is an issue with the firmware, or is there a possible work around to get the unit stable?
## Debug log
```text
2024-02-06 19:06:21.580 INFO (MainThread) [ocpp] charger: send [2,"f2b57d3b-1d2d-47ec-ab9d-d3778b0fc8e7","GetConfiguration",{"key":["ChargingScheduleAllowedChargingRateUnit"]}]
2024-02-06 19:06:21.977 INFO (MainThread) [ocpp] charger: receive message [3,"f2b57d3b-1d2d-47ec-ab9d-d3778b0fc8e7",{"configurationKey":[{"key":"ChargingScheduleAllowedChargingRateUnit","readonly":true,"value":"Current,Power"}]}]
2024-02-06 19:06:21.978 INFO (MainThread) [ocpp] charger: send [2,"0e75fc9a-1906-4d7a-a1cf-00a1d47bcecf","GetConfiguration",{"key":["ChargeProfileMaxStackLevel"]}]
2024-02-06 19:06:22.084 INFO (MainThread) [ocpp] charger: receive message [3,"0e75fc9a-1906-4d7a-a1cf-00a1d47bcecf",{"configurationKey":[{"key":"ChargeProfileMaxStackLevel","readonly":true,"value":"10"}]}]
2024-02-06 19:06:22.090 INFO (MainThread) [ocpp] charger: send [2,"768714ab-5d43-4da1-96d2-4e9ada87eaa6","SetChargingProfile",{"connectorId":0,"csChargingProfiles":{"chargingProfileId":8,"stackLevel":10,"chargingProfileKind":"Relative","chargingProfilePurpose":"ChargePointMaxProfile","chargingSchedule":{"chargingRateUnit":"A","chargingSchedulePeriod":[{"startPeriod":0,"limit":19.0}]}}}]
2024-02-06 19:06:22.235 INFO (MainThread) [ocpp] charger: receive message [3,"768714ab-5d43-4da1-96d2-4e9ada87eaa6",{"status":"Accepted"}]
2024-02-06 19:06:33.831 INFO (MainThread) [ocpp] charger: send [2,"9ccb5185-bc1a-4329-8c26-41caa55f457e","GetConfiguration",{"key":["ChargingScheduleAllowedChargingRateUnit"]}]
2024-02-06 19:07:03.834 INFO (MainThread) [ocpp] charger: send [2,"9315d242-e8ee-49a9-87bd-9d957bcd6e86","GetConfiguration",{"key":["ChargingScheduleAllowedChargingRateUnit"]}]
2024-02-06 19:07:03.835 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140343519912896] Waited 30s for response on [2,"9ccb5185-bc1a-4329-8c26-41caa55f457e","GetConfiguration",{"key":["ChargingScheduleAllowedChargingRateUnit"]}].
Traceback (most recent call last):
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 500, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/queues.py", line 158, in get
await getter
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 327, in call
response = await self._get_specific_response(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ocpp/api.py", line 893, in _get_specific_response
resp = await super()._get_specific_response(unique_id, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 361, in _get_specific_response
response = await asyncio.wait_for(self._response_queue.get(), timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 502, in wait_for
raise exceptions.TimeoutError() from exc
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2149, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2186, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 272, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 882, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 952, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 111, in async_set_value
await entity.async_set_native_value(native_value)
File "/config/custom_components/ocpp/number.py", line 129, in async_set_native_value
resp = await self.central_system.set_max_charge_rate_amps(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ocpp/api.py", line 289, in set_max_charge_rate_amps
return await self.charge_points[cp_id].set_charge_rate(limit_amps=value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ocpp/api.py", line 605, in set_charge_rate
resp = await self.get_configuration(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ocpp/api.py", line 828, in get_configuration
resp = await self.call(req)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 331, in call
raise asyncio.TimeoutError(
TimeoutError: Waited 30s for response on [2,"9ccb5185-bc1a-4329-8c26-41caa55f457e","GetConfiguration",{"key":["ChargingScheduleAllowedChargingRateUnit"]}].
2024-02-06 19:07:04.168 INFO (MainThread) [ocpp] charger: receive message [3,"9315d242-e8ee-49a9-87bd-9d957bcd6e86",{"configurationKey":[{"key":"ChargingScheduleAllowedChargingRateUnit","readonly":true,"value":"Current,Power"}]}]
2024-02-06 19:07:04.169 INFO (MainThread) [ocpp] charger: send [2,"5680766b-54f2-45c2-9f9e-c621d7fc7bc1","GetConfiguration",{"key":["ChargingScheduleAllowedChargingRateUnit"]}]
2024-02-06 19:07:04.277 INFO (MainThread) [ocpp] charger: receive message [3,"5680766b-54f2-45c2-9f9e-c621d7fc7bc1",{"configurationKey":[{"key":"ChargingScheduleAllowedChargingRateUnit","readonly":true,"value":"Current,Power"}]}]
2024-02-06 19:07:04.278 INFO (MainThread) [ocpp] charger: send [2,"29bfe3b5-dc38-410c-9346-7dbe8e12f909","GetConfiguration",{"key":["ChargeProfileMaxStackLevel"]}]
2024-02-06 19:07:04.398 INFO (MainThread) [ocpp] charger: receive message [3,"29bfe3b5-dc38-410c-9346-7dbe8e12f909",{"configurationKey":[{"key":"ChargeProfileMaxStackLevel","readonly":true,"value":"10"}]}]
2024-02-06 19:07:04.400 INFO (MainThread) [ocpp] charger: send [2,"01d17eac-8ec3-478d-bd1c-9fa2422c3769","GetConfiguration",{"key":["ChargeProfileMaxStackLevel"]}]
2024-02-06 19:07:04.499 INFO (MainThread) [ocpp] charger: receive message [3,"01d17eac-8ec3-478d-bd1c-9fa2422c3769",{"configurationKey":[{"key":"ChargeProfileMaxStackLevel","readonly":true,"value":"10"}]}]
2024-02-06 19:07:04.501 INFO (MainThread) [ocpp] charger: send [2,"5f9dd208-f771-4cfa-887a-682c18ecea15","SetChargingProfile",{"connectorId":0,"csChargingProfiles":{"chargingProfileId":8,"stackLevel":10,"chargingProfileKind":"Relative","chargingProfilePurpose":"ChargePointMaxProfile","chargingSchedule":{"chargingRateUnit":"A","chargingSchedulePeriod":[{"startPeriod":0,"limit":25.0}]}}}]
2024-02-06 19:07:04.751 INFO (MainThread) [ocpp] charger: receive message [3,"5f9dd208-f771-4cfa-887a-682c18ecea15",{"status":"Accepted"}]
2024-02-06 19:07:04.752 INFO (MainThread) [ocpp] charger: send [2,"a876aa5a-5cd7-4246-ae0f-3c3d7ad49305","SetChargingProfile",{"connectorId":0,"csChargingProfiles":{"chargingProfileId":8,"stackLevel":10,"chargingProfileKind":"Relative","chargingProfilePurpose":"ChargePointMaxProfile","chargingSchedule":{"chargingRateUnit":"A","chargingSchedulePeriod":[{"startPeriod":0,"limit":13.0}]}}}]
2024-02-06 19:07:05.091 INFO (MainThread) [ocpp] charger: receive message [3,"a876aa5a-5cd7-4246-ae0f-3c3d7ad49305",{"status":"Accepted"}]
2024-02-06 19:07:25.122 INFO (MainThread) [ocpp] charger: send [2,"aaccc5b5-1f1f-428b-914d-5b78b54b09cb","GetConfiguration",{"key":["ChargingScheduleAllowedChargingRateUnit"]}]
2024-02-06 19:07:25.459 INFO (MainThread) [ocpp] charger: receive message [3,"aaccc5b5-1f1f-428b-914d-5b78b54b09cb",{"configurationKey":[{"key":"ChargingScheduleAllowedChargingRateUnit","readonly":true,"value":"Current,Power"}]}]
2024-02-06 19:07:25.461 INFO (MainThread) [ocpp] charger: send [2,"d7c1959c-aed7-41dd-bd22-e60eaa4c10a7","GetConfiguration",{"key":["ChargeProfileMaxStackLevel"]}]
2024-02-06 19:07:25.595 INFO (MainThread) [ocpp] charger: receive message [3,"d7c1959c-aed7-41dd-bd22-e60eaa4c10a7",{"configurationKey":[{"key":"ChargeProfileMaxStackLevel","readonly":true,"value":"10"}]}]
2024-02-06 19:07:25.596 INFO (MainThread) [ocpp] charger: send [2,"ceab6279-3351-4bee-b9ad-07079e5e3f93","SetChargingProfile",{"connectorId":0,"csChargingProfiles":{"chargingProfileId":8,"stackLevel":10,"chargingProfileKind":"Relative","chargingProfilePurpose":"ChargePointMaxProfile","chargingSchedule":{"chargingRateUnit":"A","chargingSchedulePeriod":[{"startPeriod":0,"limit":32.0}]}}}]
2024-02-06 19:07:25.744 INFO (MainThread) [ocpp] charger: receive message [3,"ceab6279-3351-4bee-b9ad-07079e5e3f93",{"status":"Accepted"}]
2024-02-06 19:07:54.535 DEBUG (MainThread) [custom_components.ocpp] Connection latency from 'central' to 'charger': ping=0.0 ms, pong=388.0 ms
2024-02-06 19:07:57.251 INFO (MainThread) [ocpp] charger: send [2,"42c54a18-42aa-4aa5-baeb-38a53f084b04","GetConfiguration",{"key":["ChargingScheduleAllowedChargingRateUnit"]}]
2024-02-06 19:07:57.411 INFO (MainThread) [ocpp] charger: receive message [3,"42c54a18-42aa-4aa5-baeb-38a53f084b04",{"configurationKey":[{"key":"ChargingScheduleAllowedChargingRateUnit","readonly":true,"value":"Current,Power"}]}]
2024-02-06 19:07:57.412 DEBUG (MainThread) [custom_components.ocpp] Get Configuration for ChargingScheduleAllowedChargingRateUnit: Current,Power
2024-02-06 19:07:57.412 INFO (MainThread) [custom_components.ocpp] Charger supports setting the following units: Current,Power
2024-02-06 19:07:57.412 INFO (MainThread) [custom_components.ocpp] If more than one unit supported default unit is Amps
2024-02-06 19:07:57.413 INFO (MainThread) [ocpp] charger: send [2,"6377e2ce-78a6-49bd-ab8e-28f2b00fa7ed","GetConfiguration",{"key":["ChargeProfileMaxStackLevel"]}]
2024-02-06 19:07:57.544 INFO (MainThread) [ocpp] charger: receive message [3,"6377e2ce-78a6-49bd-ab8e-28f2b00fa7ed",{"configurationKey":[{"key":"ChargeProfileMaxStackLevel","readonly":true,"value":"10"}]}]
2024-02-06 19:07:57.546 DEBUG (MainThread) [custom_components.ocpp] Get Configuration for ChargeProfileMaxStackLevel: 10
2024-02-06 19:07:57.547 INFO (MainThread) [ocpp] charger: send [2,"93034109-3401-4fa0-a489-788a9641b987","SetChargingProfile",{"connectorId":0,"csChargingProfiles":{"chargingProfileId":8,"stackLevel":10,"chargingProfileKind":"Relative","chargingProfilePurpose":"ChargePointMaxProfile","chargingSchedule":{"chargingRateUnit":"A","chargingSchedulePeriod":[{"startPeriod":0,"limit":14.0}]}}}]
2024-02-06 19:07:57.694 INFO (MainThread) [ocpp] charger: receive message [3,"93034109-3401-4fa0-a489-788a9641b987",{"status":"Accepted"}]
2024-02-06 19:08:06.627 INFO (MainThread) [ocpp] charger: send [2,"6ecd5bbb-0b49-4936-a324-001a3c95676e","GetConfiguration",{"key":["ChargingScheduleAllowedChargingRateUnit"]}]
2024-02-06 19:08:06.833 INFO (MainThread) [ocpp] charger: receive message [3,"6ecd5bbb-0b49-4936-a324-001a3c95676e",{"configurationKey":[{"key":"ChargingScheduleAllowedChargingRateUnit","readonly":true,"value":"Current,Power"}]}]
2024-02-06 19:08:06.834 DEBUG (MainThread) [custom_components.ocpp] Get Configuration for ChargingScheduleAllowedChargingRateUnit: Current,Power
2024-02-06 19:08:06.834 INFO (MainThread) [custom_components.ocpp] Charger supports setting the following units: Current,Power
2024-02-06 19:08:06.834 INFO (MainThread) [custom_components.ocpp] If more than one unit supported default unit is Amps
2024-02-06 19:08:06.835 INFO (MainThread) [ocpp] charger: send [2,"48e78bba-ebec-4c72-b4f3-b3bb55a9b404","GetConfiguration",{"key":["ChargeProfileMaxStackLevel"]}]
2024-02-06 19:08:06.967 INFO (MainThread) [ocpp] charger: receive message [3,"48e78bba-ebec-4c72-b4f3-b3bb55a9b404",{"configurationKey":[{"key":"ChargeProfileMaxStackLevel","readonly":true,"value":"10"}]}]
2024-02-06 19:08:06.968 DEBUG (MainThread) [custom_components.ocpp] Get Configuration for ChargeProfileMaxStackLevel: 10
2024-02-06 19:08:06.969 INFO (MainThread) [ocpp] charger: send [2,"257ccf76-9843-47d5-b176-7c5eaa82dd5f","SetChargingProfile",{"connectorId":0,"csChargingProfiles":{"chargingProfileId":8,"stackLevel":10,"chargingProfileKind":"Relative","chargingProfilePurpose":"ChargePointMaxProfile","chargingSchedule":{"chargingRateUnit":"A","chargingSchedulePeriod":[{"startPeriod":0,"limit":32.0}]}}}]
2024-02-06 19:08:07.118 INFO (MainThread) [ocpp] charger: receive message [3,"257ccf76-9843-47d5-b176-7c5eaa82dd5f",{"status":"Accepted"}]
2024-02-06 19:08:14.700 DEBUG (MainThread) [custom_components.ocpp] Connection latency from 'central' to 'charger': ping=0.0 ms, pong=162.0 ms
2024-02-06 19:08:35.108 DEBUG (MainThread) [custom_components.ocpp] Connection latency from 'central' to 'charger': ping=0.0 ms, pong=407.0 ms
2024-02-06 19:08:55.238 DEBUG (MainThread) [custom_components.ocpp] Connection latency from 'central' to 'charger': ping=0.0 ms, pong=129.0 ms
2024-02-06 19:08:58.223 INFO (MainThread) [ocpp] charger: receive message [2,"3w5c2fuqqfzmnexl3w4g93rq","StatusNotification",{"connectorId":1,"errorCode":"NoError","status":"Preparing","timestamp":"2024-02-06T08:08:58Z"}]
2024-02-06 19:08:58.224 INFO (MainThread) [ocpp] charger: send [3,"3w5c2fuqqfzmnexl3w4g93rq",{}]
2024-02-06 19:09:03.323 INFO (MainThread) [ocpp] charger: send [2,"cf7ca473-36a1-4c4a-9976-28817badcad1","GetConfiguration",{"key":["AuthorizeRemoteTxRequests"]}]
2024-02-06 19:09:03.463 INFO (MainThread) [ocpp] charger: receive message [3,"cf7ca473-36a1-4c4a-9976-28817badcad1",{"configurationKey":[{"key":"AuthorizeRemoteTxRequests","readonly":false,"value":"false"}]}]
2024-02-06 19:09:03.464 DEBUG (MainThread) [custom_components.ocpp] Get Configuration for AuthorizeRemoteTxRequests: false
2024-02-06 19:09:03.468 INFO (MainThread) [ocpp] charger: send [2,"c785ab85-368c-42af-8203-340830c6e2b8","RemoteStartTransaction",{"idTag":"charger","connectorId":1}]
2024-02-06 19:09:03.567 INFO (MainThread) [ocpp] charger: receive message [3,"c785ab85-368c-42af-8203-340830c6e2b8",{"status":"Accepted"}]
2024-02-06 19:09:03.844 INFO (MainThread) [ocpp] charger: receive message [2,"0kzq33gkhf81p7w76wfd5szx","StartTransaction",{"connectorId":1,"idTag":"charger","meterStart":139954,"timestamp":"2024-02-06T08:09:04Z"}]
2024-02-06 19:09:03.849 DEBUG (MainThread) [custom_components.ocpp] id_tag='charger' not found in auth_list, default authorization_status='Accepted'
2024-02-06 19:09:03.851 INFO (MainThread) [ocpp] charger: send [3,"0kzq33gkhf81p7w76wfd5szx",{"transactionId":1707206943,"idTagInfo":{"status":"Accepted"}}]
2024-02-06 19:09:04.583 INFO (MainThread) [ocpp] charger: receive message [2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]
2024-02-06 19:09:04.583 ERROR (MainThread) [ocpp] Unable to parse message: '[2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]', it doesn't seem to be valid OCPP: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 83, in unpack
msg = json.loads(msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 155 (char 154)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 175, in route_message
msg = unpack(raw_msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 85, in unpack
raise FormatViolationError(
ocpp.exceptions.FormatViolationError: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
2024-02-06 19:09:09.593 INFO (MainThread) [ocpp] charger: receive message [2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]
2024-02-06 19:09:09.594 ERROR (MainThread) [ocpp] Unable to parse message: '[2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]', it doesn't seem to be valid OCPP: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 83, in unpack
msg = json.loads(msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 155 (char 154)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 175, in route_message
msg = unpack(raw_msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 85, in unpack
raise FormatViolationError(
ocpp.exceptions.FormatViolationError: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
2024-02-06 19:09:14.603 INFO (MainThread) [ocpp] charger: receive message [2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]
2024-02-06 19:09:14.604 ERROR (MainThread) [ocpp] Unable to parse message: '[2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]', it doesn't seem to be valid OCPP: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 83, in unpack
msg = json.loads(msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 155 (char 154)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 175, in route_message
msg = unpack(raw_msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 85, in unpack
raise FormatViolationError(
ocpp.exceptions.FormatViolationError: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
2024-02-06 19:09:15.311 DEBUG (MainThread) [custom_components.ocpp] Connection latency from 'central' to 'charger': ping=0.0 ms, pong=72.0 ms
2024-02-06 19:09:19.613 INFO (MainThread) [ocpp] charger: receive message [2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]
2024-02-06 19:09:19.614 ERROR (MainThread) [ocpp] Unable to parse message: '[2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]', it doesn't seem to be valid OCPP: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 83, in unpack
msg = json.loads(msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 155 (char 154)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 175, in route_message
msg = unpack(raw_msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 85, in unpack
raise FormatViolationError(
ocpp.exceptions.FormatViolationError: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9386nmn4ktjx4znjck54b8k2","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:05Z","sampledValue":[,{"value":"139954","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
2024-02-06 19:09:30.429 INFO (MainThread) [ocpp] charger: send [2,"706efad7-87ba-4350-a864-6572dd94159b","GetConfiguration",{"key":["ChargingScheduleAllowedChargingRateUnit"]}]
2024-02-06 19:09:33.616 DEBUG (MainThread) [custom_components.ocpp] Connection closed to 'charger': no close frame received or sent
2024-02-06 19:09:33.616 INFO (MainThread) [custom_components.ocpp] Charger charger disconnected from 192.168.1.106:9000.
2024-02-06 19:09:36.361 INFO (MainThread) [custom_components.ocpp] Websocket Subprotocol matched: ocpp1.6
2024-02-06 19:09:36.361 INFO (MainThread) [custom_components.ocpp] Charger websocket path=///charger
2024-02-06 19:09:36.361 INFO (MainThread) [custom_components.ocpp] Charger charger reconnected to 192.168.1.106:9000.
2024-02-06 19:09:36.361 DEBUG (MainThread) [custom_components.ocpp] Reconnect websocket to charger
2024-02-06 19:09:37.153 INFO (MainThread) [ocpp] charger: receive message [2,"t99o4weaxjsy5tl1p5xk2h7b","StatusNotification",{"connectorId":1,"errorCode":"NoError","status":"Charging","timestamp":"2024-02-06T08:09:05Z"}]
2024-02-06 19:09:37.154 INFO (MainThread) [ocpp] charger: send [3,"t99o4weaxjsy5tl1p5xk2h7b",{}]
2024-02-06 19:09:37.522 INFO (MainThread) [ocpp] charger: receive message [2,"b4r3j7d3r1dlbnvm2zfwpu0s","StatusNotification",{"connectorId":0,"errorCode":"NoError","status":"Available","timestamp":"2024-02-06T08:09:36Z"}]
2024-02-06 19:09:37.523 INFO (MainThread) [ocpp] charger: send [3,"b4r3j7d3r1dlbnvm2zfwpu0s",{}]
2024-02-06 19:09:37.897 INFO (MainThread) [ocpp] charger: receive message [2,"q6pvnqrzkknby78vpg13y0b9","StatusNotification",{"connectorId":1,"errorCode":"NoError","status":"Charging","timestamp":"2024-02-06T08:09:36Z"}]
2024-02-06 19:09:37.898 INFO (MainThread) [ocpp] charger: send [3,"q6pvnqrzkknby78vpg13y0b9",{}]
2024-02-06 19:09:38.289 INFO (MainThread) [ocpp] charger: receive message [2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]
2024-02-06 19:09:38.289 ERROR (MainThread) [ocpp] Unable to parse message: '[2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]', it doesn't seem to be valid OCPP: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 83, in unpack
msg = json.loads(msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 155 (char 154)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 175, in route_message
msg = unpack(raw_msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 85, in unpack
raise FormatViolationError(
ocpp.exceptions.FormatViolationError: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
2024-02-06 19:09:43.300 INFO (MainThread) [ocpp] charger: receive message [2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]
2024-02-06 19:09:43.301 ERROR (MainThread) [ocpp] Unable to parse message: '[2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]', it doesn't seem to be valid OCPP: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 83, in unpack
msg = json.loads(msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 155 (char 154)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 175, in route_message
msg = unpack(raw_msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 85, in unpack
raise FormatViolationError(
ocpp.exceptions.FormatViolationError: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
2024-02-06 19:09:48.312 INFO (MainThread) [ocpp] charger: receive message [2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]
2024-02-06 19:09:48.312 ERROR (MainThread) [ocpp] Unable to parse message: '[2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]', it doesn't seem to be valid OCPP: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 83, in unpack
msg = json.loads(msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 155 (char 154)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 175, in route_message
msg = unpack(raw_msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 85, in unpack
raise FormatViolationError(
ocpp.exceptions.FormatViolationError: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
2024-02-06 19:09:53.318 INFO (MainThread) [ocpp] charger: receive message [2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]
2024-02-06 19:09:53.318 ERROR (MainThread) [ocpp] Unable to parse message: '[2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]', it doesn't seem to be valid OCPP: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 83, in unpack
msg = json.loads(msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 155 (char 154)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 175, in route_message
msg = unpack(raw_msg)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ocpp/messages.py", line 85, in unpack
raise FormatViolationError(
ocpp.exceptions.FormatViolationError: FormatViolationError: Payload for Action is syntactically incorrect or structure for Action, {'cause': 'Message is not valid JSON', 'ocpp_message': '[2,"9lmha8x27fuad8cemfzn5bxr","MeterValues",{"connectorId":1,"transactionId":1707206943,"meterValue":[{"timestamp":"2024-02-06T08:09:37Z","sampledValue":[,{"value":"139955","context":"Sample.Periodic","measurand":"Energy.Active.Import.Register","format":"Raw","unit":"Wh"},{"value":"0","measurand":"Power.Active.Import","format":"Raw","unit":"W"}]}]}]'}
2024-02-06 19:09:56.634 DEBUG (MainThread) [custom_components.ocpp] Connection latency from 'central' to 'charger': ping=0.0 ms, pong=271.0 ms
2024-02-06 19:10:00.430 INFO (MainThread) [ocpp] charger: send [2,"acbd2b61-8c20-4ae7-80bf-ff76c1236f57","GetConfiguration",{"key":["ChargingScheduleAllowedChargingRateUnit"]}]
2024-02-06 19:10:00.430 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140343519912896] Waited 30s for response on [2,"706efad7-87ba-4350-a864-6572dd94159b","GetConfiguration",{"key":["ChargingScheduleAllowedChargingRateUnit"]}].
Traceback (most recent call last):
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 500, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/queues.py", line 158, in get
await getter
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 327, in call
response = await self._get_specific_response(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ocpp/api.py", line 893, in _get_specific_response
resp = await super()._get_specific_response(unique_id, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 361, in _get_specific_response
response = await asyncio.wait_for(self._response_queue.get(), timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 502, in wait_for
raise exceptions.TimeoutError() from exc
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2149, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2186, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 272, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 882, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 952, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 111, in async_set_value
await entity.async_set_native_value(native_value)
File "/config/custom_components/ocpp/number.py", line 129, in async_set_native_value
resp = await self.central_system.set_max_charge_rate_amps(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ocpp/api.py", line 289, in set_max_charge_rate_amps
return await self.charge_points[cp_id].set_charge_rate(limit_amps=value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ocpp/api.py", line 605, in set_charge_rate
resp = await self.get_configuration(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ocpp/api.py", line 828, in get_configuration
resp = await self.call(req)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/ocpp/charge_point.py", line 331, in call
raise asyncio.TimeoutError(
TimeoutError: Waited 30s for response on [2,"706efad7-87ba-4350-a864-6572dd94159b","GetConfiguration",{"key":["ChargingScheduleAllowedChargingRateUnit"]}].
2024-02-06 19:10:05.971 INFO (MainThread) [custom_components.ocpp] Websocket Subprotocol matched: ocpp1.6
2024-02-06 19:10:05.971 INFO (MainThread) [custom_components.ocpp] Charger websocket path=///charger
2024-02-06 19:10:05.971 INFO (MainThread) [custom_components.ocpp] Charger charger reconnected to 192.168.1.106:9000.
2024-02-06 19:10:05.971 DEBUG (MainThread) [custom_components.ocpp] Reconnect websocket to charger
2024-02-06 19:10:05.971 DEBUG (MainThread) [custom_components.ocpp] Closing websocket to 'charger'
2024-02-06 19:10:08.826 INFO (MainThread) [ocpp] charger: receive message [2,"8ihps4pd1460etv1yj2ra5nb","StatusNotification",{"connectorId":0,"errorCode":"NoError","status":"Available","timestamp":"2024-02-06T08:10:06Z"}]
2024-02-06 19:10:08.827 INFO (MainThread) [ocpp] charger: send [3,"8ihps4pd1460etv1yj2ra5nb",{}]
2024-02-06 19:10:08.828 DEBUG (MainThread) [custom_components.ocpp] Closing websocket to 'charger'
2024-02-06 19:10:09.197 INFO (MainThread) [ocpp] charger: receive message [2,"zfx0uomszb7rw369wbkz7zoc","StatusNotification",{"connectorId":1,"errorCode":"NoError","status":"Charging","timestamp":"2024-02-06T08:10:06Z"}]
2024-02-06 19:10:09.198 INFO (MainThread) [ocpp] charger: send [3,"zfx0uomszb7rw369wbkz7zoc",{}]
2024-02-06 19:10:19.072 DEBUG (MainThread) [custom_components.ocpp] Connection closed to 'charger': sent 1000 (OK); no close frame received
2024-02-06 19:10:19.073 INFO (MainThread) [custom_components.ocpp] Charger charger disconnected from 192.168.1.106:9000.
```