From fad660fb5984018a590b4a65a002af3f1810ceff Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Wed, 28 Nov 2018 21:19:52 -0600 Subject: [PATCH 1/2] New configuration items for picture-elements card --- source/_lovelace/picture-elements.markdown | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/source/_lovelace/picture-elements.markdown b/source/_lovelace/picture-elements.markdown index c16b9c28934b..6f1e6315cbd2 100644 --- a/source/_lovelace/picture-elements.markdown +++ b/source/_lovelace/picture-elements.markdown @@ -28,6 +28,27 @@ image: required: true description: The URL of an image. type: string +camera_image: + required: false + description: Camera entity as Background image. + type: string +state_image: + required: false + description: Background image based on entity state. + type: object + keys: + state: + type: string + required: false + description: "`state: image-url`, check the example below." +aspect_ratio: + required: false + description: "Forces the height of the image to be a ratio of the width. You may enter a value such as: `16x9`, `16:9`, `1.78`." + type: string +entity: + required: false + description: Entity to use for `state_image`. + type: string elements: required: true description: List of elements From ad723d61aa3f6953a053fce40b8ee42075d1300e Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Wed, 28 Nov 2018 23:11:53 -0600 Subject: [PATCH 2/2] image is no longer required --- source/_lovelace/picture-elements.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_lovelace/picture-elements.markdown b/source/_lovelace/picture-elements.markdown index 6f1e6315cbd2..7e830c425538 100644 --- a/source/_lovelace/picture-elements.markdown +++ b/source/_lovelace/picture-elements.markdown @@ -25,7 +25,7 @@ type: description: picture-elements type: string image: - required: true + required: false description: The URL of an image. type: string camera_image: