Add attribute parameter to label-state (#12151)

Add an optional parameter "attribute" to the label-state element in
picture elements
This commit is contained in:
guillempages 2020-03-11 12:04:13 +01:00 committed by GitHub
parent 50bbd86187
commit e7fd176fab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: