Graceful Shutdown Sensor

Perhaps you can create a script that sets the boolean then restarts.
It’s a bit of an inconvenience but if you place the script as a button on the dashboard then at least it’s visible and easy to get to.

Here’s a clever way to know if a config is valid before restarting