mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Dashboard actions: Fix perform_action key (#34068)
* Dashboard actions: Fix perform_action key * Update actions.markdown * Update actions.markdown
This commit is contained in:
parent
b985b005b1
commit
fa61ff16c9
@ -71,7 +71,7 @@ tap_action:
|
|||||||
description: "Path to navigate to (e.g., `https://www.home-assistant.io`) when the `action` is defined as `url`"
|
description: "Path to navigate to (e.g., `https://www.home-assistant.io`) when the `action` is defined as `url`"
|
||||||
type: string
|
type: string
|
||||||
default: none
|
default: none
|
||||||
perform-action:
|
perform_action:
|
||||||
required: false
|
required: false
|
||||||
description: "Action to perform (e.g., `media_player.media_play_pause`) when the `action` is defined as `perform-action`"
|
description: "Action to perform (e.g., `media_player.media_play_pause`) when the `action` is defined as `perform-action`"
|
||||||
type: string
|
type: string
|
||||||
@ -120,7 +120,7 @@ hold_action:
|
|||||||
keys:
|
keys:
|
||||||
action:
|
action:
|
||||||
required: true
|
required: true
|
||||||
description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `assist`, `none`)"
|
description: "Action to perform (`more-info`, `toggle`, `perform-action`, `navigate`, `url`, `assist`, `none`)"
|
||||||
type: string
|
type: string
|
||||||
default: "`more-info`"
|
default: "`more-info`"
|
||||||
navigation_path:
|
navigation_path:
|
||||||
@ -138,14 +138,19 @@ hold_action:
|
|||||||
description: "Path to navigate to (e.g., `https://www.home-assistant.io`) when the `action` is defined as `url`"
|
description: "Path to navigate to (e.g., `https://www.home-assistant.io`) when the `action` is defined as `url`"
|
||||||
type: string
|
type: string
|
||||||
default: none
|
default: none
|
||||||
service:
|
perform_action:
|
||||||
required: false
|
required: false
|
||||||
description: "Service to call (e.g., `media_player.media_play_pause`) when the `action` is defined as `call-service`"
|
description: "Action to perform (e.g., `media_player.media_play_pause`) when the `action` is defined as `perform-action`"
|
||||||
type: string
|
type: string
|
||||||
default: none
|
default: none
|
||||||
data:
|
data:
|
||||||
required: false
|
required: false
|
||||||
description: "Service data to include (e.g., `entity_id: media_player.bedroom`) when the `action` is defined as `call-service`"
|
description: "Action data to include (e.g., `brightness: 100`) when the `action` is defined as `perform-action`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
target:
|
||||||
|
required: false
|
||||||
|
description: "Action target to user (e.g., `entity_id: media_player.bedroom`) when the `action` is defined as `perform-action`"
|
||||||
type: string
|
type: string
|
||||||
default: none
|
default: none
|
||||||
confirmation:
|
confirmation:
|
||||||
@ -182,7 +187,7 @@ double_tap_action:
|
|||||||
keys:
|
keys:
|
||||||
action:
|
action:
|
||||||
required: true
|
required: true
|
||||||
description: "Action to perform (`more-info`, `toggle`, `call-service`, `navigate`, `url`, `assist`, `none`)"
|
description: "Action to perform (`more-info`, `toggle`, `perform-action`, `navigate`, `url`, `assist`, `none`)"
|
||||||
type: string
|
type: string
|
||||||
default: "`more-info`"
|
default: "`more-info`"
|
||||||
navigation_path:
|
navigation_path:
|
||||||
@ -200,14 +205,19 @@ double_tap_action:
|
|||||||
description: "Path to navigate to (e.g., `https://www.home-assistant.io`) when the `action` is defined as `url`"
|
description: "Path to navigate to (e.g., `https://www.home-assistant.io`) when the `action` is defined as `url`"
|
||||||
type: string
|
type: string
|
||||||
default: none
|
default: none
|
||||||
service:
|
perform_action:
|
||||||
required: false
|
required: false
|
||||||
description: "Service to call (e.g., `media_player.media_play_pause`) when the `action` is defined as `call-service`"
|
description: "Action to perform (e.g., `media_player.media_play_pause`) when the `action` is defined as `perform-action`"
|
||||||
type: string
|
type: string
|
||||||
default: none
|
default: none
|
||||||
data:
|
data:
|
||||||
required: false
|
required: false
|
||||||
description: "Service data to include (e.g., `entity_id: media_player.bedroom`) when the `action` is defined as `call-service`"
|
description: "Action data to include (e.g., `brightness: 100`) when the `action` is defined as `perform-action`"
|
||||||
|
type: string
|
||||||
|
default: none
|
||||||
|
target:
|
||||||
|
required: false
|
||||||
|
description: "Action target to user (e.g., `entity_id: media_player.bedroom`) when the `action` is defined as `perform-action`"
|
||||||
type: string
|
type: string
|
||||||
default: none
|
default: none
|
||||||
confirmation:
|
confirmation:
|
||||||
@ -233,14 +243,14 @@ If you define confirmation as an object instead of boolean, you can add more cus
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
double_tap_action:
|
double_tap_action:
|
||||||
action: call-service
|
action: perform-action
|
||||||
confirmation:
|
confirmation:
|
||||||
text: Are you sure you want to restart?
|
text: Are you sure you want to restart?
|
||||||
service: script.restart
|
perform_action: script.restart
|
||||||
hold_action:
|
hold_action:
|
||||||
action: call-service
|
action: perform-action
|
||||||
confirmation: true
|
confirmation: true
|
||||||
service: script.do_other_thing
|
perform_action: script.do_other_thing
|
||||||
```
|
```
|
||||||
|
|
||||||
{% configuration confirmation%}
|
{% configuration confirmation%}
|
||||||
@ -265,13 +275,13 @@ user:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
double_tap_action:
|
double_tap_action:
|
||||||
action: call-service
|
action: perform-action
|
||||||
confirmation:
|
confirmation:
|
||||||
text: Are you sure you want to restart?
|
text: Are you sure you want to restart?
|
||||||
exemptions:
|
exemptions:
|
||||||
- user: x9405b8c64ee49bb88c42000e0a9dfa8
|
- user: x9405b8c64ee49bb88c42000e0a9dfa8
|
||||||
- user: 88bcfbdc39155d16c3b2d09cbf8b0367
|
- user: 88bcfbdc39155d16c3b2d09cbf8b0367
|
||||||
service: script.restart
|
perform_action: script.restart
|
||||||
```
|
```
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
Loading…
x
Reference in New Issue
Block a user