mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-08-01 05:28:00 +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
|
type: string
|
||||||
image:
|
image:
|
||||||
required: true
|
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
|
type: string
|
||||||
image_entity:
|
image_entity:
|
||||||
required: false
|
required: false
|
||||||
@ -85,3 +85,10 @@ tap_action:
|
|||||||
data:
|
data:
|
||||||
entity_id: light.ceiling_lights
|
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