Turn lights on with motion only when first entering the room?

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.

Then my immediate recommendation would be get CoRE (you might as well go for WebCoRE) installed.

You won;t look back and the logic described above would be easy to implement.

I actually just installed it before I made the post, but a man does need to be taught to fish a little bit :slight_smile: 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

1 Like
  1. open the core smart app
  2. tap Add a CoRE piston….
  3. tap If…
  4. tap Add a condition
  5. tap Capability
  6. select Motion sensor
  7. tap Motion Sensor list and select your motion sensor
  8. tap Done in upper right hand corner
  9. tap Comparison and select changes to
  10. tap Value and select active
  11. tap Done in upper right hand corner
  12. tap Add a condition
  13. tap Capability
  14. select Motion sensor
  15. tap Motion Sensor list and select your motion sensor
  16. tap Done in upper right hand corner
  17. tap Comparison and select was
  18. tap Value and select inactive
  19. tap Time restriction and select for at least
  20. tap Interval and select 15 minutes (scroll down to find 15)
  21. tap Done in upper right hand corner
  22. tap Done again in upper right hand corner
  23. tap Then…
  24. tap Add an action and select Control lights, relays, or switches
  25. tap Select lights or switches and select your lights
  26. tap Done in upper right hand corner
  27. tap Done again in upper right hand corner
  28. tap Add a task and select Turn on
  29. tap Done in upper right hand corner three more times

That should do it.

Thanks, that was helpful!

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.

Is that what I’ve got this set to do now?

2 Likes