Multiple Tiles with the same device

I like the use of tiles to create a template control, for example I created a custom volume control for my Sonos devices. I also like the default Media Control tile, so in one of my pages I use the Media Control tile and in my volume page I use my custom volume control. The issue is it seems I can only associate each device with 1 tile type, I can have multiple group collections with the same device in each, but if I change the associated tile in one group it changes them in all the groups. Is it possible to use the same device with different tiles? Or is there another way to use a custom template control so I do not have to hard code the bindings for each control?

Thanks in advance for the help!
Tony

I actually do this and mention it in my tutorial video on device browsers. Copy and paste the device you want to apply a different tile to and then apply the different template to that. Make additional copies if needed. You will add the copies to your groups. Tip: change the display names temporarily so you can tell the difference between devices.

I had actually mentioned to Bill that if that tile parameter was a variable that could be dynamically changed, it would be a useful feature.

Thanks John! Just what I needed. For anyone else who runs across this here are a few more tips to help:

  • Watch John’s video (https://youtu.be/4dhm_uA7MVI) it is very helpful, the relevant part is at the very end
  • Copy and paste the device in the “Device” section, then change the TileTemplate to point to the tile you want to use
  • I would recommend changing the “DisplayName” of the device temporarily (as John mentioned) so when you add it to the group it will populate in the list. Without changing the name I could not figure out how to add it to a group as it does not show up in the device list when trying to add it to the group. After it is added to the group you can change the name back.
2 Likes