Error: Error opening url: http:
Posted: Tuesday 07 April 2020 9:49
Hello,
I'll hope someone can help me. (sorry for my English)
There is a lot of information about the problem I have, but I can't find a solution.
The problem is that I want a switch from my fibaro HC2 system controlled by domoticz.
I'll tried a lot of different statements:
I have made a virtual switch and put there in the on-action the following line.
http://192.168.1.xx/api/callAction?devi ... ame=turnOn
when I used this line in a browser it works perfect.
The following error occurs:
2020-04-07 09:24:35.483 Status: User: Admin initiated a switch command (727/Lamp Test/On)
2020-04-07 09:24:35.694 Error: Error opening url: http://192.168.1.xx/api/callAction?devi ... ame=turnOn
I have tried it with several other commands such as:
http://User:[email protected]/api/c ... ame=turnOn
Also external with port forwarding to my fibaro HC2-system, in the browser they all worked.
I made also a script test.lua to test it.
commandArray = {}
os.execute ('curl -s "http://192.168.1.xx/api/callAction?devi ... ame=turnOn"')
return commandArray
With the following output.
2020-04-07 09:24:33.634 Status: Executing script: /home/pi/domoticz/scripts/test1.lua
2020-04-07 09:24:33.645 Error: Error executing script command (/home/pi/domoticz/scripts/test1.lua). returned: 32256
Please help!
I'll hope someone can help me. (sorry for my English)
There is a lot of information about the problem I have, but I can't find a solution.
The problem is that I want a switch from my fibaro HC2 system controlled by domoticz.
I'll tried a lot of different statements:
I have made a virtual switch and put there in the on-action the following line.
http://192.168.1.xx/api/callAction?devi ... ame=turnOn
when I used this line in a browser it works perfect.
The following error occurs:
2020-04-07 09:24:35.483 Status: User: Admin initiated a switch command (727/Lamp Test/On)
2020-04-07 09:24:35.694 Error: Error opening url: http://192.168.1.xx/api/callAction?devi ... ame=turnOn
I have tried it with several other commands such as:
http://User:[email protected]/api/c ... ame=turnOn
Also external with port forwarding to my fibaro HC2-system, in the browser they all worked.
I made also a script test.lua to test it.
commandArray = {}
os.execute ('curl -s "http://192.168.1.xx/api/callAction?devi ... ame=turnOn"')
return commandArray
With the following output.
2020-04-07 09:24:33.634 Status: Executing script: /home/pi/domoticz/scripts/test1.lua
2020-04-07 09:24:33.645 Error: Error executing script command (/home/pi/domoticz/scripts/test1.lua). returned: 32256
Please help!