Page 1 of 1

Shelly Pro 1PM v1 TCP command WD6?

PostPosted: Sat Sep 23, 2023 12:22 pm
by grunewald-media
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

Re: Shelly Pro 1PM v1 TCP command WD6?

PostPosted: Sun Sep 24, 2023 1:21 am
by Daniel Kaminski
Hi,

I use serveral different Shellys in my Projects.

Why is sending a string a via a HTTPRequest a problem? Help me understand, what is the limiting factor?

Daniel

Re: Shelly Pro 1PM v1 TCP command WD6?

PostPosted: Tue Sep 26, 2023 11:47 am
by videodsh
Hi,

I am controlling shelly RGBW LED Stripes in a simple custom script button with:

WDHTTPRequest("http://10.0.26.69/color/0?turn=on&red=0&green=0&blue=255&white=255")