Motion lighting doesn't work after turning off lights with button


#1

First a quick look at my living room environment:
Philips Hue Bulbs paired with the Hue Bridge
Philips Hue Dimmer switch paired with the Hue Bridge and configured for the room which the lights above have been added to
Philips Hue Motion Sensor paired with HE
Philips Hue Bridge linked with HE

I have a motion lighting rule which will turn on the living room lights if the lux level is low enough and motion is detected. I had this working until I pushed the off button on the dimmer switch to turn off the lights. After that I've been unable to get the motion lighting rule to turn on the lights again. The event log for the motion lighting rule shows nothing at all, but looking in the event log for the sensor I can see that the motion lighting rule should have triggered as the lux level is below my set level and motion has been detected.

My motion lighting rule looks like this:

Can someone please tell me what I need to change for the motion lighting rule to trigger the lights to come on even if the dimmer switch has been used? I do want to be able to use both the dimmer switch and the motion lighting rule to control the lights.
I used to have the motion sensor added to the Hue bridge as well and then I could control the lights with both the motion sensor and the dimmer switch without one disrupting the other.


#2

The dimmer switch needs to control the group device, not the bulbs. The group device is most likely still on.


#3

I'm sorry, I didn't make that clear in the initial post. The dimmer switch is configured to control the group, not the individual lights. I'll edit the original post to reflect this.


#4

I've found some strange behaviour with this. So after I posted this yesterday I gave up and went to bed. When the motion sensor was triggered during the night, the lights came on just fine.
And then this afternoon, the lights came on just fine again once the lux level became low enough. But as soon as I use the dimmer switch to turn the lights off, I cannot get motion lighting to turn on the lights again (this is under "evening" mode). To me, this seems like very strange behaviour.


#5

If you are turning them off by some means other than the app, the app could possibly think they are on, and hence not turn them on. Motion Lighting as options for turning off the lights with buttons and switches, and if you select these options, it should work correctly.


#6

But I wouldn't be able to do that while the dimmer switch is connected to the Hue Bridge rather than HE, right?
How can I determine if the app thinks the lights are already on? Set the light up in a dashboard?


#7

More issues with motion lighting over night :frowning:

So, as I said above, the lights came on as they should in the evening but when I then used the off button on the dimmer switch to turn them off, they wouldn't come on again when triggered by motion. Then this morning, much like during the night yesterday, the lights come on automatically first thing. It's almost like there is a time delay which resets it and it then works again.

So after the lights came on this morning (this was still in night mode) I turned them off with the button to see if I would have the same issue during night mode to trigger the lights by motion. And yes, that is correct. Once the lights have been turned off with the button, they won't come on again automatically.

I was then thinking that maybe it's the change of modes that makes the automation kick in and work again. So when I got to work I rang my wife to see if she had had to turn on the lights with the button or if they had come on by themselves (in day mode now). Sadly, she reported she had had to turn them on manually. I'll see if I can do some further testing with this tonight but at this point it almost looks like there is a time delay from that the button is pushed to turn off the lights until the automation again can turn them on.

I also had issues with another light which I have never had issues with at all before. I've got a light in the cloak room which is only controlled by a motion sensor. The light is connected to the Hue Bridge but the sensor is connected to HE. It is using motion lighting as well to turn on and off, but a very basic set of rules. Turn on when motion is detected and then delay off by 1 minute. Last night I noticed the light didn't turn off so I turned it off (the room that is, which is what the motion sensor also controls) using the Hue App on my phone. This morning, the light won't come on again. The issue with this light not coming back on again might be because the same issue as I'm having with the living room lights, but I have no idea why the lights wouldn't turn off to begin with.


#8

Ok, so I've done some further testing.

@bravenel is correct in that when the lights are turned off by the dimmer switch, the motion lighting app still thinks the lights are on (most of the times at least, I've seen occassions where it properly detected the lights were turned off). When the app hasn't detected that the lights are off, it will not turn the lights back on again until after the app thinks it has turned the lights off again, which will occur after the last motion was detected in the room.

Example:
You have your delay off set to 15 minutes which means the lights won't turn off until 15 minutes after motion was last detected.
At 10:00 the lights are turned off using the off button on the dimmer switch. You continue walking around the area but the lights will now not turn back on again since the motion lighting app still thinks that the lights are on. At 10:05 you leave the area and no motion is detected anymore. At 10:20 the Motion Lighting app will turn off the lights and it's after this point that the lights can again be triggered by a motion event

Likewise, if you turn on the lights using the dimmer switch without triggering the Motion Lighting app, the lights will stay on until they are turned off manually. But if you manully turn on the lights and the Motion Lighting app then is triggered by motion, the Motion Lighting app will turn off the lights according to the rules in the app.

I don't know about you, but this was a good exercise for me to go through to understand how the motion lighting app works and what the limitations of the app are.


#9

As I said earlier, this feature is easily dealt with. Select the dimmer switch in the app as a switch to turn off the lights. That way, the app will know the proper state of the lights even when turn off manually.


#10

Yes, but that can only be done if the dimmer switch is known to HE. In this case the dimmer switch is connected to the Hue Bridge, not HE, and as such, it is not visible to HE.