Day/Night state item: Cron vs. system started


ich would like to add a daytime state to my system. In generell i could easily do this with some cron expressions in some rules.
But these rules would only trigger at the defined times. What would be the best practice, to “recalculate” the day states, for excample, when the system just started?

Thanks in advance,

Here is a Tutorial for the “Time of Day” design pattern.

This should probably already fit your needs.

Use the astro binding.
Then you can do things like this:

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.