From e5f1aef9e0b03d144566fbd8f4cecdf8231a76b4 Mon Sep 17 00:00:00 2001 From: Quentame Date: Tue, 23 Jul 2024 09:51:17 +0200 Subject: [PATCH] picture cards: add person image support (#32733) Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --- source/_dashboards/picture-elements.markdown | 4 ++++ source/_dashboards/picture-entity.markdown | 2 +- source/_dashboards/picture-glance.markdown | 4 ++++ source/_dashboards/picture.markdown | 4 ++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/source/_dashboards/picture-elements.markdown b/source/_dashboards/picture-elements.markdown index 95e27f1d8b5..56f1dee6257 100644 --- a/source/_dashboards/picture-elements.markdown +++ b/source/_dashboards/picture-elements.markdown @@ -36,6 +36,10 @@ image: required: true description: The URL of an image.
To use a locally hosted image, see [Hosting](/integrations/http#hosting-files). type: string +image_entity: + required: false + description: Image or person entity to display. + type: string camera_image: required: false description: A camera entity. diff --git a/source/_dashboards/picture-entity.markdown b/source/_dashboards/picture-entity.markdown index aee7b651390..f090bf77947 100644 --- a/source/_dashboards/picture-entity.markdown +++ b/source/_dashboards/picture-entity.markdown @@ -32,7 +32,7 @@ type: type: string entity: required: true - description: "An `entity_id` used for the picture." + description: "A camera, image, or person `entity_id` used for the picture." type: string camera_image: required: false diff --git a/source/_dashboards/picture-glance.markdown b/source/_dashboards/picture-glance.markdown index 2589acb08c5..a81ec742141 100644 --- a/source/_dashboards/picture-glance.markdown +++ b/source/_dashboards/picture-glance.markdown @@ -42,6 +42,10 @@ image: required: false description: Background image URL. type: string +image_entity: + required: false + description: Image or person entity to display. + type: string camera_image: required: false description: Camera entity as Background image. diff --git a/source/_dashboards/picture.markdown b/source/_dashboards/picture.markdown index 097d527e6f7..015e19ed515 100644 --- a/source/_dashboards/picture.markdown +++ b/source/_dashboards/picture.markdown @@ -34,6 +34,10 @@ 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`." type: string +image_entity: + required: false + description: Image or person entity to display. + type: string alt_text: required: false description: Alternative text for the image. This is necessary for users of assistive technology. The [W3C images tutorial](https://www.w3.org/WAI/tutorials/images/) provides simple guidance for writing alternative text.