Page 1 of 1

Event not working - Some help please

Posted: Saturday 28 May 2016 22:21
by Cognac
Hi,

I have a Domoticz switch which turns on/off a relay (connected by using ESP Easy). This works fine.
I added a PIR sensor to this ESP8266, which also works fine.

Now I want to set the relay off, when there is no motion detected for x seconds using events. However this event doesn't work (other events work fine).

Could you please give me some support on the event below.

Thanks in advance! :)
pir koffie event.jpg
pir koffie event.jpg (30.93 KiB) Viewed 1113 times

Re: Event not working - Some help please

Posted: Saturday 28 May 2016 23:11
by Egregius
Are you sure the state is 'no motion' of the pir?
Use the 'current state' function in the events screen to double check.

Re: Event not working - Some help please

Posted: Saturday 28 May 2016 23:21
by Cognac
Egregius wrote:Are you sure the state is 'no motion' of the pir?
Use the 'current state' function in the events screen to double check.
Unfortunately yes. See screenshot.
2016-05-28_23-20-12.jpg
2016-05-28_23-20-12.jpg (5.62 KiB) Viewed 1095 times

Re: Event not working - Some help please

Posted: Sunday 29 May 2016 0:18
by Egregius
You mean no?
It says 'off' and not 'no motion'.
So change your script to if PIR Koffie == Off and ...

Re: Event not working - Some help please

Posted: Sunday 29 May 2016 10:40
by Cognac
I changed and is not working. Seems that it is not possible to on/off the relay (Rancillio aan/uit) by using events. :S

Even the below event does not work (event is set on active, also under settings).
2016-05-29_10-39-59.jpg
2016-05-29_10-39-59.jpg (14.68 KiB) Viewed 1055 times

Re: Event not working - Some help please

Posted: Sunday 29 May 2016 10:58
by jvdz
Did "PIR Schuur" actually change the status from On to Off when you tested as this blockly only will be triggered when the device changes status?

Jos