According the the HA docs using the sun’s elevation in a trigger or condition is preferable to using sunset. I just found out about the elevation option today! Anyway, I was going to only use elevation, but then it occurred to me that occasionally when it is stormy, cloudy, and dark, I want the lights turned on when my porch motion sensor detects motion. So I wound up with the automation below which uses elevation AND illuminance. Does this seem like a good approach or am I missing something?
I am not sure on the calibration of your illuminance sensor, specifically does it ever occur that:
The sun is below 4 degrees of elevation. (and)
Illuminance is still bright (>= 10)
If that doesn’t, happen then the sun elevation is irrelevant you could just use the Illuminance check.
The corner case I thought of would be a car approaching at night where the headlights were bright enough to raise the luminance at the same time as the motion sensor tripped - in which case you may still want both conditions.
I should have mentioned that it is the Phillips Hue outdoor motion sensor. I’ve read it updates every 5 minutes (without motion detection). Which seems more than adequate. I don’t have the sensor yet, but when I do I plan on tweaking the elevation and illuminance values. I’ll certainly keep your delay advice in mind.
It is the Phillips Hue outdoor motion sensor. I’ve read it updates every 5 minutes without motion detection. I was also thinking I might just need to use illuminance but wanted to get other’s advice.
Yeah, if it’s half as reliable as you read, then you don’t really need the sunset condition unless there’s light pollution (neighbours, streetlight, headlights).
The only way you’re gonna figure it out is to install the motion sensor & monitor the illuminance for a week before starting on the automation.
Alternative solution is to use template that calculate light level out of sun elevation and weather conditions. You can find it here: Outdoor illuminance template sensor. The good thing is that is independent from any ‘light pollution’ factors. Bad… it can only estimate illumination level and might be as good as your wether integration.
I would also note that is sometimes it is worth asking: Is it “Good Enough”?
Say you go with the just Sun Elevation + Motion, but you tweak it a bit: 6 degrees above the horizon instead of 4
There will be a few times every year when there is motion (on a bright day) where the light wasn’t really needed.
Is that really a problem - or is it good enough?
I have found that accepting “Good Enough” can save a bunch of time on trying to “fix” very occasional problems - or to put that another way give you back time to work on problems that are actually really annoying.
Oh, I thought that using an elevation of 6 degrees would always result in the same lighting outside. I used 6 to turn off my front porch light, which seemed like a good time to turn it on.