I feel seriously embarrassed for I was unable to figure this out:
In my HabPanel template based widget (reading the Template Widget Tutorial, I got to frequently access a thing’s item name as in
"itemValue('homematic_HmIP_STHO_3014f711a0001f58a9930328_000ED709AED3C6_1_ACTUAL_TEMPERATURE')". This is long and unhandy to use. I wish I could declare a constant with this content and use the constant instead.
Advanced level: I use not only
_ACTUAL_TEMPERATURE but also
_HUMIDITY and other channels of the same device. Would be lovely to declare the constant to contain the shared part of the item’s name, concat this with the channel name and feed this to
Feelin’ like a rookie, not even having an idea of the proper keywords to search for. Help!