Help to create 2 templates or sensors - I don't know how to start

To get a notification in my phone and (this will seem strange) probably use it as a condition for an automation to close my covers…

No the sunset - sunrise wouldn’t help.
I need it to compare with sun azimuth value.
If sun azimuth is > than my sensor value then close covers.