Unless I am mistaken, there is currently no way to setup the Alerts and Automation template to notify via email when a device status is offline and online.
I know this is a feature under the Legacy Alerts and works as intended, but I would prefer to be able to add a device to the Alert template instead of creating the legacy alert for over 150 devices with no idea how long the feature will be supported for.