mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 04:46:49 +00:00
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:
parent
50bbd86187
commit
e7fd176fab
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user