Page 1 of 1

Easy event doesn't work - help

Posted: Monday 21 March 2016 10:17
by lukcinek
Hello

I'm trying to make some events in Domoticz but with no success:(

In attachment I put two examples of event that switch light on when motion is on.
One works but when I add time event it doesn't and I don't know why?

I also try to switch on my two lights named (włącznik and światło_przedpokój)when my motion sensor is on - between 10 and 12 o'clock and when may LUX sensor from Fibaro motion sensor is lover than - 50.

Help please

Czujnik ruchu - Motion sensor
Czujnik natężenia światła - LUX sensor

Sorry for my English

Best regards

Re: Easy event doesn't work - help

Posted: Monday 21 March 2016 14:23
by lukcinek
Anybody?

Re: Easy event doesn't work - help

Posted: Monday 21 March 2016 14:33
by woody4165
You may try replacing the Czujnik ruchu (Motion sensor) with a dummy switch and check if it's working.
In case it's working, maybe the motion sensor does not return On or Off, but other values.

Have you checked launching from browser http://192.168.x.x:8080/json.htm?type=devices&rid=YY where YY is the idx of the motion sensor, trying with both states and check which value return.

Re: Easy event doesn't work - help

Posted: Monday 21 March 2016 16:32
by lukcinek
woody4165 wrote:You may try replacing the Czujnik ruchu (Motion sensor) with a dummy switch and check if it's working.
In case it's working, maybe the motion sensor does not return On or Off, but other values.

Have you checked launching from browser http://192.168.x.x:8080/json.htm?type=devices&rid=YY where YY is the idx of the motion sensor, trying with both states and check which value return.
Hi

Thank You for answer but...
From 3 examples i wrote, one is working well. There also is motion sensor = ON and script is working. I was thinking there is problem in other place of this script but I don't know where.
I checked (http://192.168.x.x:8080/json.htm?type=devices&rid=YY ) and my states are ON and OFF

Any idea?

Re: Easy event doesn't work - help

Posted: Monday 21 March 2016 17:11
by woody4165
How did you put nested If in Blockly?
I was not able, don't know if this a browser issue (Chrome).

In any case, I suggest to go with Lua script, more indicated for "complicated" script...

Re: Easy event doesn't work - help

Posted: Monday 21 March 2016 19:05
by lukcinek
woody4165 wrote:How did you put nested If in Blockly?
I was not able, don't know if this a browser issue (Chrome).

In any case, I suggest to go with Lua script, more indicated for "complicated" script...
Hi

I don't use chrome. In chrome I had problems with all scripts (nothing worked). I'm using IE.
I solved my problem...I send photo of my new script (now everything works great)

Best regards