Hi Alan, Ok, thanks for adding that to your to-do list. I've sorted out including the variable now, by using the generic TCP command, but I'm having problems with ampersands. I'm trying to send the following string, but a packet trace shows that the ampersands are escaped as would be usual for HTTP requests but which unfortunately isn't understood by this web server. This... GET /json.htm?type=command¶m=udevice&idx=104&nvalue=0&svalue=PARAM{1146,1012} HTTP/1.0\r\n\r\n Is converted to... GET /json.htm?type=command¶m=udevice&idx=104&nvalue=0&svalue=8 HTTP/1.0 If I telnet to the web server (Domoticz) and paste in the command without conversion then it works, but if I paste in the version with ampersands escaped like this then it fails. Is there a way to send an un-escaped ampersand? Thanks, Mark.