Thanks for the tips guys.
As amby pointed out, lux information is sent when motion is detected which should be sufficient for what I need.
The reason I want a lux data is because of this… please tell me if I’m over engineering this or there is an easier/better way
I have a Pi Touchscreen mounted by my front door which will(currently displaying volumio) run lovelace.
I have two problems with it.
- I don’t want the screen on all the time
- I don’t want it to be running max brightness at night or low brightness in the day.
So what I’ve done using node-red is setup a flow that at a high level does the following
Motion detected -> turns the screen on and fades the brightness depending on lux level -> Turns screen off after x minutes.
On the pi touchscreen I’ve setup a flask api to run rpi-backlight commands. I’m really happy with the result and really surprised I managed to get it working.