Page 1 of 1

Http to domoticz (json) syntax problem

Posted: 26 Nov 2016, 16:51
by qwerk
I want to use rules to signal when my esp has booted.
I want him to switch a (virtual) light on

I use:

On System#Boot do
SendToHTTP 192.168.3.119,80,/json.htm?type=command&param=switchlight&idx=1759&switchcmd=On
endon

I get:

On System#Boot do
SendToHTTP 192.168.3.119,80,/json.htm?type=commandśm=switchlight&idx=1759&switchcmd=On
endon


It can't handle the &param .
Does anyone knows a way around this?

Re: Http to domoticz (json) syntax problem

Posted: 27 Nov 2016, 20:06
by ayasystems
You can create one switch and set it to send the value AT BOOT.... It is the same that you are talking


Regards

Re: Http to domoticz (json) syntax problem

Posted: 27 Nov 2016, 20:37
by qwerk
ayasystems wrote:You can create one switch and set it to send the value AT BOOT.... It is the same that you are talking


Regards

thanks, simple and effective
I didn't think of that