Switch with on action command, gives error

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
jhbackus
Posts: 4
Joined: Monday 14 May 2018 10:33
Target OS: Windows
Domoticz version:
Contact:

Switch with on action command, gives error

Post by jhbackus »

Hi,

I'm quite new to all this and don't seem to be able to figure this little thing out:

I have created a (virtual) switch, when I click on it, all it has to do is start a JSON command:

http://127.0.0.1:8080/json.htm?type=com ... Up&level=0

So, I figured I have to put this url in the "ON ACTION" section.

But when I click on the switch, nothing happens and the logs give an error: "error opening the url"

However, this url works perfectly initiating the right command when I open it in the browser.

I run the newest version of Domoticz...

Has anyone any idea how to correctly put a JSON command in the On Action section? Or is this not possible?
Last edited by jhbackus on Wednesday 23 May 2018 22:02, edited 1 time in total.
SweetPants

Re: Switch with on action command, gives error

Post by SweetPants »

Did you add 127.0.0.1 to your 'local network' settings?
jhbackus
Posts: 4
Joined: Monday 14 May 2018 10:33
Target OS: Windows
Domoticz version:
Contact:

Re: Switch with on action command, gives error

Post by jhbackus »

Thanks, that was it!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest