I recently had a power failure and when HA came back online it was with some config errors. A restart of HA fixed this and everything went back to normal. What I would like to automate is HA checking for a invalid config as displayed on the front end and if there is one restart home assistant.
I have the restarting down and I would add a delay so as not to end up in a loop by accident but I don’t know how to check for config errors.