Control light brightness depending on lux?

I am looking for a way so the brightness and/or colortemp of the lights is automatically adjusting with the brightness in the room (measured in lux by a PIR)

Anyone have a solution and a config to share?

Have a look here :wink: