Add support for perform-action calls.
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
Call a service. See [Home Assistant actions documentation](https://www.home-assistant.io/dashboards/actions/).
|
||||
|
||||
!> Home Assistant has deprecated the `call-service` action, please use [`perform-action`](#perform-action) instead.
|
||||
|
||||
```yaml
|
||||
action: call-service
|
||||
# [...]
|
||||
@@ -27,6 +29,15 @@ action: navigate
|
||||
# [...]
|
||||
```
|
||||
|
||||
## `perform-action`
|
||||
|
||||
Perform a Home Assistant action. See [Home Assistant actions documentation](https://www.home-assistant.io/dashboards/actions/).
|
||||
|
||||
```yaml
|
||||
action: perform-action
|
||||
# [...]
|
||||
```
|
||||
|
||||
## `toggle`
|
||||
|
||||
Toggle an entity. See [Home Assistant actions documentation](https://www.home-assistant.io/dashboards/actions/).
|
||||
@@ -117,4 +128,15 @@ elements:
|
||||
tap_action:
|
||||
action: fire-dom-event
|
||||
key: value
|
||||
- type: icon
|
||||
icon: mdi:numeric-8-box
|
||||
title: Perform action
|
||||
style:
|
||||
left: 200px
|
||||
top: 400px
|
||||
tap_action:
|
||||
action: perform-action
|
||||
perform_action: homeassistant.toggle
|
||||
target:
|
||||
entity_id: light.office_main_lights
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user