mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 14:26:51 +00:00
Lovelace: support actions on rows (#10826)
This commit is contained in:
parent
28471e372c
commit
84ed4c6721
@ -67,6 +67,96 @@ format:
|
|||||||
required: false
|
required: false
|
||||||
description: "How the state should be formatted. Currently only used for timestamp sensors. Valid values are: `relative`, `total`, `date`, `time` and `datetime`."
|
description: "How the state should be formatted. Currently only used for timestamp sensors. Valid values are: `relative`, `total`, `date`, `time` and `datetime`."
|
||||||
type: string
|
type: string
|
||||||
|
tap_action:
|
||||||
|
required: false
|
||||||
|
description: Action to take on tap
|
||||||
|
type: map
|
||||||
|
keys:
|
||||||
|
action:
|
||||||
|
required: true
|
||||||
|
description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)"
|
||||||
|
type: string
|
||||||
|
default: "`toggle`"
|
||||||
|
navigation_path:
|
||||||
|
required: false
|
||||||
|
description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
url_path:
|
||||||
|
required: false
|
||||||
|
description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
service:
|
||||||
|
required: false
|
||||||
|
description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
service_data:
|
||||||
|
required: false
|
||||||
|
description: "Service data to include (e.g. `entity_id: media_player.bedroom`) when `action` defined as `call-service`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
hold_action:
|
||||||
|
required: false
|
||||||
|
description: Action to take on tap-and-hold
|
||||||
|
type: map
|
||||||
|
keys:
|
||||||
|
action:
|
||||||
|
required: true
|
||||||
|
description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)"
|
||||||
|
type: string
|
||||||
|
default: "`more-info`"
|
||||||
|
navigation_path:
|
||||||
|
required: false
|
||||||
|
description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
url_path:
|
||||||
|
required: false
|
||||||
|
description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
service:
|
||||||
|
required: false
|
||||||
|
description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
service_data:
|
||||||
|
required: false
|
||||||
|
description: "Service data to include (e.g. `entity_id: media_player.bedroom`) when `action` defined as `call-service`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
double_tap_action:
|
||||||
|
required: false
|
||||||
|
description: Action to take on double tap
|
||||||
|
type: map
|
||||||
|
keys:
|
||||||
|
action:
|
||||||
|
required: true
|
||||||
|
description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `none`)"
|
||||||
|
type: string
|
||||||
|
default: "`more-info`"
|
||||||
|
navigation_path:
|
||||||
|
required: false
|
||||||
|
description: "Path to navigate to (e.g. `/lovelace/0/`) when `action` defined as `navigate`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
url_path:
|
||||||
|
required: false
|
||||||
|
description: "Path to navigate to (e.g. `https://www.home-assistant.io`) when `action` defined as `url`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
service:
|
||||||
|
required: false
|
||||||
|
description: "Service to call (e.g. `media_player.media_play_pause`) when `action` defined as `call-service`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
service_data:
|
||||||
|
required: false
|
||||||
|
description: "Service data to include (e.g. `entity_id: media_player.bedroom`) when `action` defined as `call-service`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
## Special Row Elements
|
## Special Row Elements
|
||||||
|
Loading…
x
Reference in New Issue
Block a user