Features Wishlist
Let plugins show Tessera's own map behind their tiles
What I'd like. A way for a plugin tile to show Tessera's own map as a picture: centred on an entity the tile already uses, at a scale the plugin chooses, drawn by the app the way the map card is drawn.
Why. I wanted a map behind the plane radar plugin, to scale, so each aircraft sits over the ground it is flying over. As far as I can tell, that's only possible today if every person hosts their own map images on a public web host, because:
β’ A plugin's pictures can come only from a host in permissions.network, or from the tile's own entity's entity_picture. The radar's place is an entity option, not the tile's own entity, so /local/ images are refused (plugin_pictures.refused_source). β’ Building the map from standard web map tiles doesn't work either. Tiles sit on a fixed grid, so with home in the middle the outer ones cross the card's edge, and a place over the edge is never asked for (plugin_host.cpp, measure). Fit::COVER only crops evenly around the middle, so a tile can't be cut to the part inside the card.
Meanwhile the app already has exactly the right renderer: the map card (map_card.py) draws streets from Home Assistant's own map_tiles integration at the exact size the screen asks for, in the screen's colours, with a "home zone in the middle at a fixed distance" framing. Nothing leaves home, no API key, no hosting. Plugins just can't ask for it: the map: source only refers to the screen's own map tiles.
A possible shape
β’ An address for a place, e.g. map:?span=: a map centred on , where span metres is the place's width. The app picks the zoom from the place's pixels, so a plugin can line its own drawing up with the map exactly. The renderer already takes fractional zooms (DISTANCES uses 16.5, 10.5 and so on), so any scale should fit. β’ Only the streets: no people, zone rings or name pill. The plugin draws its own markers on top. β’ The look: the screen's light or dark, plus the instrument look for a face that stays dark in both themes (the radar's theme::INSTRUMENT). β’ Which entity: the tile's own entity, or an entity option of the tile (kind: entity) that the tile already receives, so a plugin can't map anywhere it isn't already given. β’ The manifest: it counts as one of the tile's pictures. It doesn't need permissions.network, because the app only asks Home Assistant.
What it enables
β’ Plane radar: the map dimmed under the disc, north up, with each range ring at its true distance. β’ Any other plugin with a place: rain or lightning overlays, a vehicle or boat tracker, a delivery's progress, a satellite pass. Each would draw over the same local map without hosting anything or sending a location out.
Privacy. Better than any web-hosted alternative: the app asks only Home Assistant, which fetches OpenStreetMap tiles with its own identification and caches them, as it already does for the map card. No position leaves home at render time.
Discussion 0
Add a commentStart the conversation
Share an example, ask a question or explain how you would use this.