From e7fd176fabdfb087744cb0b145bc186f60b41921 Mon Sep 17 00:00:00 2001 From: guillempages Date: Wed, 11 Mar 2020 12:04:13 +0100 Subject: [PATCH] Add attribute parameter to label-state (#12151) Add an optional parameter "attribute" to the label-state element in picture elements --- source/_lovelace/picture-elements.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/_lovelace/picture-elements.markdown b/source/_lovelace/picture-elements.markdown index 6de03f07d2c..deeab796057 100644 --- a/source/_lovelace/picture-elements.markdown +++ b/source/_lovelace/picture-elements.markdown @@ -165,6 +165,11 @@ entity: required: true description: Entity id type: string +attribute: + required: false + description: If present, the corresponding attribute will be shown, + instead of the entity's state + type: string prefix: required: false description: Text before entity state. @@ -456,6 +461,13 @@ elements: style: top: 82% left: 79% + - type: state-label + entity: climate.kitchen + attribute: current_temperature + suffix: "°C" + style: + top: 33% + left: 15% - type: service-button title: Turn lights off style: