I need to turn on and off a Shelly relay by TCP command (string). Via the web interface the command is "IPxxx.xxx.xxx.xxx/relais/0?turn=on" or =off. Works fine. I can also control the relay via the WD6 with the query HTTPRequestToVar("http://IPxxx.xxx.xxx.xxx/relais/0?turn=on", "VAR-Name"). Unfortunately, when I create the interface as a Device TCP client, I am missing the correct spelling of the command. For example: Shelly.Send("turn off [CR]"). The relay is created correctly in the Device configuration. Since I only have the option to send a string command in the final project, the variant via HTTPRequest is unfortunately not of much use to me. Has anyone had experience with Shelly's relays and could help me?
Thanks a lot
Andreas