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.
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.
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.
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’.
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.
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!