mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 22:36:51 +00:00
Add "label_mode = attribute" for Map card (#38137)
This commit is contained in:
commit
baf2b497ef
@ -130,7 +130,11 @@ name:
|
|||||||
label_mode:
|
label_mode:
|
||||||
required: false
|
required: false
|
||||||
default: name
|
default: name
|
||||||
description: When set to `icon`, renders the entity's icon in the marker instead of text. When set to `state`, renders the entity's state as the label for the map marker instead of the entity's name. This option doesn't apply to [zone](/integrations/zone/) entities because they don't use a label but an icon.
|
description: When set to `icon`, renders the entity's icon in the marker instead of text. When set to `state` or `attribute`, renders the entity's state or attribute as the label for the map marker instead of the entity's name. This option doesn't apply to [zone](/integrations/zone/) entities because they don't use a label but an icon.
|
||||||
|
type: string
|
||||||
|
attribute:
|
||||||
|
required: false
|
||||||
|
description: An entity's attribute when `label_mode` set to `attribute`.
|
||||||
type: string
|
type: string
|
||||||
focus:
|
focus:
|
||||||
required: false
|
required: false
|
||||||
@ -151,8 +155,12 @@ source:
|
|||||||
label_mode:
|
label_mode:
|
||||||
required: false
|
required: false
|
||||||
default: name
|
default: name
|
||||||
description: When set to `icon`, renders the geolocation entity's icon in the marker instead of text. When set to `state`, renders the entity's state as the label for the map marker instead of the entity's name.
|
description: When set to `icon`, renders the entity's icon in the marker instead of text. When set to `state` or `attribute`, renders the entity's state or attribute as the label for the map marker instead of the entity's name. This option doesn't apply to [zone](/integrations/zone/) entities because they don't use a label but an icon.
|
||||||
type: string
|
type: string
|
||||||
|
attribute:
|
||||||
|
required: false
|
||||||
|
description: An entity's attribute when `label_mode` set to `attribute`.
|
||||||
|
type: string
|
||||||
focus:
|
focus:
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user