Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: 09:00:21 (4 occurrences)
Last logged: 09:03:07
Error setting up entry SM-S918B for mobile_app
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/mobile_app/**init**.py", line 116, in async_setup_entry
webhook_register(hass, DOMAIN, registration_name, webhook_id, handle_webhook)
File "/usr/src/homeassistant/homeassistant/components/webhook/**init**.py", line 54, in async_register
raise ValueError("Handler is already defined!")
ValueError: Handler is already defined!
You may just need to clean up those old registrations. The start fresh steps will help here
https://companion.home-assistant.io/docs/troubleshooting/faqs#starting-fresh-with-the-android-app
would love to clean up, it seems on 2024.6.2 it created those new entries for the mobile app, i tried deleting the original but it refuses to delete it for some reason, other issue is if you start fresh it seems to just increment the entities from the phone, and there are lots of automations built using the sensor name, which means i need to go and change lots of automations, something i obviously dont want to do
now you know what you really need to fix, if you cat remove a integration something is not right
this is most likely caused by the above issue, fix the deleting integration issue and then this should work.
you have some general installation issues you need to correct first.
when everything is working as expected you will be able to give the device the same name so you wont need to change that. Focus on the main issue first, where you cant delete the integration.
None of what you suggest is if any help, now it seems this is occurring with another android device, so not related only to that device
yes you have a larger underlying issue as you cannot remove the device, that would be a HA core bug that needs to be fixed. More than likely some configuration file in your system is corrupted.
what error in the HA core logs do you see when you attempt to remove a device that wont let you remove it?
I am having the same issue, but on an iPhone… Cannot figure out how to fix it. - log entry:
---- cut —
File “/usr/src/homeassistant/homeassistant/components/mobile_app/init.py”, line 116, in async_setup_entry
webhook_register(hass, DOMAIN, registration_name, webhook_id, handle_webhook)
File “/usr/src/homeassistant/homeassistant/components/webhook/init.py”, line 54, in async_register
raise ValueError(“Handler is already defined!”)
ValueError: Handler is already defined!
2024-06-21 17:30:26.833 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry John’s iPhone for mobile_app
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 594, in async_setup
result = await component.async_setup_entry(hass, self)