Sun based time support
Add support for sun based times (sunrise / sunset). v2 of the Lovelace daily schedule card should also be used.

v2.0.x changelog:
v2.0.1: initialv2.0.2: a single range of the whole day was changed to "00:00"->"00:00" in theeffective_schedulestate's attribute. Although logically it's the same, fixed the code to keep the original range.v2.0.3: update all state's attributes (e.g.next_toggle) after the daily update of sun based times.v2.0.4: performance optimization: avoid re-resolving the schedule when it doesn't contain sun based times.