mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
picture elements card: rename 'service' to 'action' (#33846)
This commit is contained in:
parent
321275e2a6
commit
ddf16cf2a1
@ -80,7 +80,7 @@ There are several different element types that can be added to a Picture Element
|
|||||||
- [State badge](#state-badge)
|
- [State badge](#state-badge)
|
||||||
- [State Icon](#state-icon)
|
- [State Icon](#state-icon)
|
||||||
- [State Label](#state-label)
|
- [State Label](#state-label)
|
||||||
- [Service Call Button](#service-call-button)
|
- [Perform action button](#perform-action-button)
|
||||||
- [Icon](#icon-element)
|
- [Icon](#icon-element)
|
||||||
- [Image](#image-element)
|
- [Image](#image-element)
|
||||||
- [Conditional](#conditional-element)
|
- [Conditional](#conditional-element)
|
||||||
@ -215,9 +215,9 @@ style:
|
|||||||
default: "position: absolute, transform: translate(-50%, -50%)"
|
default: "position: absolute, transform: translate(-50%, -50%)"
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
### Service call button
|
### Perform action button
|
||||||
|
|
||||||
This entity creates a button (with arbitrary text) that can be used to call a service.
|
This entity creates a button (with arbitrary text) that can be used to perform a service.
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
type:
|
type:
|
||||||
@ -234,7 +234,7 @@ service:
|
|||||||
type: string
|
type: string
|
||||||
service_data:
|
service_data:
|
||||||
required: false
|
required: false
|
||||||
description: The service data to use.
|
description: The data to use.
|
||||||
type: map
|
type: map
|
||||||
style:
|
style:
|
||||||
required: true
|
required: true
|
||||||
@ -540,7 +540,7 @@ elements:
|
|||||||
width: 10%
|
width: 10%
|
||||||
border: 2px solid red
|
border: 2px solid red
|
||||||
border-radius: 10%
|
border-radius: 10%
|
||||||
# Single image, state_filter - call-service on click
|
# Single image, state_filter - perform action on click
|
||||||
- type: image
|
- type: image
|
||||||
entity: media_player.living_room
|
entity: media_player.living_room
|
||||||
tap_action:
|
tap_action:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user