Additional information regarding Home Assistant:
The sun component (which should be enabled by default) already computes the sun position for you.
Elevation and azimuth are available as standalone sensors sensor.sun_solar_azimuth
(might be disabled by default) or as attributes on the sun.sun
entity.
Found this comment with some links. Couldn't find anything from an admin during my short search.
The exact same problem arose for Voyager users in March when Voyager dropped support for Lemmy 0.18.