but i really don’t need a oh-list-item.
i took a look at the Component Reference | openHAB and it seems iconUseState is only viable for oh-colorpicker-item, oh-label-card, oh-label-item, oh-label-cell, oh-list-item, right?
is it really not possible to use dynamic icons with components like oh-button etc.?
For many components it doesn’t make sense to have the iconUseState property because they are not linked to an item. Sure, an oh-button can send a command to an item, but it is not holding or in any way tied to that item’s state.
Fortunately, in any of the cases where you can input the icon to use for a component, you can use an expression. Typically, for simple binary state changes this will just be something in the form of a simple ternary operation: