Got this little fella in the hallway to control the lighting. I have differing brightness for times of day. Can’t manage to get it working of lux levels …?!
Are you using raw lux values? Light levels are notoriously noisy data, they can change from minute to minute so basing automations on the raw lux values will be problematic - I’ve had better luck using ‘smoothed’ values that measure the average over a period of time
I’m trying things in HA. I’ll have to do abit more studying and digging round. Thanks for the comment.
If you’re trying to automate when lights turn on then HAs built in Sun integration might be more reliable than working with lux levels. Set a minimum sun elevation at the level the room seems dark and in the automation check current elevation against that minimum when presence is detected. If current is lower then turn on the light.
I’ve tried the Sun integration but it doesn’t help when the day is gloomy.
For me, it’s been a lot of trials and errors. I ended up recording the lux values to adjust the brightness of my lights. That said, I’ve settled for only a few data points or it’s getting very complicated to maintain
Yer, when you think a YouTube rabbit hole or instagram doom scroll is a time sink you’ve never opened up HA a played with automations! ![]()