How to estimate solar panel output in Home Assistant with a Lux/UV sensor

In this article, I'll share how I estimate solar panel output in Home Assistant using a simple Lux/UV sensor from my Bresser 7-in-1 weather station, after losing direct access to inverter data when I got a home battery system.