I have a motion sensor and Hue lights downstairs. I want the motion sensor to turn on the lights when I come down the stairs.
However, that’s our movie room. So if I turn the lights off, I don’t want them turning back on every time I move while watching a movie.
So I guess what I’m looking to do is
If
Downstairs motion is true
And
The room has been still for > 15 minutes
Then
Turn the lights on
I’m currently accomplishing this with a mode setting. If we go downstairs, the system enters “Downstairs” mode. If downstairs is still for 15 minutes, it returns to “Home”. Which works fine, until I want to repeat this in another room. So I need the flexibility to be able to do this in other room as well, so I don’t think modes are the best way.
I assume what I need is a CoRE piston, but I haven’t played with CoRE much.
I actually just installed it before I made the post, but a man does need to be taught to fish a little bit It seems like CoRE has some assumptions that you know some conventions.
Just FYI webCoRE can be programmed on your phone or your PC which makes it easier to use.
Just thought I would mention it as you might want to go straight to webCoRE instead of CoRE.
CoRE can only be programmed via a mobile device
Here’s where I’ve landed so far. I’m not entirely sure if I’m doing that second if statement correctly. I’ve seen a lot of “but if” referenced in the forums, but I’m not seeing how that’s done in webCoRE. I saw a similar function in the webcore examples thread that just uses two adjacent ifs like that.
So I’ve made the following update. What I’m hoping to accomplish is "if the lights come on, but then nothing moves for 2 minutes, shut them off. If something moves within 2 minutes, keep them on.