Hello all, before I start I just should make it clear that writing luup code is not a place I have ventured yet so go easy on me please.
Anyhow my situation is I have a Hue light bulb out the front of the house with a hue motion sensor to turn the light on at night when motion is sensed, i.e. somebody approaches the front door. My Hue hub is managing this turning on of the light.
Now I have a Aeotec 7 door sensor installed on the door with scenes to turn the same light on at night when the door is opened and off again when the door is closed, i.e. if it is night and you are leaving the house open the door and hey presto the light turns on. These scenes are working.
However the problem is if somebody approaches the house at night the light turns on, all good, but when you then open the front door the door sensor is triggered and then turns the light off. You can open and close the door again and re trigger the door sensor and the light will turn on however this not the desired result.
So what do I need to do to make Vera realize if the Hue light is already on because of the Hue motion sensor turned it on there is no need to run the scene to turn the light on which results in turning the light off.
Many thanks for any assistance people are prepared to give.