# Migrating MQTT1 items to MQTT2.4 items

**URL:** <https://community.openhab.org/t/migrating-mqtt1-items-to-mqtt2-4-items/60502>\
**Category:** Solutions\
**Tags:** mqtt-binding\
**Created:** [December 20, 2018, 8:53pm UTC](https://community.openhab.org/t/migrating-mqtt1-items-to-mqtt2-4-items/60502 "2018-12-20T20:53:16Z")\
**Posts on this page:** 1\
**Showing post:** 56

<div class="post-metadata">

**Author:** ![vzorglub](https://community.openhab.org/user_avatar/community.openhab.org/vzorglub/32/17166_2.png) [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Post date:** [January 9, 2019, 7:50am UTC](https://community.openhab.org/t/migrating-mqtt1-items-to-mqtt2-4-items/60502/56 "2019-01-09T07:50:06Z")

</div>

See:

> [@Design Pattern: Separation of Behaviors](https://community.openhab.org/t/design-pattern-separation-of-behaviors/15886):
>
> Edit: Updated for OH 4. Please [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 more information on what a DP is and how to use them. Problem Statement Often one will have certain cross cutting code that is used across a many diverse and varied collection of Rules. Such code can include things like calculating time of day to control the behavior of a rule, sending alerts, calculating state to drive a state machine, etc. For example, Lighting, blind/rollershutter controls and …

---

_[View the full topic](https://community.openhab.org/t/migrating-mqtt1-items-to-mqtt2-4-items/60502)._
