Selective Motion Light

I have a room that has a GE ZWave dimmer, floor light controlled by a ZWave outlet and a ST motion sensor. When motion is tripped, it turns on my floor lamp and it works great. I would like to avoid having this light go on IF my dimmer lights are on. Is there an app that will check the state of another light first before firing on another light?