Rediscover devices after boot

Today we had a (planned) power down for the whole house. When the power went up again all devices (router, Hue, Xiaomi, Hass etc) started again, with the Hass.io (rasp.pi3) being one of the fastest.

On the home assistant web gui the Philips Hue lights and Xiaomi were missing. One “invalid config” appeared for the xiaomi-aqara: “component and plarform could not be set up”. Nothing for the Hue lights, they are just gone. To be clear: when I manually restart hass.io all issues are gone.

Is there a automatic mechanism to recover from this? Because this way all automations fail after a power down and will never recover.

I too would like to know. It takes me about 5-7 minutes for a reboot of Home Assistant to find new devices. Surely manually kicking a rediscover would be faster?

You can automate a restart of HA if it is shut down unexpected or even if the log has a specific error.