Event not working - Some help please

Moderator: leecollings

Post Reply
Cognac
Posts: 8
Joined: Sunday 21 February 2016 16:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Newest
Contact:

Event not working - Some help please

Post 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 1326 times
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Event not working - Some help please

Post 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.
Cognac
Posts: 8
Joined: Sunday 21 February 2016 16:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Newest
Contact:

Re: Event not working - Some help please

Post 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 1308 times
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Event not working - Some help please

Post by Egregius »

You mean no?
It says 'off' and not 'no motion'.
So change your script to if PIR Koffie == Off and ...
Cognac
Posts: 8
Joined: Sunday 21 February 2016 16:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Newest
Contact:

Re: Event not working - Some help please

Post 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 1268 times
User avatar
jvdz
Posts: 2476
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Event not working - Some help please

Post 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
Post Reply