mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 06:16:50 +00:00
Picture cards: rename 'service' to 'action' (#33787)
This commit is contained in:
parent
85b087110d
commit
0bdd1eb887
@ -183,7 +183,7 @@ If your camera supports <abbr title="pan, tilt, and zoom">PTZ</abbr> (can be mov
|
|||||||
4. Select **Show code editor**.
|
4. Select **Show code editor**.
|
||||||
5. For each of the entities, specify an icon, as indicated in the YAML example.
|
5. For each of the entities, specify an icon, as indicated in the YAML example.
|
||||||
6. For the buttons to react on press (instead of bringing up the dialog):
|
6. For the buttons to react on press (instead of bringing up the dialog):
|
||||||
- For each of the entities, under `tap_action`, call a `button.press` service.
|
- For each of the entities, under `tap_action`, use a `button.press` action.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
camera_view: live
|
camera_view: live
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
type: card
|
type: card
|
||||||
title: "Picture card"
|
title: "Picture card"
|
||||||
sidebar_label: Picture
|
sidebar_label: Picture
|
||||||
description: "The picture card allows you to set an image to use for navigation to various paths in your interface or to call a service."
|
description: "The picture card allows you to set an image to use for navigation to various paths in your interface or to perform an action."
|
||||||
related:
|
related:
|
||||||
- docs: /dashboards/actions/
|
- docs: /dashboards/actions/
|
||||||
title: Card actions
|
title: Card actions
|
||||||
@ -12,7 +12,7 @@ related:
|
|||||||
title: Dashboard cards
|
title: Dashboard cards
|
||||||
---
|
---
|
||||||
|
|
||||||
The picture card allows you to set an image to use for navigation to various paths in your interface or to call a service.
|
The picture card allows you to set an image to use for navigation to various paths in your interface or to perform an action.
|
||||||
|
|
||||||
<p class='img'>
|
<p class='img'>
|
||||||
<img src='/images/dashboards/picture.png' alt='Screenshot of the picture card'>
|
<img src='/images/dashboards/picture.png' alt='Screenshot of the picture card'>
|
||||||
@ -70,7 +70,7 @@ tap_action:
|
|||||||
|
|
||||||
Check the [views](/dashboards/views/) setup on how to setup custom IDs.
|
Check the [views](/dashboards/views/) setup on how to setup custom IDs.
|
||||||
|
|
||||||
Toggle entity using a service:
|
Toggle entity using an action:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
type: picture
|
type: picture
|
||||||
|
Loading…
x
Reference in New Issue
Block a user