My particular use case for this requirement is probably not as widespread in this forum BUT, I think it opens up a world of possibilities for dashboards. I’ll start with a couple of screen-shots so I can explain my scenario - together with a link to a thread where I discuss the issue in detail.
In Rule Manager, I have created a string variable called albumArtUri and this is populated from a device attribute in Hubitat. In this case, it’s querying album art for Sonos from a custom driver (as Hubitat doesn’t expose it to SharpTools natively).
So with the albumArtUri being automatically populated now, I would like the ability to create a media tile to display the contents of this variable as shown below:
The idea here is when the value of the albumArtUri variable changes, so does the image displayed in the media tile. It sounds redundant because SharpTools has a media tile feature already but as I said, the Sonos/Hubitat integration doesn’t expose the album art like SmartThings does.
Taking this one stage further. Again taking an example from my own setup. If you look at the dashboard below which is primarily Sonos driven, I have 20x station presets. These are media tiles with static images on them that point to a web host via some http URL. One of my long time goals is to have the button that represents the station being played to change color to show it’s been selected.
So if I pressed the button for Vinyl Classic Rock, the button would change to a dark blue (as a simple example) but keep the image for the station. Because buttons don’t have an on/off state, it’s not possible to set an active status as you can with a switch. But you could achieve something similar for a station that’s playing; a variable called VinylClassicRock could be entered for the media tile and the value for it controlled with logic. Like, if the Office Sonos is playing Vinyl Classic Rock, change the value of the Vinyl Classic Rock variable to “http://somewebserver.com/vinyl_classic_rock_on.jpg”. Otherwise, when it’s NOT playing, point the variable to “http://somewebserver.com/vinyl_classic_rock_off.jpg”.