From e4e0c083c2c5a150b488914deca9a65e81aeb70c Mon Sep 17 00:00:00 2001 From: Quentame Date: Mon, 13 May 2024 21:52:43 +0000 Subject: [PATCH 1/3] picture cards: add person image support --- source/_dashboards/picture-elements.markdown | 8 ++++++++ source/_dashboards/picture-entity.markdown | 2 +- source/_dashboards/picture-glance.markdown | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/source/_dashboards/picture-elements.markdown b/source/_dashboards/picture-elements.markdown index 95e27f1d8b50..1fe1a57b2795 100644 --- a/source/_dashboards/picture-elements.markdown +++ b/source/_dashboards/picture-elements.markdown @@ -36,6 +36,14 @@ 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 entity to display. + type: string +person_entity: + required: false + description: 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 aee7b6513908..73d163e2b0db 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 2589acb08c5a..9ba1db300549 100644 --- a/source/_dashboards/picture-glance.markdown +++ b/source/_dashboards/picture-glance.markdown @@ -42,6 +42,14 @@ image: required: false description: Background image URL. type: string +image_entity: + required: false + description: Image entity to display. + type: string +person_entity: + required: false + description: Person entity to display. + type: string camera_image: required: false description: Camera entity as Background image. From c80f4fa23bbec3d5134f98cc7685bc4a8d290650 Mon Sep 17 00:00:00 2001 From: Quentame Date: Thu, 16 May 2024 22:16:13 +0200 Subject: [PATCH 2/3] Update picture-entity.markdown Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --- source/_dashboards/picture-entity.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_dashboards/picture-entity.markdown b/source/_dashboards/picture-entity.markdown index 73d163e2b0db..f090bf77947e 100644 --- a/source/_dashboards/picture-entity.markdown +++ b/source/_dashboards/picture-entity.markdown @@ -32,7 +32,7 @@ type: type: string entity: required: true - description: "A camera, image or person `entity_id` used for the picture." + description: "A camera, image, or person `entity_id` used for the picture." type: string camera_image: required: false From 42beff135fa1a8542106771f332942971564109d Mon Sep 17 00:00:00 2001 From: Quentame Date: Mon, 22 Jul 2024 15:34:43 +0000 Subject: [PATCH 3/3] Update to latest core edit --- source/_dashboards/picture-elements.markdown | 6 +----- source/_dashboards/picture-glance.markdown | 6 +----- source/_dashboards/picture.markdown | 4 ++++ 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/source/_dashboards/picture-elements.markdown b/source/_dashboards/picture-elements.markdown index 1fe1a57b2795..56f1dee62573 100644 --- a/source/_dashboards/picture-elements.markdown +++ b/source/_dashboards/picture-elements.markdown @@ -38,11 +38,7 @@ image: type: string image_entity: required: false - description: Image entity to display. - type: string -person_entity: - required: false - description: Person entity to display. + description: Image or person entity to display. type: string camera_image: required: false diff --git a/source/_dashboards/picture-glance.markdown b/source/_dashboards/picture-glance.markdown index 9ba1db300549..a81ec742141b 100644 --- a/source/_dashboards/picture-glance.markdown +++ b/source/_dashboards/picture-glance.markdown @@ -44,11 +44,7 @@ image: type: string image_entity: required: false - description: Image entity to display. - type: string -person_entity: - required: false - description: Person entity to display. + description: Image or person entity to display. type: string camera_image: required: false diff --git a/source/_dashboards/picture.markdown b/source/_dashboards/picture.markdown index 097d527e6f76..015e19ed515b 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.