Easy event doesn't work - help

Moderator: leecollings

Post Reply
lukcinek
Posts: 29
Joined: Saturday 19 March 2016 23:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Easy event doesn't work - help

Post 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
Attachments
motion2.jpg
motion2.jpg (57.69 KiB) Viewed 1420 times
motion1.jpg
motion1.jpg (22.29 KiB) Viewed 1420 times
motion.jpg
motion.jpg (38.12 KiB) Viewed 1420 times
lukcinek
Posts: 29
Joined: Saturday 19 March 2016 23:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy event doesn't work - help

Post by lukcinek »

Anybody?
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Easy event doesn't work - help

Post 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.
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
lukcinek
Posts: 29
Joined: Saturday 19 March 2016 23:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy event doesn't work - help

Post 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?
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Easy event doesn't work - help

Post 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...
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
lukcinek
Posts: 29
Joined: Saturday 19 March 2016 23:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy event doesn't work - help

Post 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
Attachments
motion3.jpg
motion3.jpg (48.46 KiB) Viewed 1372 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest