The following post provides an option if you want to use a Hubitat attribute that has HTML content in it. As the post alludes to, it’s a bit of a hack that some device developers use to inject HTML into their attributes and is not something that you’ll see in official drivers. ’
Alternatively, I would suggest taking a look at the following help article around weather options… the Open Weather Custom Tile is a popular option as it provides a rich set of data. Alternatively, there are a few other options listed in that article.
But i keep getting an error: Cannot read properties of undefined (reading ‘attributes’)
Any ideas how to troubleshoot? I’ve tried without the attribute (same attribute i’m using in hubitat, changed the Device ID to just the ID and entered in the ID in the API where is says [Device ID].
Make sure to follow the steps in the linked thread:
Once the CORS setting is fixed in your Hubitat Maker API configuration, make sure to only use the numeric ID (106) for the Device ID and I suspect you should be good-to-go.
I would hazard a guess that they hard-coded the font color in html3dayfcst as white. If the different color background works, I can share some tips and how you could force override the text color in a custom tile.
Nice! I change the style to “active” and everything showed up. If you have suggestions on how to force override the text color, please share! Thanks for the help!!
One approach would be to edit the source of the Hubitat HTML Attribute Display custom tile that you’ve imported to your SharpTools account (or import a second copy of it). You would scroll down to the very bottom of the source and add something like: