CLI or JSON to turn WAN on / off ?

JSON APi should be possible:

CLI is quite useless…

Alternatively, you can assign a schedule to the WAN-connection: