# How to use an item as a value in a profile?

**URL:** <https://community.openhab.org/t/how-to-use-an-item-as-a-value-in-a-profile/147836>\
**Category:** Beginners\
**Tags:** value, items, profiles\
**Created:** [July 16, 2023, 3:43pm UTC](https://community.openhab.org/t/how-to-use-an-item-as-a-value-in-a-profile/147836 "2023-07-16T15:43:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oleg\_Andreych](https://community.openhab.org/user_avatar/community.openhab.org/oleg_andreych/32/50232_2.png) [@Oleg\_Andreych](https://community.openhab.org/u/Oleg_Andreych)\
**Post date:** [July 16, 2023, 3:43pm UTC](https://community.openhab.org/t/how-to-use-an-item-as-a-value-in-a-profile/147836/1 "2023-07-16T15:43:41Z")

</div>

I want to use items as a lower and upper bounds values in the Range profile.  
Is there any way to do it?

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [July 17, 2023, 2:20pm UTC](https://community.openhab.org/t/how-to-use-an-item-as-a-value-in-a-profile/147836/2 "2023-07-17T14:20:32Z")

</div>

No. The only way to do this would be to use the SCRIPT transform with the transform profile. I’d recommend using the JS Scripting or jRuby as the language as it’s easiest to access other Items in those languages than Nashorn JS or Rules DSL. In both cases I believe you’d access the other Items the same as you would in a rule.

---

<div class="post-metadata">

**Author:** ![Oleg\_Andreych](https://community.openhab.org/user_avatar/community.openhab.org/oleg_andreych/32/50232_2.png) [@Oleg\_Andreych](https://community.openhab.org/u/Oleg_Andreych)\
**Post date:** [July 17, 2023, 3:45pm UTC](https://community.openhab.org/t/how-to-use-an-item-as-a-value-in-a-profile/147836/3 "2023-07-17T15:45:51Z")

</div>

Are there any plans to allow to use items in place of values of corresponding types?

In the meantime I’ll follow your advice. Thank you.

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [July 17, 2023, 4:45pm UTC](https://community.openhab.org/t/how-to-use-an-item-as-a-value-in-a-profile/147836/4 "2023-07-17T16:45:35Z")

</div>

No, there are no plans to add the ability to use Items in this way.
