JGKK
(Johannes)
June 20, 2019, 12:14pm
5
The real usefulness of groups is as you already said not in Sitemap as they don’t give you much control but it is in rules and persistence. You can do many things with the availability of the group based rule triggers and so on.
@rlkoshak has few great design patterns to give you some inspiration for use cases of groups.
Please see Design Pattern: What is a Design Pattern and How Do I Use Them for how to read and use DPs.
Problem Statement
Often one finds a number of Rules that are very similar and that all work on similar Items resulting in a lot of duplicated code. One way to solve this problem is through the use of Groups.
Concept
[image]
This DP is not a standard DP in that it provides a single concrete template to follow to solve a specific problem. Instead this DP is more of a grand exploration of some …
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
There are several reasons why a home automation enthusiast would want to use openHAB persistence: charting, using historical Item states in rules logic, restore previous values on openHAB restart, detailed analysis, access to the data with external tools, etc. However, different databases are more or less well suited to each of these use cases.
Concept
Si…
Please see Design Pattern: What is a Design Pattern and How Do I Use Them to understand the scope and purpose of a design pattern. As with all DPs, the DP is not limited for the use demonstrated in the examples.
Problem Statement
This is going to be one of the more complex design patterns and it depends upon many other design patterns.
First of all, what is a state machine. For the purposes of this DP a state machine is a situation where when certain events occur a new state may be entered. A …
Best regards Johannes