Hello all!
Since the above discussion took place, I’ve learned something about the elevation value used as input to sun & sun2, so some of my related statements above are not entirely correct.
It turns out the astral package (that both integrations use) requires the “observer’s elevation above ground level at the specified location”.
However, HA describes the elevation general system option as “Altitude above sea level in meters. Impacts sunrise data.”
I never questioned HA’s definition of this value and just assumed it was correct. After all, it had been this way for years. However, after getting much feedback that the sunrise/sunset values (and others) from sun2 (& sun) were a bit off, and noticing it myself for quite some time, I finally decided to look into it.
It is explained in more detail here, but as I said above, the elevation should be the observer’s elevation above ground level, not sea level. In most cases I would think the correct value is zero (or maybe 1 or 2 m to account for how tall you are. )
I changed the elevation in my system to zero and sun & sun2 started returning values that agreed with many other sources (weather apps, etc.)!
Note, though, that other integrations besides sun & sun2 use the elevation general system option and may require it to be altitude above sea level as HA defines it. I haven’t looked at them all, but at least one seems to be this way, which is met.no. Fortunately, that integration saves a copy of that value in its config entry, and can be changed independently via its CONFIGURE button. Not sure about any others.