Hello,
I am on a Vera lite with the latest UI 7. I am trying to create a scene to send a command to another HA controller. (Domoticz in this case). My single line of code is very simple, all it does is send an http request to control a switch.
luup.inet.wget(‘http://user:pw@192.168.1.5:8084/json.htm?type=command¶m=switchlight&idx=58&switchcmd=On’)
The string above works perfectly fine if I use it in the test Luup code window. However I want to use this code in normal scene so I pasted the string into the Lua section of the scene I created specifically for this. When I try to run the scene, nothing happens. I then went back into the scene editor and found out that a couple of characters had dissapeared from the string:
somewhere in the middle of the string the following characters ‘¶m’ have been replaced by ‘?’ rendering my command incorrect, as shown below.
luup.inet.wget(‘http://user:pw@192.168.1.5:8084/json.htm?type=command?m=switchlight&idx=58&switchcmd=On’)
I tried to place the string inside quotes like this “” but the issue keeps coming back as soon as my scene is saved.
Has anyone seen this before? Any suggestions to do this in a different way?
Thanks a lot,
Jacques