Although HA user from the start I still struggle with templates.
As part of a condition I want to validate if “sunrise time”+30 mins is after 7:00 then return true. It’s not important that this is tomorrows or todays sunrise. Difference is minimal.
Prefer to do this as a template vs multiple automatons. Any suggestions?
Use case:
I use Occusim Appdeamon app to run simulated lights when on holiday. However there are no conditional parameters; It runs in it completeness when a particular boolean is “on”. This means that my morning light routine also runs when it is not needed (eg when sunrise is before 7:00) . I’m splitting my Occusim in 2 parts so I can set another boolean to ‘on’ when sunrise is indeed after 7:00 causing the simulation also to run in the morning but only when it is needed.
Maybe I should not have asked
Some idea, sun_next rising vs. 07:00… you could skip the 2nd timedetla if you are only checking before sunrise ‘today’…the idea is that the template returns true of false