In the oh-repeater it is possible to fetch all items data, name, label, category …
Kaffeemaschine_state (Type=SwitchItem, State=OFF, Label=Kaffeemaschine, Category=material:coffee_maker, Tags=[Switch, Gaststube], Groups=[Kaffeemaschine, Misc])
- 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
- component: f7-icon
config:
color: red
material: "=items[props.itemicon3].category.split(':')[1]"
size: 25px
Thanks, Rolli