# Combine cron with item update rule

**URL:** <https://community.openhab.org/t/combine-cron-with-item-update-rule/25286>\
**Category:** Beginners\
**Created:** [March 19, 2017, 12:07pm UTC](https://community.openhab.org/t/combine-cron-with-item-update-rule/25286 "2017-03-19T12:07:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [March 19, 2017, 1:10pm UTC](https://community.openhab.org/t/combine-cron-with-item-update-rule/25286/3 "2017-03-19T13:10:03Z")

</div>

If you are likely to develop several similar rules involving time periods, you may find this approach useful

> [@Design Pattern: Simple State Machine (e.g. Time Of Day)](https://community.openhab.org/t/design-pattern-time-of-day/15407):
>
> Edit: OH 4 Updates Problem Statement Often in home automation there is a need to track certain states that the system is in. Events occur to transition from one state to another state (e.g. at noon we transition to the AFTERNOON state). The collection of all the possible states and the transitions between events is called a “state machine”. This design pattern illustrates some ways OH can implement very simple state machines. One of the most common uses of a state machine like this is to trac…

---

_[View the full topic](https://community.openhab.org/t/combine-cron-with-item-update-rule/25286)._
