Page 1 of 1

Scene trigger not working

Posted: Monday 05 November 2018 17:51
by hemant5400z
Hi,

I have been reading through the forums but cannot seem to figure out why this is not working.

I have a scene which turns on the light which is working fine. Now I would like to add a timer to it let's say 10 minutes. I have updated the scene and all works after 10 minutes the light shuts off as per timer.

also tested this using:
http://192.168.1.4:8080/json.htm?type=c ... itchcmd=On

I would like to have this button on my iphone so accoording to the instructions i created a virtual device with type switch on/off:
On action: http://192.168.1.4:8080/json.htm?type=c ... itchcmd=On
Off Action: 600 (equal to my to my scene 10 minutes)

I reduced all to 10 sec for my testing, hoever it does not work when i press the scene in the webif.

virtual switch goes to "On" light does not turn on as per On action command
After 10 seconds (as per instruction) the dummy switch goes to Off


I tried:
http://192.168.1.4:8080/json.htm?type=c ... itchcmd=On
http://192.168.1.4:8080/json.htm?type=c ... cmd=Toggle
http://192.168.1.4:8080/json.htm?type=c ... tchcmd=Off

but none of these work "On Action" however they all work through the browser, any ideas?

Cheers,
Hemant

Re: Scene trigger not working

Posted: Monday 05 November 2018 18:25
by jvdz
What does the domoticz log show at the time the dummy is switched? Any errors for the On/Off actions?

Jos

Re: Scene trigger not working

Posted: Tuesday 06 November 2018 9:49
by hemant5400z
Hi,

I get the following:
Error opening url: http://192.168.1.4:8080/json.htm?type=c ... cmd=Toggle

While http://192.168.1.4:8080/json.htm?type=c ... cmd=Toggle works in my browser.

Hemant

Re: Scene trigger not working

Posted: Tuesday 06 November 2018 9:57
by hemant5400z
Hi,

Strange, i tried this Yesterday several times but nothing was working, no I do the same and no error and seems to be working.

Hemant

Re: Scene trigger not working

Posted: Tuesday 06 November 2018 9:58
by bewo
Is your iPhone in the same network and is there a authentication?

What happens if you open http://192.168.1.4:8080 from your phone?

I would prefer an ON-Link like: "http://localhost:8080/json.htm?type=c ... cmd=Toggle"

Re: Scene trigger not working

Posted: Tuesday 06 November 2018 10:18
by jvdz
Are you using a Userid/Password login for your domoticz?
You could change the url to: http://127.0.0.1:8080/json.htm?type=com ... cmd=Toggle
..and ensure that 127.0.0.1 is in the Local Networks field in your setup. This avoids any need for UserId/Password.

Jos

Re: Scene trigger not working

Posted: Tuesday 06 November 2018 11:26
by hemant5400z
Hi Yes,

That is probably why it is working

i had both 127.0.0.1, and 192.168.1.* in my config for some reason 192.168.1.x still requires a password while localhost works fine so issue is solved.

thanks!