I’m facing issue with core task, what I would like to do simple is: if motion detected then after 15 minutes if no motion then turn off the lights.
if I understand it correctly. on the condition in core, I did add the motion detector sensor. and did the following:-
1- wait 15 minutes
2- turn off the lights.
NOTE: logically, it seem it will go no matter what, after 15 minutes it will perform turn off the light, but I remember I read somewhere on the forum that if new motion detected then the counter reset (of the 15 minutes and it will start after no motion detect next time)
I did not know how to extract what code I made ><
let me know if I did something wrong.