mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-10 19:06:55 +00:00
Convert call-service row to button row (#12545)
This commit is contained in:
parent
70800bad78
commit
cb34796126
@ -113,34 +113,33 @@ double_tap_action:
|
|||||||
|
|
||||||
## Special Row Elements
|
## Special Row Elements
|
||||||
|
|
||||||
### Call Service
|
### Button
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
type:
|
type:
|
||||||
required: true
|
required: true
|
||||||
description: call-service
|
description: button
|
||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
required: true
|
required: true
|
||||||
description: Main Label.
|
description: Main Label.
|
||||||
type: string
|
type: string
|
||||||
service:
|
|
||||||
required: true
|
|
||||||
description: "Service like `media_player.media_play_pause`"
|
|
||||||
type: string
|
|
||||||
icon:
|
|
||||||
required: false
|
|
||||||
description: "Icon to display (e.g., `mdi:home`)"
|
|
||||||
type: string
|
|
||||||
default: "`mdi:remote`"
|
|
||||||
action_name:
|
action_name:
|
||||||
required: false
|
required: false
|
||||||
description: Button label.
|
description: Button label.
|
||||||
type: string
|
type: string
|
||||||
default: "`Run`"
|
default: "`Run`"
|
||||||
service_data:
|
tap_action:
|
||||||
|
required: true
|
||||||
|
description: Action taken on card tap. See [action documentation](/lovelace/actions/#tap-action).
|
||||||
|
type: map
|
||||||
|
hold_action:
|
||||||
required: false
|
required: false
|
||||||
description: The service data to use.
|
description: Action taken on card tap and hold. See [action documentation](/lovelace/actions/#hold-action).
|
||||||
|
type: map
|
||||||
|
double_tap_action:
|
||||||
|
required: false
|
||||||
|
description: Action taken on card double tap. See [action documentation](/lovelace/actions/#double-tap-action).
|
||||||
type: map
|
type: map
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user