I think this is covered in the automation section of the cookbook...
There's a few cases in motion activated lights that cover restart safety and probably give an example.
Also watch that heater on that eve plug. I'm betting it's ride-ing the max amperage for that plug. You'll also want to watch it for burning out (suddenly unavailable)