#Display an image entity (image.livingroom_camera_dog) in any picture card?

1 messages · Page 1 of 1 (latest)

barren locust
#

It seems like the picture cards can't use an image entity in the 'state_image' section of the configuration, the cards only use URLs.

Frigate provides snapshots of my dog as image entities (image.livingroom_camera_dog, image.office_camera_dog) and I'd like to use them in a picture card using 'state_image' to select which image to show based on the frigate sensor that tracks which camera last saw my dog. It seems like image entities are not valid for that configuration. Is there a way to use the image entity directly without taking a snapshot of it or finding a way to store the snapshot locally? Can I use an image stored in the MQTT server? Is there a card for showing image entities?

Thanks.

north hearth
#

I think image entities are selectable via the media path?

#

select media -> image folder

barren locust
#

Indeed, I was able to find the images there. But how do I get an image from there to a picture card?

#

I can decode URL for the folder with all of the images to 'media-source://image' but I'm not sure how to get individual images

north hearth
#

I thought it was just easily selectible in the UI

barren locust
#

Indeed it is. I was making this much harder than necessary

north hearth
#

Also I see image entity there selectable separately

#

Are we sure we're talking about the same card?

barren locust
#

Yes, you have helped me greatly

#

image:
media_content_id: media-source://image/image.outside_1_dog
media_content_type: image/jpeg
metadata:
title: Outside 1 Dog
thumbnail: /api/image_proxy/image.outside_1_dog
media_class: video
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://image

#

I think I can use those image URLs to configure the state_image filter thing so the picture card shows me the image from where my dog was detected! Thanks!