Restore Switch State after Node-RED restart

You could make a simple script to do it.

#Tell Node-RED to restore state of lights and switches after restart
/usr/bin/curl -k https://localhost:1880/restore-states