# Possibility to eliminate simple rules?

**URL:** <https://community.openhab.org/t/possibility-to-eliminate-simple-rules/88002>\
**Category:** Items & Sitemaps\
**Created:** [December 19, 2019, 9:15am UTC](https://community.openhab.org/t/possibility-to-eliminate-simple-rules/88002 "2019-12-19T09:15:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pacive](https://community.openhab.org/user_avatar/community.openhab.org/pacive/32/36234_2.png) [@pacive](https://community.openhab.org/u/pacive)\
**Post date:** [December 19, 2019, 9:46am UTC](https://community.openhab.org/t/possibility-to-eliminate-simple-rules/88002/2 "2019-12-19T09:46:15Z")

</div>

I’m not sure if it’s possible by using profiles, but if you have a lot of short rules that is basically the same you can merge them into one rule. See for example:

> [@Design Pattern: Associated Items](https://community.openhab.org/t/design-pattern-associated-items/15790):
>
> Edit: Updates for OH 4 Please see [Design Pattern: What is a Design Pattern and How Do I Use Them](https://community.openhab.org/t/design-pattern-what-is-a-design-pattern-and-how-do-i-use-them/40319) for how to read and use DPs. Problem Statement Often one will have a number of separate Items which are all related to each other in some way. For example, one might have a Contact on a door and a DateTime to represent when the last time the door was opened. This is easy enough to keep track of if there are only one or two such Items, but if one has a lot of similar Items or is using a lot of gener…

> [@Design Pattern: Working with Groups in Rules](https://community.openhab.org/t/design-pattern-working-with-groups-in-rules/20512):
>
> Edit: Updates for OH 4, inclusion of JS Scripting and Blockly examples, removed the doors example as it’s superfluous. Please see [Design Pattern: What is a Design Pattern and How Do I Use Them](https://community.openhab.org/t/design-pattern-what-is-a-design-pattern-and-how-do-i-use-them/40319) for how to read and use DPs. Problem Statement One powerful way to consolidate code in rules is to use array/list manipulation operations on the members of a Group. For example, filter down to just those members that are ON, get a list of the labels of those Items that are NULL, etc. Concept T…

---

_[View the full topic](https://community.openhab.org/t/possibility-to-eliminate-simple-rules/88002)._
