
I solved this by creating an additional attribute to the sun.sun sensor. This goes in custom_components/
Next, I created a template sensor:


I solved this by creating an additional attribute to the sun.sun sensor. This goes in custom_components/
Next, I created a template sensor:
