From 53553634e3e40eaa7ab9c366e6bfeada29dfd220 Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Thu, 29 Nov 2018 09:45:07 -0600 Subject: [PATCH] New configuration items for picture-elements card (#7681) * New configuration items for picture-elements card * image is no longer required --- source/_lovelace/picture-elements.markdown | 23 +++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/source/_lovelace/picture-elements.markdown b/source/_lovelace/picture-elements.markdown index c16b9c28934..7e830c42553 100644 --- a/source/_lovelace/picture-elements.markdown +++ b/source/_lovelace/picture-elements.markdown @@ -25,9 +25,30 @@ type: description: picture-elements type: string image: - required: true + required: false 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