e36Alex
(Alexander)
March 28, 2021, 6:03pm
1
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.
EDIT: Added information about the openHAB 3 JavaScript MainUI Rules implementation.
Please see Design Pattern: What is a Design Pattern and How Do I Use Them for an explanation of what a DP is and how to use them.
Problem Statement
Often in home automation one has certain rules they want to run at certain times or have the home automation exhibit different behaviors for different times of day. The naive approach would be to do the time comparisons inline in each Rule that cares about the time …
This should probably already fit your needs.
ubeaut
(Greg)
March 28, 2021, 10:28pm
3
Use the astro binding.
Then you can do things like this:
system
(system)
Closed
May 9, 2021, 2:28pm
4
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.