Help needed with simple event

Moderator: leecollings

Post Reply
aykster
Posts: 4
Joined: Sunday 01 November 2015 8:10
Target OS: Raspberry Pi / ODroid
Domoticz version:

Help needed with simple event

Post by aykster »

Hello Again,

This simple not working event is a pain in the ass...

I created a virtual switch to manual switch some lights off. The virtual switch itself gets switched off by use of a timer. This all works like a charm.
Recently I added a simple pir sensor to use for presence detection in the hallway. By use of an event this pir sensor controls some lights. This event also works as its supposed to.

Now on to my problem.
I would like to use the pir sensor [beweging gang] to switch off the virtual Switch [tv lampen uit] when precense is detected at a specific moment in time.
I cant seem to get this event to work.

For testing purposes I created a simple event. (Because the created event with use of time parameters wasnt working)
When the virtual switch is on and pir sensor is on
then turn the virtual switch off....

test.jpg
test.jpg (26.85 KiB) Viewed 718 times
I can see the pir sensor switched on, but the status of the virtual switch isn't changing.
I've already tried the same event with the timer of the virtual switch deactived, without proper result.

I seem to overlook something. But what?!
Some help would be appreciated.

Greetings Aykster
tozzke
Posts: 135
Joined: Friday 02 January 2015 9:22
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Help needed with simple event

Post by tozzke »

If you only use one If-statement, you'll have to use the If-block without the +
aykster
Posts: 4
Joined: Sunday 01 November 2015 8:10
Target OS: Raspberry Pi / ODroid
Domoticz version:

Re: Help needed with simple event

Post by aykster »

Tozzke,

Wow, that simple.. #shame-on-me :oops:
I knew it had to be something like this.
Now it works...

Thanks...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest