disable motion sensor at day time

Discussions about Z-Way software and Z-Wave technology in general
vvuu
Posts: 39
Joined: 30 Aug 2015 14:22

disable motion sensor at day time

Post by vvuu »

I want make something like this:

IF motion sensor trigger
AND it's 8pm-5am
THEN switch-On Dimmer

and of course IF motion sensor will trigger off - dimmer will go also off
it works correctly with "If -> Then Relation" app - but it works 24h ;(
and I want only switch on light at night...
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: disable motion sensor at day time

Post by pz1 »

Try to use the App Automated Switch Off to switch the dimmer off after a predefined time. If the motion sends a next trigger the rule will be fired again. (Note that trigger is adynamic event not a level like your time settings). Haven't tried this myself.
vvuu
Posts: 39
Joined: 30 Aug 2015 14:22

Re: disable motion sensor at day time

Post by vvuu »

but i want to switch off motion detection at day time..
my motion detector has configured time of keeping light on.
problem is only to disable it at day and enable at night..
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: disable motion sensor at day time

Post by pz1 »

You can keep your rule! I meant you add the Auto off app
vvuu
Posts: 39
Joined: 30 Aug 2015 14:22

Re: disable motion sensor at day time

Post by vvuu »

but this up makes that the light expire after some time

i need something that disable the switch on/off at the day
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: disable motion sensor at day time

Post by pz1 »

vvuu wrote:but this up makes that the light expire after some time

i need something that disable the switch on/off at the day
I think the time constraint "AND it's 8pm-5am" is too complex for logicalRule. Some other threads report about that. I suggest you try to make two logicalRules:

IF motion sensor trigger
AND time >= 20:00
THEN switch-On Dimmer

IF motion sensor trigger
AND time <= 05:00
THEN switch-On Dimmer

and either the AutoOff module or one more IFTHEN that switches dimmer off if the alarm sensor goes to the off state.
vvuu
Posts: 39
Joined: 30 Aug 2015 14:22

Re: disable motion sensor at day time

Post by vvuu »

thank you for your idea

in logicalRule - should I configure first scene for "List of scenes to activate:"
?
logicalRule hasn't THEN dimmer On ;(
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: disable motion sensor at day time

Post by pz1 »

vvuu wrote:thank you for your idea

in logicalRule - should I configure first scene for "List of scenes to activate:"
Ignore that one
logicalRule hasn't THEN dimmer On ;(
I don't have dimmers sorry. I think you have to enter 0 for off and either 99 or 255 for on (don't recall what it presently is)
vvuu
Posts: 39
Joined: 30 Aug 2015 14:22

Re: disable motion sensor at day time

Post by vvuu »

ok, it seems to be ok now

two LogicalRules

1) time >= 20:00 and binary On (Motion Detector)
2) time <= 05:00 and binary On (Motion Detector

the Action - I tried both actions: Dimmer and Scene - it seems to work both correctly

in addition I add AutopowerOff APP with time set to switch the lights off..

thank you for idea
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: disable motion sensor at day time

Post by pz1 »

I said it elsewhere as well; keep boolean rules as simple as possible, and don't be afraid to make more than one rule. It makes your logic less demanding w.r.t. system resources. Many rules engines do internally rewrite complex rules into several simple rules at compilation time.
Post Reply