So I have a Phillips Hue outside my back door and I would like it to turn on at night time when the door opens. I’ve set it up using the smart lighting app in automations using the Samsung multi-purpose sensor and only after sunset, etc… this works fine.
However when I come back in (e.g. I take my dog out…open the door, go outside, close it behind me, walk my dog around the yard and then come back to open the door to go inside) I want the light to turn back off.
I thought the mirror behavior option might work for this assuming that if the light is on it will turn it off and vice-versa. But that doesn’t seem to be the case. I also tried creating two routines one for when the light is on (turn off the light) and one for when it is off (turn on the light) but this seems to execute at the same time so when the light is on and I open the door it starts to turn off for a split second but then it is as-is the second routine kicks in and sees that it is off (or turning off) and then turns it back on.
Seems like a simple thing to do (basically toggle the state of the light when the door opens after dark) but what am I missing?
Thanks in advance