Tasker + motion detector

430 views
Skip to first unread message

Sa As

unread,
Mar 14, 2017, 5:18:33 AM3/14/17
to Tasker
Hi guys, i am trying to build a project that turns the light of my living room when motion is detected. I am using:
Hue lights
Motion detector pro
and of course tasker
what i want to do is to turn the lights on when motion is detected and leave them on for 10 minutes, then if no motion is detected lights will go off, but if during the 10 minutes while the lights is on another motion is detected another fresh 10 minutes will start.
what i was successful with, i created a profile that detects motion using the state context of the motion detector pro and a task to do  :

turn lights on when enter the task
WAIT 10 minutes
turn lights off
but that is not desired because i dont want the lights to turn off at fixed time after 10 minutes, i want them to stay on as long as i  have a motion detected without any turn off moments.
i think my problem is with the wait command that hold the execution of the program and stops the profile from detecting motion.

can any one help??

regards

Rich D

unread,
Mar 14, 2017, 7:10:01 AM3/14/17
to Tasker Google Groups Post

Could you post all relevant profile and task descriptions?

To post your profile or task here...  Long press on the profile or task name / ( 3 dot menu with 4.0+ ) export / export "DESCRIPTION" to clipboard (not XML)

Any linked tasks will be exported with the profile they are linked to..

To be able to export, The beginner mode needs to be off and the profile needs to be named by you (Not the Tasker listed name.  Tasker will list your profile with the context name if you have not given it one).


Sa As

unread,
Mar 14, 2017, 7:20:26 AM3/14/17
to Tasker
Profile: When Motion Detected (17)
Event: Intent Received [ Action:org.motion.detector.ACTION_GLOBAL_BROADCAST Cat:None Cat:None Scheme:* Mime Type:* ]
Enter: Detector (14)
A1: AutoHue [ Configuration:IP: 192.168.1.2
Light: FR Celling
power + color + brightness Timeout (Seconds):5 ]
A2: Flash [ Text:Lights on Long:Off ]
A3: Wait [ MS:0 Seconds:0 Minutes:5 Hours:0 Days:0 ]
A4: AutoHue [ Configuration:IP: 192.168.1.2
Light: FR Celling
power + color + brightness Timeout (Seconds):5 ]
A5: Flash [ Text:Lights off Long:Off ]

Rich D

unread,
Mar 14, 2017, 11:50:51 PM3/14/17
to Tasker Google Groups Post

It looks like all you need to do is go into the task edit screen for the 'Detector' task. In the lower right tap the 3 slider icon (task properties).  Set the task collision to 'abort existing task'.  Then every time the profile triggers it will kill the existing task iteration and start a new one.  

Of course it will turn the light on every time as well. However since it is already on hopefully that will not be a issue.

Sa As

unread,
Mar 15, 2017, 5:42:02 AM3/15/17
to Tasker
That was it!!!!
that took care of my problem, thank you for your help
Reply all
Reply to author
Forward
0 new messages