hd-image
A picture: a web address (src, http or https only), one of the device’s own images by name (image, e.g. album art as albumart, a camera’s snapshot) a picture the user uploaded (upload, its id) or a person’s (person, their id: settings.who.id, people[0].id). It is fetched without referrer or cookies, loads lazily, fades in, and shows the fallback icon while it loads, when there is none and when it fails; grey on e-ink. It fills its parent, so size the element (or its parent) in CSS.
| Attribute | What it is |
|---|---|
src | A picture on the web: an https: or http: address; anything else is ignored. A widget with a script, and a Community widget from 19 December 2026, shows it only from a host its manifest names in images (script.images with a script), or when the user typed the address in a setting. |
image | One of the device’s images by name, e.g. albumart or snapshot. |
upload | A picture the user uploaded, by its id (the custom tile’s pictures). Shown only to its owner; the page fetches it and hands over an address, so the widget never sees a link. |
person | One of the Homey’s people by id (settings.who.id): their picture, fetched by the page with its session; the fallback when they have none, and on a paired screen or share link. |
refresh | What the picture depends on (the track); when it changes the picture is fetched again, for apps that replace a picture without saying so. |
every | Fetch the device’s image no more often than once per this many seconds, however often the device renews it (a camera’s snapshot). |
device | Device id; defaults to the widget’s own device. |
fit | Fill the box and crop, or fit all of it inside.One of cover, contain. Default cover. |
fallback | Semantic icon shown while loading, when there is no picture, or when it fails. |
alt | Describes the picture; without it the picture is decorative. |
<hd-image image="albumart" refresh="{{ cap.speaker_track.value }}" fallback="device.speaker" alt="Album art"></hd-image>