I have a presence detector from Aqara and have currently defined automation that when presence is there and Lux >100, the light should be switched on. I can currently select a value from 0 to 100 for the light brightness. However, it would be better if I could also enter the lux value here so that it only switches the light on brightly enough to reach a previously defined lux value, for example, 150. Would that be possible?
How would HA know the actual brightness in Lux of your bulb? There are so much contextual variables, that the only way would be to measure the lux and adjust the brightness.
This you can build yourself by increasing/decreasing the brightness based on your sensor value. But keep in mind , the measurement is not real time, so you have to wait for the lux value to change, and respond to that by changing the brightness level.
But… once set, it’s probably fine, so not worth to automate. Even though it can be fun.