# Got errors on my rule

**URL:** <https://community.openhab.org/t/got-errors-on-my-rule/121794>\
**Category:** Scripts & Rules\
**Created:** [May 3, 2021, 8:37am UTC](https://community.openhab.org/t/got-errors-on-my-rule/121794 "2021-05-03T08:37:43Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [May 4, 2021, 4:03pm UTC](https://community.openhab.org/t/got-errors-on-my-rule/121794/10 "2021-05-04T16:03:02Z")

</div>

Your Item is not the same type that it was in OH1.  
You have a Number:Temperature type now.

> [@Working with Number:Temperature Items in rules](https://community.openhab.org/t/working-with-number-temperature-items-in-rules/116197):
>
> openHAB provides Quantity Type features, which can seem baffling. On top of that, Temperature type Quantities have a few quirks all of their own. These notes intend to guide the rules author. I’ve shown work examples in DSL rules language, see below for other scripts examples. All have similar features, if different syntax. Knowing what can be done is half the battle. What is a Quantity Type? Simply, Item states and rule variables may contain Quantities - that just means a number AND a unit …

---

_[View the full topic](https://community.openhab.org/t/got-errors-on-my-rule/121794)._
