v1.11.0 — Per-Event Attributes in image_template
Bug Fix
-
image_templatenow uses per-state-change attributes. Previously, the history adapter prioritizedhass.states[entityId].attributes(live, current) over the per-entry attributes returned by HA's history API. Since live state is virtually always populated, every historical event ended up rendering its template with the current attribute values rather than the snapshot recorded at that state change — making{{ attributes.foo }}resolve identically across all events.The adapter already omits
minimal_responsefrom the history API request whenimage_templateis configured (so per-entry attributes are available); they just weren't being used. Order is nowcurrState.attributes ?? liveEntity?.attributes ?? {}, so each event renders with its own attribute snapshot.
Behavior change
If you were relying on image_template rendering with the most recent live attribute values rather than the per-event snapshot, you'll see different output now. The new behavior matches what the documentation has always promised.