@Yoinkz this is exactly the purpose of custom widgets. Have a look at:
- https://docs.openhab.org/configuration/habpanel.html#custom-widgets
- Custom widgets: feature walkthrough
In your case you’ll define a setting of type Item with an id, for example “item
”, and replace:
"item": "TV_Stue_Mute"
in the template by:
"item": config.item