Scene trigger not working

Post Reply
hemant5400z
Posts: 4
Joined: Monday 05 November 2018 18:41
Target OS: Linux
Domoticz version:
Contact:

Scene trigger not working

Post by hemant5400z » Monday 05 November 2018 18:51

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

User avatar
jvdz
Posts: 1441
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

Re: Scene trigger not working

Post by jvdz » Monday 05 November 2018 19:25

What does the domoticz log show at the time the dummy is switched? Any errors for the On/Off actions?

Jos

hemant5400z
Posts: 4
Joined: Monday 05 November 2018 18:41
Target OS: Linux
Domoticz version:
Contact:

Re: Scene trigger not working

Post by hemant5400z » Tuesday 06 November 2018 10:49

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

hemant5400z
Posts: 4
Joined: Monday 05 November 2018 18:41
Target OS: Linux
Domoticz version:
Contact:

Re: Scene trigger not working

Post by hemant5400z » Tuesday 06 November 2018 10:57

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

User avatar
bewo
Posts: 37
Joined: Monday 13 July 2015 12:27
Target OS: Linux
Domoticz version: 4.9701
Location: Vilshofen - Bavaria - Germany
Contact:

Re: Scene trigger not working

Post by bewo » Tuesday 06 November 2018 10:58

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"
Individual projects:
Domoticz on a Intel Xeon Server | AeonLabs Z-Wave Gen.5 | RFXCOM RFXtrx433E USB | ESP-Wifi-Modules
Wall-mounted iPad (self construct) | LUA wind monitor| LUA thermostat control | and many many more :)

User avatar
jvdz
Posts: 1441
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

Re: Scene trigger not working

Post by jvdz » Tuesday 06 November 2018 11:18

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

hemant5400z
Posts: 4
Joined: Monday 05 November 2018 18:41
Target OS: Linux
Domoticz version:
Contact:

Re: Scene trigger not working

Post by hemant5400z » Tuesday 06 November 2018 12:26

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!

Post Reply

Who is online

Users browsing this forum: JoshDinsdale and 0 guests