mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 18:36:51 +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
|
||||
|
||||
### Call Service
|
||||
### Button
|
||||
|
||||
{% configuration %}
|
||||
type:
|
||||
required: true
|
||||
description: call-service
|
||||
description: button
|
||||
type: string
|
||||
name:
|
||||
required: true
|
||||
description: Main Label.
|
||||
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:
|
||||
required: false
|
||||
description: Button label.
|
||||
type: string
|
||||
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
|
||||
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
|
||||
{% endconfiguration %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user