Iād recommend using the suncalc driver to know the sun position and an illuminance sensor to know how bright it is. I still use the same automation to accomplish your stated goal with some minor tweaks to the sun position, no spreadsheet required.
You can use what you already have to help determine what sun coordinates trigger your shades positions.