# \#historicitem

**URL:** https://community.openhab.org/tag/historicitem/4765.md

[Latest](https://community.openhab.org/latest.md) · [Categories](https://community.openhab.org/categories.md) · [Tags](https://community.openhab.org/tags.md)

---

## [Datatype of return value of history.minimumSince()](https://community.openhab.org/t/datatype-of-return-value-of-history-minimumsince/145646)

<div class="topic-metadata">

**Author:** [@alex73](https://community.openhab.org/u/alex73)\
**Replies:** 1\
**Last updated:** [March 29, 2023, 3:01am UTC](https://community.openhab.org/t/datatype-of-return-value-of-history-minimumsince/145646 "2023-03-29T03:01:51Z")

</div>

Platform information: “openhab/openhab:3.4.2-alpine” Given following code fragment in an ECMA script rule: var itemName = event.itemName var item = items.getItem(itemName) var dttmThen = time.ZonedDateTime.no…

---

## [Maximum Values; Type mismatch: cannot convert from HistoricItem to Number](https://community.openhab.org/t/maximum-values-type-mismatch-cannot-convert-from-historicitem-to-number/143278)

<div class="topic-metadata">

**Author:** [@WJ4IoT](https://community.openhab.org/u/WJ4IoT)\
**Replies:** 7\
**Last updated:** [January 15, 2023, 11:02am UTC](https://community.openhab.org/t/maximum-values-type-mismatch-cannot-convert-from-historicitem-to-number/143278 "2023-01-15T11:02:19Z")

</div>

A small one; I struggled to find this solution so just sharing it so it might help others. If you encounter the following errors: Type mismatch: cannot convert from HistoricItem to Number Type mismatch: cannot convert…
