# Use Items Data in Widget

**URL:** <https://community.openhab.org/t/use-items-data-in-widget/143502>\
**Category:** Widgets\
**Created:** [January 18, 2023, 9:48am UTC](https://community.openhab.org/t/use-items-data-in-widget/143502 "2023-01-18T09:48:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rolli](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/43a26b/32.png) [@Rolli](https://community.openhab.org/u/Rolli)\
**Post date:** [January 18, 2023, 9:48am UTC](https://community.openhab.org/t/use-items-data-in-widget/143502/1 "2023-01-18T09:48:11Z")

</div>

In the oh-repeater it is possible to fetch all items data, name, label, category …

```auto
Kaffeemaschine_state (Type=SwitchItem, State=OFF, Label=Kaffeemaschine, Category=material:coffee_maker, Tags=[Switch, Gaststube], Groups=[Kaffeemaschine, Misc])

```

```auto
- component: oh-toggle-item
   config:
       color: '=(items[loop.item.name].state == "ON") ? "yellow" : "gray"'
       icon: ='oh:' + loop.item.category && loop.item.category
       iconUseState: true
       item: =loop.item.name
       title: =loop.item.label

```

My question is, is it possible to fetch the items data outside a oh-repeater like this

```auto
- component: f7-icon
  config:
      color: red
      material: "=items[props.itemicon3].category.split(':')[1]"
      size: 25px

```

Thanks, Rolli

---

<div class="post-metadata">

**Author:** ![Oliver2](https://community.openhab.org/letter_avatar_proxy/v4/letter/o/df705f/32.png) [@Oliver2](https://community.openhab.org/u/Oliver2)\
**Post date:** [January 18, 2023, 11:23am UTC](https://community.openhab.org/t/use-items-data-in-widget/143502/2 "2023-01-18T11:23:33Z")

</div>

no, just item.name, item.state and item.displayState

---

<div class="post-metadata">

**Author:** ![Rolli](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/43a26b/32.png) [@Rolli](https://community.openhab.org/u/Rolli)\
**Post date:** [January 19, 2023, 9:53am UTC](https://community.openhab.org/t/use-items-data-in-widget/143502/3 "2023-01-19T09:53:28Z")

</div>

Thanks for the answer, I suspected that.  
Then I have to implement the oh-repeater.
