Presets can be implemented in rules. But there is as of yet no separate way to do it outside of rules.
There are lots of ways people have implemented them using Rules. The big difference in all the approaches come down to how one stores the values for each Item at each preset:
- Using groups and similarly named Items which store the values for each Item at each preset
- Using a hashMap for each preset keyed on the Item name and storing the Item’s desired state for that preset
- ArrayList and index tracking to match up Items to their preset values
I don’t have dimmers but the overall concept of how I would implement this (and how I have for simple switches) is posted here (Group and Filter Design Pattern):
Also see the related Time of Day design pattern in that same thread.