Missing device/entities

I have a number of Sonoff S26 plugs which I re-flashed with ESP home and use in various automations.

I had one which was planned for my Christmas tree and when I flashed earlier this year it all worked fine and was able to be controlled by HomeAssistant. But as I did not need it for a few months I put it on a shelf and disabled the entities in HA. When I got it down I tried to reenable the entities again but that did not seem to work. I thought I would delete the device and entities and let them get discovered again. This did not work as no new device or entities appeared.

Looking in ESPhome I can see the device which shows as online. I also made some changes to the config and sent that OTA which worked. Still no device or entities in HA.

So I removed from ESPhome and recreated it again with the same name. ESPhome picked it up as online and I can view logs…etc.

I am at the stage now where it is in ESPhome and showing the correct state but no device or entities are available in HA. Is there something I am missing to force HA to create these again?

Thanks
Regards

You should just delete the “esphome integration” for the corresponding esphome node and don’t bother with the “device” or “entities” itself because the integration will take care of them.

Then just add it (the integration) again and everything on the ha side should be fresh and working :rocket:

Unfortunately the ESPhome node does not exist. It looks like when I had removed it from ESPhome originally the node was removed from the integration. But even after adding it back in ESPhome it does not appear as a node in the integration.
Is there a way to have it recreated again?

Add it manually inintegrations, hit the big + button.

Do you mean the big blue button under integrations? If i try to add ESPhome again it asks for my ESPhome host which is the same as I already have.
I see all my other s26 devices but don’t see this one. Cannot see any other + buttons to add items under the ESPhome integration.


Yet the plug is shown under the ESPhome icon on the left bar with all other devices I have flashed.

host is the IP address of the node you are trying to add. If it tells you it already exists confirm the ip address. Check it’s not assigned to the other nodes by clicking the log output. The first few lines will contain the ip address.

2 Likes

Thanks all. I had made an incorrect assumption and you were spot on. Added the IP from the logs on the ESPhome tab and the device and entities appeared.

Thanks for the right pointers.

1 Like

Hello everyone!

Also i have the same problems. Sometimes we lost almost devices and entities. I dont know what is the rootcause, someone can help me?

Thank you so much!

Wow, I battled to solve this…an old thread but hey it worked…for clarity you go directly to integrations menu and simply click and then input the IP of the ESP that you pull from the log file showing for that device under the ESP menu !!

Outstanding