Hi flashbanger,
what about a bit different approach.
In your itemfile you create another item
livingroom_temperature_ICON
in a rule file you set this item according to some rules
if() {
livingroom_temperature_ICON = hot
} else {
livingroom_temperature_ICON = batlow
}
and in your sitemap you refer to livingroom_temperature_ICON, but assign a dynamic icon to it - so everything is taken care of by normal dynamic icon handling.
- icon1: livingroom_temperature-hot
- icon2: livingroom_temperature-batlow