I would like to control a pair of Philips Hue lights (grouped together as one room) using both a SmartThings multisensor and a SmartThings motion sensor. Lights come on when door is opened, then lights turn off after a set period of time UNLESS there is motion in the room, in which case the lights remain on until motion ends.
Using the Smart Lighting app, I can easily set up both the first scenario (lights come on when the door opens, turn off after a set period of time once the door closes) and a version of the second scenario (lights come on with motion, turn off after a set period of time after motion ends), but I have not figured out a way to pair the two different situations into a single routine, where the the lights come on with door open, remain on if there is motion, then turn off once motion ends (or the door closes).
Any ideas? Thanks in advance!