How to fetch the picture of a given person entity?

As I’m adding more presence detection to my home, I’d like a card like the built-in Tile card for a person entity, except that it displays the current room for the person when they’re home.

I’d like to use a Mushroom template card to replicate that Tile card layout.

I want to display the picture currently associated with the person entity, and I’d prefer to fetch the current picture instead of re-uploading the same file to local storage and referencing the URI. That way, if the picture associated with the entity changes (say, if the user uploads a new picture), the card automatically points to the new picture.

The Mushroom template card has a picture option, which takes a string (could be a template) as its input. It also has an entity option, where I can specify an entity to be used in templates on the card (so, for instance, I could specify person.self as the entity.) Is there a way here to write a template that points to the user-uploaded picture associated with the specified person entity?

Thanks.

{{ state_attr(entity, 'entity_picture') }} should do the trick

Nice and easy. Thanks!