Is it possible to send the following TCP request using KM?

I’d like to send TCP commands to my Global Cache WI2IR from KM. Currently I’m using my ISY home automation controller. Below is a sample:

I believe the nc tool can do this.

See:

I followed the guide, however I don’t seem to be getting a response when I execute the command via KM. Have I missed something?

image

That S should be a $ as in $KMVAR_Command.

Also you should use double quotes around it so "$KMVAR_Command".

The \r will probably work because Keyboard Maestro will parse it in the Set Variable action, and then it should survive to the echo command.