Add media-source instructions to picture card (#40191)

This commit is contained in:
karwosts 2025-07-29 12:52:33 -07:00 committed by GitHub
parent 966445c01f
commit f20a2083ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ type:
type: string
image:
required: true
description: "The URL of an image. When you want to store images in your Home Assistant installation use the [hosting files documentation](/integrations/http/#hosting-files). After storing your files, use the `/local` path, for example, `/local/filename.jpg`."
description: "The URL of an image. When you want to store images in your Home Assistant installation use the [hosting files documentation](/integrations/http/#hosting-files). After storing your files, use the `/local` path, for example, `/local/filename.jpg`. To use an image from an existing [media](/integrations/media_source/) directory, provide the full media-source identifier (see examples)."
type: string
image_entity:
required: false
@ -85,3 +85,10 @@ tap_action:
data:
entity_id: light.ceiling_lights
```
Show an image from a [media](/integrations/media_source/) directory:
```yaml
type: picture
image: media-source://media_source/local/test.jpg
```