HTTP request: how to turn on a Domoticz switch?
-
Hello all,
please help, I don't seem to be able to get this done.
I want to use a http request to turn on a switch in domoticz. This is the URL, which works for example in a local browser.
http://192.168.xxx.xxx:8080/json.htm?type=command¶m=switchlight&idx=220&switchcmd=On&level=0
But when I use this URL in the flic setup, with method "post" or "get" it does not respond.
How should I fill in the setup fields for something like this to work?
-
To find out how the request the Flic hub makes, you can use a service such as requestb.in or postman.
-
I have the same issue - just had a hub and 3 buttons delivered and the one thing I wanted to do with it - send pause and play commands via http to our music system.
This does go via Node Red which handles the interaction with the music server.
The http GET request works in a local browser. The URL is http://192.168.0.17:1880/squeezer/play.
Emil, you say 'just fill in the URL' and it should be fine but it isn't. What do I have to do to get it to work?
-
For a GET request, just fill in the URL and you should be fine. Make sure it's spelled correctly and that the hub is connected to the network.