[SOLVED] HTTP Binding to Domoticz

Why is not working HTTP Binding to Domoticz?
When put to web browser is OK.

.item
Switch SwitchH { http=">[ON:POST:http://192.168.0.105:8080/json.htm?type=command&param=switchlight&idx=10&switchcmd=On] >[OFF:POST:http://192.168.0.105:8080/json.htm?type=command&param=switchlight&idx=10&switchcmd=Off]" }
.sitemap
Switch item=SwitchH

I’m assuming that you installed the HTTP binding.

I’m not familiar with the URL syntax of Domoticz, however when you type in a URL in the browser, then the browser uses the HTTP GET method. You are using the HTTP POST method so I would try using GET instead of POST.

thanks marcel

correct

.item
Switch SwitchH { http=">[ON:GET:http://192.168.0.105:8080/json.htm?type=command&param=switchlight&idx=10&switchcmd=On] >[OFF:GET:http://192.168.0.105:8080/json.htm?type=command&param=switchlight&idx=10&switchcmd=Off]" }

1 Like