Switching a Zwave device with no network

When I need to restart my network modem and router can I setup a flow to turn the power off the devices and then have a timer set to turn them back on again. Surely Homey is still working and would have the zwave connection to the device.

Yeap, it works