mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-31 05:06:57 +00:00
Add media-source instructions to picture card (#40191)
This commit is contained in:
parent
966445c01f
commit
f20a2083ee
@ -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
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user