I tried this once using the lux reading on smart weather tile in webCoRE. It’s nothing smooth (wasn’t for me at least) because I’d defined ranges so like 100-200 lux would be one percentage brightness, 201-500 would be another percentage brightness, etc. Not sure you could do one for one or whether it would even be worth the time you’d spend doing it.