Skip to content

Sun based time support

Choose a tag to compare

@amitfin amitfin released this 17 Mar 05:50

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: initial
  • v2.0.2: a single range of the whole day was changed to "00:00"->"00:00" in the effective_schedule state'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.