Can you control those devices you mentioned from a browser. If so you could execute a shell script from within HG
Probably the best route would be the HG Helper Classes. A search on this forum should throw up some examples of this. @Bounz if he’s looking in might be able to assist if you supply a little more detail.