Show the album cover on a media tile, in the same strip as the live camera pictures (0.2.92)

A single or double-width media player tile takes Display -> Album cover
on a Guition: the cover of what plays in the icon's place, like Home
Assistant's own tile. It rides in the page's strip of 0.2.91: the request
and the answer are the same, a media player is simply among the tiles.
The app fetches a player's picture only when its address changes; a page
with a camera loads at the camera's pace with the cover reused, a page of
media tiles alone loads once, and a new track (the picture's mark in the
state, part of the page's wish) asks again at once. A player without a
picture keeps its icon and is not asked for; the double-width tile keeps
its controls; the tile over the whole page keeps the card's big cover.
Firmware 0.2.78.

Host harness 31 checks (docs/TEST_RESULTS_0292.md). CYD firmware
1,633,760 B, 89.0 %.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Max Gramser
2026-09-20 13:41:21 +02:00
parent 306636434b
commit efbab04b39
45 changed files with 352 additions and 85 deletions
+6
View File
@@ -60,6 +60,12 @@ corners, and refreshes it while that page is on the screen. A tap still opens th
the strip and asks for a new one.
- **A camera without a picture** keeps its icon: the app names it with an empty entry in its answer
and paints a plain square of the tile's colour in the strip.
- **A media tile's album cover** (app 0.2.92, firmware 0.2.78) rides in the same strip: **Display →
Album cover** on a single or double-width media player tile. The app fetches the player's picture
only when its address changes (a new track), so a page with a camera and a Sonos loads its strip at
the camera's pace with the cover reused, and a page of media tiles alone loads once. The screen asks
for the page again the moment a player's picture mark in its state changes. A player without a
picture keeps its icon; the tile over the whole page keeps the card's big cover.
- The strip lives in a third `online_image` of the Guition profile (`tile_image`, PSRAM); the CYD has
none and the editor does not offer the live picture there.