doesn’t seem simple. IMO visibility is fuzzy.
I think you have at least a couple virtual sensor/data sources in ST, but I have not used them for lux/light/visibility in automation, just for reference:
ST/ custom-device-type/ Accuweather Device Device AccuWeather/ [cloudCover] - you’d have to code your own calculation of visibility with time of day, cloudCover and whatever else you could scrape.
ST/ custom-device-type/ Outside-v1 Type SmartWeather Station Tile/ [illuminance] range 0/10000 calculated from time of day and apparent weather .
Not sure if either service will last but it one of the best features of ST customizable service . Hope the decision-makers don’t nuke what makes ST special, like this stuff.