Question about Wemo Switch on Home Assistant?

Does the Wemo Switch work within the local network without internet access on Home Assistant?

The reason I ask is that I tried to set up an automation to reboot my internet modem by “Toggling” the Wemo Insight Switch via Home Assistant.

I did this remotely and it seems to have just turned off the modem altogether.