ZWaveControllerCommandType

  • 131 Views
  • Last Post 08 March 2013
brokengeiger posted this 25 February 2013

Well I just tossed notepad.exe in as an example, but if I can launch notepad than I can launch sc.exe start , powershell.exe p.ps1, shutdown -r -t0, ect.

If I can do that than all I would need is the little button on the app to remotely reboot my media center or restart a service (to avoid rebooting) or lets go so far as a theoretical scenario (launch a hyper-v machine, do some predestined work, close hyper-v)...

but really all I want at this very moment is have the ability reboot my machine as sometimes I forget to restart the security camera service when I'm maintaining it - and since it's headless it'll sit there waiting for me or a reboot.

Order By: Standard | Newest | Votes
Ryan-Scott posted this 26 February 2013

Let's say I wanted to restart my camera service or launch an app - is this executeZWaveControllerCommand the right API?
What would the proper format be?

public ZwaveCommandResult executeZWaveControllerCommand(
string password,
ZWaveControllerCommandType commandType
)


http://192.168.0.xxx:1178/zwave/executeZWaveControllerCommand
"PUT"
-jsonobject params - password, ZWaveControllerCommandType

ZWaveControllerCommandType = "notepad.exe"? I didn't see a link on this one in the help


Can you describe where you would call this from or how you want to launch notepad (i.e, what triggers it?)

brokengeiger posted this 26 February 2013

Well I just tossed notepad.exe in as an example, but if I can launch notepad than I can launch sc.exe start , powershell.exe p.ps1, shutdown -r -t0, ect.

If I can do that than all I would need is the little button on the app to remotely reboot my media center or restart a service (to avoid rebooting) or lets go so far as a theoretical scenario (launch a hyper-v machine, do some predestined work, close hyper-v)...

but really all I want at this very moment is have the ability reboot my machine as sometimes I forget to restart the security camera service when I'm maintaining it - and since it's headless it'll sit there waiting for me or a reboot.

Ryan-Scott posted this 07 March 2013

Well I just tossed notepad.exe in as an example, but if I can launch notepad than I can launch sc.exe start , powershell.exe p.ps1, shutdown -r -t0, ect.

If I can do that than all I would need is the little button on the app to remotely reboot my media center or restart a service (to avoid rebooting) or lets go so far as a theoretical scenario (launch a hyper-v machine, do some predestined work, close hyper-v)...

but really all I want at this very moment is have the ability reboot my machine as sometimes I forget to restart the security camera service when I'm maintaining it - and since it's headless it'll sit there waiting for me or a reboot.



You could probably create a c# script and have it run as part of a scene. Have the script issue a reboot command.

This same method would work to lanch sc.exe or any program for that matter.

brokengeiger posted this 07 March 2013

I'm now getting the sense that the plugin solution isn't limited by silly things that limit the innovation. That's awesome then.

Ryan-Scott posted this 08 March 2013

I'm now getting the sense that the plugin solution isn't limited by silly things that limit the innovation. That's awesome then.


You can do everything in the plugin language that you can do in C#.

Close