Tile: custom html

I feel it would add a lot of flexibility to the dashboard to enable insertion of a "custom html" tile combined with global variables.

For example, a personal use case would be pulling images from ip cameras that have triggered a virtual motion sensor...

Latest camera to detect motion: {motion-camera-name} at {motion-camera-timestamp}<br>
<img src="http://{motion-camera-ip}/latest_event.jpg">

Have a look at supertiles, this may give you what you want
You can enter freeform text here as well as image urls

http://Hubitat.uk

Andy

1 Like

Can't you just use the normal dashboard image tile? That takes a url and displays the image already. Another option I've found useful is the weather tile which allows an image with an update time in seconds to be defined. I use this to display an image from a publicly available image on a weather site, so that I always have up to date weather on my dashboard. Granted it won't be able to use a time stamp, but would show the latest extract based on your update time in the tile setting.

Fundamentally the shortfall for me is that the image url can only point to the same, static address all of the time.

Ideally, I could show content in a tile that is based upon dynamic data within the Hubitat system. I feel custom html + variables would afford a great deal of flexibility.

Another example: show a bold warning symbol if air quality drops below a certain threshold. Again fairly easily achievable via global variables and custom html.

Absolutely agree! A few of us have requested dynamic urls for images (including background images) already. Hope we can get this functionality one day.

A global variable will never get outside RM or any other app for that matter, because all apps are in a sand-boxed environment. With the exception of a virtual device to store the value...

What are you meaning by a dynamic URL for an image? you mean something like this: https://somedomain.com/image.php?temp=80

From my perspective I'd like the ability to change an image in a tile or tile background based for example on mode, switch status, global variable etc. This way we could achieve much more dynamic dashboards with images driven by rules.

Ok, so like in templates per tile instead of being able to choose an icon per state, an image per state?

You could probably do that with a virtual device and a little app to react to events and send image url to the virtual
I do similar things with supertile icons

1 Like