8000 ValueError: Config entry central (...) for ocpp.sensor has already been setup! · Issue #1620 · lbbrhzn/ocpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ValueError: Config entry central (...) for ocpp.sensor has already been setup! #1620

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

Open
KristianOellegaard opened this issue Apr 20, 2025 · 5 comments

Comments

@KristianOellegaard
Copy link

Describe the bug
A clear and concise description of what the bug is.

When starting the integration I get

Logger: homeassistant.config_entries
Source: config_entries.py:751
First occurred: 9:33:43 PM (12 occurrences)
Last logged: 9:53:38 PM

Error setting up entry central for button
Error setting up entry OCPP Host for sensor
Error setting up entry OCPP Host for switch
Error setting up entry OCPP Host for number
Error setting up entry OCPP Host for button
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 751, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 97, in async_setup_entry
return await hass.data[DATA_COMPONENT].async_setup_entry(entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 182, in async_setup_entry
raise ValueError(
...<2 lines>...
)
ValueError: Config entry central (...) for ocpp.sensor has already been setup!

To Reproduce
Steps to reproduce the behavior:

  1. Add the integration
  2. See the charger be discovered
  3. Click "Add device"
  4. All entities are unavailable and see this error on console

Additional context
Add any other context about the problem here.

Some times it seems to work to reboot HA and the charger but then after some hours usually 8 hours or so it fails again

@RangerDjanger
Copy link
RangerDjanger commented Apr 22, 2025

I have the same problem...

Image

@KristianOellegaard
Copy link
Author

I managed to get the integration working again yesterday without fixing the underlying problem. I had an EVBox Elvi that also had a simcard and I disabled it. I no longer see the error so I believe it is related to when it has connectivity issues and cannot recover.

I believe there is still a bug that needs to be addressed, but it could be that the exception happens as consequence of something different than what I originally thought

@rbb-dev
Copy link
rbb-dev commented Apr 22, 2025

I think you need to delete occp central entry and create is as another name.
its complaining that its still there.

@aaronegger
Copy link

I have the same issue..

@aaronegger
Copy link

Maybe this correlates with this: home-assistant/core#116482

< 4958 /form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0