You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the dynamic icon feature in the sitemap is restricted to use the state of the item in question. While this is perfect for simple cases, and some can be solved with the visibility property, but there are lots of complex situations that cannot be satisfied.
Your suggestion
I would suggest another parameter - e.g. icon_item or something like this - to be able to specify the origin of the state to be used for the icon.
So for example something like follows could be used:
Text item=custom_combined_rain_and_wind "Last rainfall and current wind [%s]" icon="windrose" icon_item=custom_wind_direction
where
custom_combined_rain_and_wind="Rain: 4 mm Wind: 13 km/h (270°)" //generated via rules from other three items
custom_wind_direction=75 //created via rules from other item, normalized to the 0-99 range
This would display an entry with a variable text and an icon showing the current wind direction.
OTOH it would deliver a really flexible solution to be used in several other cases where compact interfaces need to be created.
I hope that I did not misplaced this feature request, and I did not slipped over an already existing one - I tried to search thoroughly.
If any questions arise I'm more than happy to elaborate further.
The text was updated successfully, but these errors were encountered:
Wow, thanks!
And I thought I searched at length. I should have found that. :(
Although, does this pull request handle the "Number State Matching Rule" kind of dynamic icons? I couldn't exactly relate the description of the pull requests to this case.
Although, does this pull request handle the "Number State Matching Rule" kind of dynamic icons? I couldn't exactly relate the description of the pull requests to this case.
In fact, no because it replaces it. You can redefine the matching rules you like, and you are no more limited by the 0-100 range.
I do not expect more extensions now that we have openhab/openhab-core#3820 + #2020 merged. Your use case can be covered, even if not in the way you would expect.
Which UI are you reporting an issue for?
The problem
Currently the dynamic icon feature in the sitemap is restricted to use the state of the item in question. While this is perfect for simple cases, and some can be solved with the visibility property, but there are lots of complex situations that cannot be satisfied.
Your suggestion
I would suggest another parameter - e.g. icon_item or something like this - to be able to specify the origin of the state to be used for the icon.
So for example something like follows could be used:
where
This would display an entry with a variable text and an icon showing the current wind direction.
OTOH it would deliver a really flexible solution to be used in several other cases where compact interfaces need to be created.
Your environment
Additional information
I hope that I did not misplaced this feature request, and I did not slipped over an already existing one - I tried to search thoroughly.
If any questions arise I'm more than happy to elaborate further.
The text was updated successfully, but these errors were encountered: