Page 1 of 2
disable motion sensor at day time
Posted: 30 Aug 2015 14:30
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...
Re: disable motion sensor at day time
Posted: 30 Aug 2015 15:15
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.
Re: disable motion sensor at day time
Posted: 30 Aug 2015 15:24
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..
Re: disable motion sensor at day time
Posted: 30 Aug 2015 15:45
by pz1
You can keep your rule! I meant you add the Auto off app
Re: disable motion sensor at day time
Posted: 30 Aug 2015 15:50
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
Re: disable motion sensor at day time
Posted: 30 Aug 2015 16:47
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.
Re: disable motion sensor at day time
Posted: 30 Aug 2015 16:58
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 ;(
Re: disable motion sensor at day time
Posted: 30 Aug 2015 17:24
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)
Re: disable motion sensor at day time
Posted: 30 Aug 2015 18:05
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
Re: disable motion sensor at day time
Posted: 30 Aug 2015 22:23
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.