Hi,
I had something setup in a previous dashboard app and I’m trying to figure out how to accomplish the same in SharpTools:
I have a Hubitat variable connector that contains HTML code to format status text. This variable is dynamic and gets updated.
The status text’s HTML (put into the variable connector) parsed into the format I wanted, got dumped into a tile and displayed within the dashboard.
I’d like to accomplish something similar in SharpTools - specifically:
Read the contents of my Hubitat variable connector.
Format it a certain way (bold, font size…etc).
Have it displayed as a tile on my dashboard.
How do I go about doing this? I’ve figured out how to bring in the variable connectors, so we’re good there.
Thanks.
josh
October 6, 2023, 10:56pm
2
If the connector already has the HTML in it, have you looked at the Hubitat HTML Attribute Custom Tile?
This is a proof-of-concept for displaying HTML Attributes from Hubitat in a Custom Tile.
[image]
This is one of several sample tiles that were built as part of the Custom Tiles release and is not intended to be a fully polished tile. Please feel free to learn from it, copy from it, or play with it.
[image]
What does it do?
Some community developed Hubitat device handlers use a ‘hack’ in which they stuff device attributes with HTML to enable them to display data as tables…
Alternatively, if you just want to pass over the raw status and apply the styling on the SharpTools side, have you looked at using a Hero Attribute tile and applying whatever style conditions you want?
By default, when you add a device to your dashboard, it will automatically detect the type of tile and use a default layout for the tile. For example, switches
This is helpful, thank you.
1 Like