Device is already configured

I have 34 devices in my HA universe, all of which have been recognised perfectly. Except for one. It does not appear in the device list and is not deactivated.
When I try to add it manually via the IP, I get the message: Device is already configured.
I have compared the mac addresses of all active devices with the problem device and there is no match.
How can I throw out the supposedly already configured device and add it as a new one?

We really need more info on this. Please take a look at this link.

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371

What device list isnā€™t it in?
How are you adding it manually?
What is giving the message?
What are you trying to add?

1 Like

Ok, of course, I should have described it more precisely.
Various Shelly devices are installed and functional. These also appear in the Settings/devices & services/devices list.
I tried to add them manually under ā€œ+ add deviceā€. The error message is: Device is already configured. In any case, this is the translation in English.
I am trying to add a Shelly 3EM. Several of these are already integrated without any problems.

Thanks for the info, Iā€™m not using any Shelly equipment so I wonā€™t be able to help, however the additional information you have provided might spark someone to help.

Using the IP of your Shelly, can you reach it via the browser?

Are you configuring Shelly devices with static IPs or are you using DHCP?

Check your config/.storage directory to see if you can find the device in there. Searching by MAC address will probably be easiest.

But, before you change anything (knowing the risks that come with fiddling with the internal config): When did this issue start? Did this device ever work from HA?

The 3EM can be accessed and configured in the browser. All Shelly devices are configured with a static IP address.

I am using Home Assistant core on a Raspberry. To be honest, I have no idea where to find config/.storage.

I canā€™t date the problem exactly, this one Shelly 3Em was simply either not found when setting up the Raspberry about 2 months ago. Or it was installed and then disappeared. Unfortunately I canā€™t say, as Iā€™ve only just checked the devices.

Then the full path is very likely this:

/home/homeassistant/.homeassistant/.storage

In there, run:

grep -i "<mac_address>"

Let me know if you find anything.

Thank you very much, that was the magic trick. I found the device, deleted the whole entry and then restarted HA.
It then automatically detected the 3EM and this time integrated it successfully.

For people who have no idea about HA at all, iā€™ll add:
To be able to open the path, the Samba share must first be installed under add-ons. Then you can open the IP of your Home Assistant with the file explorer and edit the files there.

1 Like

And a general disclaimer: Do not edit these internal storage files unless you really know what youā€™re doing and only if thereā€™s no alternative. You can break your system. Also make sure you have working backups.

I had the same issue after attempting to add a light bulb via the MagicHome integration using the bulbā€™s IP address, and @parautenbach and @bambuz soution to delete the entry from storage and restart worked.

I found this thread as I also experienced the same issue. I have 50 shelly devices and all but one have been found automatically by the integration. However on trying to add the missing device manually in the GUI by adding the IP address (set to static in the router) I originally got ā€˜device is already configuredā€™.

I tried a factory reset of the device (a shelly morion 2) and that was found in the shelly mobile app and (re)configured. I can log in to the device by web browser using its IP. Finding this thread I adding the file editor add-on, enabled viewing of storage and tried to find the device by itā€™s MAC address. Another thread directed me to .storage/core.config_entries where all my other Shelly devices can be found - but not the missing one!

I changed the IP address but that had no effect other than on trying to add it again via the integration I now get ā€˜failed to connectā€™. I changed the IP back to the original but still get the same. The device is plugged in and awake on trying to add it but it just doesnā€™t find itā€¦ any ideas? @parautenbach Thanks.

Are you able to add this device in Shellyā€™s own app? Is the cloud setting on or off?

Thanks for your reply. Yes after the factory reset it was discovered in the Shelly app on my phone and I added it back into a room. Using the IP address I can see that the cloud symbol is green and the motion sensor is reporting motion, lux, temperature etc in the app and all settings are available to edit.

However I still get ā€˜failed to connectā€™ when trying to manually add the device. Iā€™m using the IP address and port 80. Doing the same for any of the devices already in HA returns ā€˜Device already configuredā€™.

Do you have a single, flat network?

Can you detail your steps ā€“ with screenshots?

Since youā€™re adding it manually, was the device not automatically discovered by the built-in Shelly integration?

Is this particular device battery-powered?

Iā€™m trying to add manually as the shelly integration has not found the device but it has found all the others. The device is battery powered but plugged in and awake whilst attempting to add to HA. I have two other ā€˜motion 2ā€™ devices and device information for these can be found in the .storage/core.config_entries folder but there is no trace of the missing device.

Network wise itā€™s just one single wifi network with all the devices connected. Here is the device when viewed via IP address (connected to wifi and cloud enabled):

Sorry as a new user Iā€™m not allowed to post more than one image. Here on the left Iā€™m trying to add the device (whilst plugged in and awake). On the right is the result where it fails to connect.

Did you set the mcast setting (under COIOT) for the device (see the note on the Shelly integration page).

Thatā€™s fixed it! Itā€™s been some months since I started with HA and I completely forgot that I had manually configured the CoIoT settings for the other motion sensors but I must have missed this device.

Sorry to have troubled you but thanks very much for your help!

1 Like

No problem. Glad it helped!