Check out Home Assistant.

This. Not only does everything still work in an internet outage, mine actively detects and heals most internet outages by power cycling the modem with a smart plug.