Day/Night state item: Cron vs. system started

Hello,

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,
Alex

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:
image

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