The Snapshot Tile

Thanks for sharing! It looks like the App/Driver is just storing the summarized data on a specific attribute and then displaying that attribute in a dashboard. That being said, it’s a security concern to allow unrestricted HTML (XSS attack), so we restrict the Hero Attribute tile to displaying text only.

Let me think about what options we have here. Allowing arbitrary HTML isn’t an option due to the security concerns, but we could consider either whitelisting specific tags like those used in this driver (table, tr, td, etc)… or building something similar natively. I’d been thinking of building something similar based on inspiration from a similar card in Home Assistant’s Lovelace UI. :grin:

2 Likes