Virtual light sensor

image

I solved this by creating an additional attribute to the sun.sun sensor. This goes in custom_components/

Next, I created a template sensor:

image

3 Likes