Shelly Pro 1PM v1 TCP command WD6?

Christie Widget Designer Version 6 - Q&A

Moderator: Moderator Group

Forum rules
When asking make sure to include the operating system and the revision of Widget Designer you are using.

Shelly Pro 1PM v1 TCP command WD6?

Postby grunewald-media » Sat Sep 23, 2023 12:22 pm

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
grunewald-media
 
Posts: 2
Joined: Fri Jun 19, 2009 1:17 pm

Re: Shelly Pro 1PM v1 TCP command WD6?

Postby Daniel Kaminski » Sun Sep 24, 2023 1:21 am

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
--
Daniel Kaminski
Pandoras Box Expert
User avatar
Daniel Kaminski
 
Posts: 1071
Joined: Tue Jul 22, 2008 10:55 am
Location: Herten, Germany

Re: Shelly Pro 1PM v1 TCP command WD6?

Postby videodsh » Tue Sep 26, 2023 11:47 am

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")
videodsh
 
Posts: 34
Joined: Sat Apr 23, 2016 6:52 pm
Location: Düsseldorf, Germany


Return to Widget Designer V6

Who is online

Users browsing this forum: No registered users and 36 guests