Hi there.
Im runing Hassio in docker on ubuntu which is a Vm in Vmware ESXI
previously i was using homeassistant on Pi, but switched to a mini server due to SD card deaths
on PI it was all good - installed inntegration, added login password in yaml and all good at that moment
now i try to add new sonoff devices, but they dont appear in homeassistant
i tried reinstall the integration but no luck
i restored a snapshot, SonoffLAN devices are visible and working but i guess they are from last working setup because, if i delete any from HA, it doesnt show up again after server restart. If i add any new devices to Ewelink they doesnt also appear at HA
i also tried uninstalling the integrations, and installing them, but that either didnt work
okay i managed with tuya but sonoff keeps making me pain
i tried to delete integration, delete all sonoff objects and restart
new start, add integration, objects appear that were deleted, so i guess integration works. but if i add a new sonoff switch i dont see it
I figured all out.
SonoffLAN makes a file Sonoff.json in the HA folder, you have to delete it to refresh the devices from the server.
or write in configuration.yaml a line in sonoff section reload: always
this way it will reload the list every time HA reboots.
All working good and happy
Have been using sonoff switches for over a year and have added new ones periodically by using the eWelink phone app. I have always had them show up in home assistant once I reboot because I have reload:always in the configuration file. Just now added another switch (identical to all my other switches) to eWeLink app, rebooted HA but this time, the new switch does not show up in my entities section of HA. All the other sonoff switches still work in HA. Any clues what i need to do to get the newly added switch to show up in HA?
Solved the problem. I had previously disabled the sonoff switch when I quit using it a few months ago. I had to select “show disabled entities” and then re-enable it in the entity’s settings.