mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 13:56:53 +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
|
required: true
|
||||||
description: Entity id
|
description: Entity id
|
||||||
type: string
|
type: string
|
||||||
|
attribute:
|
||||||
|
required: false
|
||||||
|
description: If present, the corresponding attribute will be shown,
|
||||||
|
instead of the entity's state
|
||||||
|
type: string
|
||||||
prefix:
|
prefix:
|
||||||
required: false
|
required: false
|
||||||
description: Text before entity state.
|
description: Text before entity state.
|
||||||
@ -456,6 +461,13 @@ elements:
|
|||||||
style:
|
style:
|
||||||
top: 82%
|
top: 82%
|
||||||
left: 79%
|
left: 79%
|
||||||
|
- type: state-label
|
||||||
|
entity: climate.kitchen
|
||||||
|
attribute: current_temperature
|
||||||
|
suffix: "°C"
|
||||||
|
style:
|
||||||
|
top: 33%
|
||||||
|
left: 15%
|
||||||
- type: service-button
|
- type: service-button
|
||||||
title: Turn lights off
|
title: Turn lights off
|
||||||
style:
|
style:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user