Using Generic Thermostat to control lights with illuminance-sensor

I used to use sun.sun to control my lights outside. I figured it out that basically I can use generic thermostat to do the same job with my illuminance-sensor. The only problem is that generic thermostat use only celsius (fahrenheit) as unit of measurement instead of lux. It is not a big deal but I would prefer lx instead in this purpose.

Is there any way to edit that - could generic thermostat be modified for this purpose? Or is there already a easy as this tool for the job?

image
image

I tried the same thing today with the generic thermostat integration and would be happy to see some integration like “generic light” in the future. How did you get the attribute elevation of sun.sun in your configuration.yaml?