-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCPP - Warning - Stop transaction failed with response Rejected #1491
Comments
hi @RafAustralia. So far, all I can see in the logs is that the charger did not respond to the RemoteStopTransaction message for 10 seconds. In regards to your notification: |
Cheers @rbb-dev I am in process of discovery - so with all of that - it has just started to happen persistently. Below are examples of what I think relates to rejection of calls... EXAMPLE OF REJECTED CALLS FROM THE LOGS: 2025-01-19 17:10:07.095 INFO (MainThread) [homeassistant.components.automation.emhass_ev_charging_automation] EMHASS EV Charging Automation: Running automation actions ................................................................................................................................................................................. 2025-01-19 17:02:33.463 INFO (MainThread) [ocpp] 240700203: send [3,"d7r2fu1g43ewcrw80fyvn382",{}] ................................................................................................................................................................................. Hope these help? |
I've been receiving the same over the last week or so. From one day to the next no changes made to HA or the integration. My installation still shows all of the correct values in sensors and charge control + Availability are controllable as is reset and unlock, however these identical errors are created if the max current is adjusted. I can still adjust charge current on the fly during a charge if I use the standard web management interface of the EVSE. This stopped working on v2024.12.1. |
Mate, you have an issue with your automation setup. thats not right :) |
cheers @rbb-dev I will definitely look at that asap... much appreciate the reply. |
Check this link: |
@RafAustralia If you're ok now, please close this issue :) |
Hey @rbb-dev Thank u for that Me and @purcell-labs have altered the automation. Inverter works. Starts. Charges adjusts current. Stops. But messages still happen throughout the day and especially when ev is not around. Im monitoring situation. Raf |
@RafAustralia i get it.. alias: Charger DC - Stop Charging at 06:00AM
description: Charger DC - Stop Charging at 06:00AM
triggers:
- trigger: time
at: "06:00:00"
conditions:
- condition: state
entity_id: sensor.charger_dc_status_connector
state: Charging
actions:
- type: turn_off
device_id: 1317fe2e42d9ef2626d5b12c2eb58188
entity_id: b5ddbe1253875c6187bf8343b3e1759e
domain: switch
mode: single |
Hey. Cheers @rbb-dev i will send u copy of my automation tomorrow when Im in front of my laptop We did fix automation components but. Raf |
@rbb-dev Good Morning @purcell-lab (cc Mark Purcell who has been helping me with this) As promised the copy of automation code we have - would love your input Our automation is more complex, it is based on emhass fractional timestamps, deferrable load and reliant on using amber price forecasts and best optimal times to charge EV... but like I said - it is always good to peer review... your comments are welcome
|
@RafAustralia sent you an email |
Hi there - I am getting persistent notifications every hour or so that the OCPP has failed, with the : - Warning - Stop transaction failed with response Rejected
Has anyone come across that?
-->
I am running BENNYZJ OCPP V16 with firmware 1.0.0.34
Homeassistant version 2025.1.2
-->
Configuration
Add your logs here.
Describe the bug
Here are examples of ERRORS:
.........................................................................................................
Logger: custom_components.ocpp
Source: custom_components/ocpp/ocppv16.py:790
integration: Open Charge Point Protocol (OCPP) (documentation, issues)
First occurred: 7:51:42 AM (1 occurrences)
Last logged: 7:51:42 AM
Stop transaction received for unknown transaction id=1737315090
.........................................................................................................
Logger: custom_components.ocpp
Source: custom_components/ocpp/ocppv16.py:412
integration: Open Charge Point Protocol (OCPP) (documentation, issues)
First occurred: 5:31:32 AM (2 occurrences)
Last logged: 5:32:22 AM
Failed with response: Rejected
.........................................................................................................
WARNING:
.........................................................................................................
Logger: custom_components.ocpp
Source: custom_components/ocpp/ocppv16.py:629
integration: Open Charge Point Protocol (OCPP) (documentation, issues)
First occurred: 5:31:31 AM (161 occurrences)
Last logged: 7:51:42 AM
Unknown transaction detected with id=1737315090
.........................................................................................................
Debug log
I have just enabled the debug log so it may not show any previous errors yet....
but this is from live Ha log:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/queues.py", line 186, 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.13/site-packages/ocpp/charge_point.py", line 421, in call
response = await self._get_specific_response(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
call.unique_id, self._response_timeout
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/ocpp/chargepoint.py", line 463, in _get_specific_response
resp = await super()._get_specific_response(unique_id, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 455, in _get_specific_response
response = await asyncio.wait_for(self._response_queue.get(), timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
async with timeouts.timeout(timeout):
~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in aexit
raise TimeoutError from exc_val
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 781, in _async_device_step
await device_action.async_call_action_from_config(
self._hass, self._action, self._variables, self._context
)
File "/usr/src/homeassistant/homeassistant/components/device_automation/action.py", line 72, in async_call_action_from_config
await platform.async_call_action_from_config(hass, config, variables, context)
File "/usr/src/homeassistant/homeassistant/components/switch/device_action.py", line 36, in async_call_action_from_config
await toggle_entity.async_call_action_from_config(
hass, config, variables, context, DOMAIN
)
File "/usr/src/homeassistant/homeassistant/components/device_automation/toggle_entity.py", line 124, in async_call_action_from_config
await hass.services.async_call(
domain, action, service_data, blocking=True, context=context
)
File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1078, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/ocpp/switch.py", line 139, in async_turn_off
resp = await self.central_system.set_charger_state(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self.cp_id, self.entity_description.off_action
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/ocpp/api.py", line 243, in set_charger_state
resp = await self.charge_points[cp_id].stop_transaction()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ocpp/ocppv16.py", line 427, in stop_transaction
resp = await self.call(req)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 425, in call
raise asyncio.TimeoutError(
...<2 lines>...
)
TimeoutError: Waited 10s for response on [2,"82becf89-be42-4b23-ac2c-660f1f308965","RemoteStopTransaction",{"transactionId":1737195514}].
2025-01-19 13:12:16.506 ERROR (MainThread) [homeassistant.components.automation.emhass_ev_charging_automation] EMHASS EV Charging Automation: Error executing script. Unexpected error for choose at pos 1: Waited 10s for response on [2,"82becf89-be42-4b23-ac2c-660f1f308965","RemoteStopTransaction",{"transactionId":1737195514}].
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/queues.py", line 186, 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.13/site-packages/ocpp/charge_point.py", line 421, in call
response = await self._get_specific_response(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
call.unique_id, self._response_timeout
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/ocpp/chargepoint.py", line 463, in _get_specific_response
resp = await super()._get_specific_response(unique_id, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 455, in _get_specific_response
response = await asyncio.wait_for(self._response_queue.get(), timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
async with timeouts.timeout(timeout):
~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in aexit
raise TimeoutError from exc_val
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1057, in _async_choose_step
await self._async_run_script(choose_data["default"])
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1274, in _async_run_script
result = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1801, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 464, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 528, in _async_step
self._handle_exception(
~~~~~~~~~~~~~~~~~~~~~~^
ex, continue_on_error, self._log_exceptions or log_exceptions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 558, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 781, in _async_device_step
await device_action.async_call_action_from_config(
self._hass, self._action, self._variables, self._context
)
File "/usr/src/homeassistant/homeassistant/components/device_automation/action.py", line 72, in async_call_action_from_config
await platform.async_call_action_from_config(hass, config, variables, context)
File "/usr/src/homeassistant/homeassistant/components/switch/device_action.py", line 36, in async_call_action_from_config
await toggle_entity.async_call_action_from_config(
hass, config, variables, context, DOMAIN
)
File "/usr/src/homeassistant/homeassistant/components/device_automation/toggle_entity.py", line 124, in async_call_action_from_config
await hass.services.async_call(
domain, action, service_data, blocking=True, context=context
)
File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1078, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/ocpp/switch.py", line 139, in async_turn_off
resp = await self.central_system.set_charger_state(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self.cp_id, self.entity_description.off_action
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/ocpp/api.py", line 243, in set_charger_state
resp = await self.charge_points[cp_id].stop_transaction()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ocpp/ocppv16.py", line 427, in stop_transaction
resp = await self.call(req)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 425, in call
raise asyncio.TimeoutError(
...<2 lines>...
)
TimeoutError: Waited 10s for response on [2,"82becf89-be42-4b23-ac2c-660f1f308965","RemoteStopTransaction",{"transactionId":1737195514}].
2025-01-19 13:12:16.508 ERROR (MainThread) [homeassistant.components.automation.emhass_ev_charging_automation] While executing automation automation.emhass_ev_charging_automation
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/queues.py", line 186, 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.13/site-packages/ocpp/charge_point.py", line 421, in call
response = await self._get_specific_response(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
call.unique_id, self._response_timeout
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/ocpp/chargepoint.py", line 463, in _get_specific_response
resp = await super()._get_specific_response(unique_id, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 455, in _get_specific_response
response = await asyncio.wait_for(self._response_queue.get(), timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
async with timeouts.timeout(timeout):
~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in aexit
raise TimeoutError from exc_val
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/automation/init.py", line 718, in async_trigger
return await self.action_script.async_run(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
variables, trigger_context, started_action
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1801, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 464, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 528, in _async_step
self._handle_exception(
~~~~~~~~~~~~~~~~~~~~~~^
ex, continue_on_error, self._log_exceptions or log_exceptions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 558, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1057, in _async_choose_step
await self._async_run_script(choose_data["default"])
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1274, in _async_run_script
result = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1801, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 464, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 528, in _async_step
self._handle_exception(
~~~~~~~~~~~~~~~~~~~~~~^
ex, continue_on_error, self._log_exceptions or log_exceptions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 558, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 781, in _async_device_step
await device_action.async_call_action_from_config(
self._hass, self._action, self._variables, self._context
)
File "/usr/src/homeassistant/homeassistant/components/device_automation/action.py", line 72, in async_call_action_from_config
await platform.async_call_action_from_config(hass, config, variables, context)
File "/usr/src/homeassistant/homeassistant/components/switch/device_action.py", line 36, in async_call_action_from_config
await toggle_entity.async_call_action_from_config(
hass, config, variables, context, DOMAIN
)
File "/usr/src/homeassistant/homeassistant/components/device_automation/toggle_entity.py", line 124, in async_call_action_from_config
await hass.services.async_call(
domain, action, service_data, blocking=True, context=context
)
File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1078, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/ocpp/switch.py", line 139, in async_turn_off
resp = await self.central_system.set_charger_state(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self.cp_id, self.entity_description.off_action
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/ocpp/api.py", line 243, in set_charger_state
resp = await self.charge_points[cp_id].stop_transaction()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ocpp/ocppv16.py", line 427, in stop_transaction
resp = await self.call(req)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/ocpp/charge_point.py", line 425, in call
raise asyncio.TimeoutError(
...<2 lines>...
).
The text was updated successfully, but these errors were encountered: