From 9e0d048e42d953426fe5138f468f20a9a74538b7 Mon Sep 17 00:00:00 2001 From: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> Date: Fri, 2 Aug 2024 12:21:56 +0200 Subject: [PATCH] YAML examples: rename 'service' to 'action' (#34064) --- source/_dashboards/button.markdown | 4 ++-- source/_dashboards/entities.markdown | 8 ++++---- source/_dashboards/picture-entity.markdown | 4 ++-- source/_dashboards/picture-glance.markdown | 20 ++++++++++---------- source/_dashboards/picture.markdown | 4 ++-- source/_includes/installation/container.md | 2 +- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/source/_dashboards/button.markdown b/source/_dashboards/button.markdown index 7e84aca94b5..19ebda8313e 100644 --- a/source/_dashboards/button.markdown +++ b/source/_dashboards/button.markdown @@ -140,8 +140,8 @@ type: button name: Turn Off Lights show_state: false tap_action: - action: call-service - service: script.turn_on + action: perform-action + perform_action: script.turn_on data: entity_id: script.turn_off_lights ``` diff --git a/source/_dashboards/entities.markdown b/source/_dashboards/entities.markdown index 98cc7056db5..6185487a423 100644 --- a/source/_dashboards/entities.markdown +++ b/source/_dashboards/entities.markdown @@ -426,8 +426,8 @@ entities: name: Bed light transition action_name: Toggle light tap_action: - action: call-service - service: light.toggle + action: perform-action + perform_action: light.toggle data: entity_id: light.bed_light transition: 10 @@ -458,8 +458,8 @@ entities: name: Power cycle LibreELEC icon: mdi:power-cycle tap_action: - action: call-service + action: perform-action confirmation: text: Are you sure you want to restart? - service: script.libreelec_power_cycle + perform_action: script.libreelec_power_cycle ``` diff --git a/source/_dashboards/picture-entity.markdown b/source/_dashboards/picture-entity.markdown index f090bf77947..afdc03003e4 100644 --- a/source/_dashboards/picture-entity.markdown +++ b/source/_dashboards/picture-entity.markdown @@ -135,8 +135,8 @@ type: picture-entity entity: camera.backdoor camera_view: live tap_action: - action: call-service - service: camera.snapshot + action: perform-action + perform_action: camera.snapshot data: entity_id: camera.backdoor filename: '/shared/backdoor-{{ now().strftime("%Y-%m-%d-%H%M%S") }}.jpg' diff --git a/source/_dashboards/picture-glance.markdown b/source/_dashboards/picture-glance.markdown index a81ec742141..c4c73e008d7 100644 --- a/source/_dashboards/picture-glance.markdown +++ b/source/_dashboards/picture-glance.markdown @@ -197,35 +197,35 @@ If your camera supports PTZ (can be mov - entity: button.camera1_ptz_left icon: mdi:pan-left tap_action: - action: call-service - service: button.press + action: perform-action + perform_action: button.press data: entity_id: button.camera1_ptz_left - entity: button.camera1_ptz_right icon: mdi:pan-right tap_action: - action: call-service - service: button.press + action: perform-action + perform_action: button.press data: entity_id: button.camera1_ptz_right - entity: button.camera1_ptz_up icon: mdi:pan-up tap_action: - action: call-service - service: button.press + action: perform-action + perform_action: button.press data: entity_id: button.camera1_ptz_up - entity: button.camera1_ptz_down icon: mdi:pan-down tap_action: - action: call-service - service: button.press + action: perform-action + perform_action: button.press data: entity_id: button.camera1_ptz_down camera_image: camera.camera1_sub tap_action: - action: call-service - service: light.toggle + action: perform-action + perform_action: light.toggle target: entity_id: light.philips_929003052501_01_huelight ``` diff --git a/source/_dashboards/picture.markdown b/source/_dashboards/picture.markdown index 015e19ed515..25770bf6605 100644 --- a/source/_dashboards/picture.markdown +++ b/source/_dashboards/picture.markdown @@ -80,8 +80,8 @@ Toggle entity using an action: type: picture image: /local/light.png tap_action: - action: call-service - service: light.toggle + action: perform-action + perform_action: light.toggle data: entity_id: light.ceiling_lights ``` diff --git a/source/_includes/installation/container.md b/source/_includes/installation/container.md index 40a1cbb6487..0304fc4f4f2 100644 --- a/source/_includes/installation/container.md +++ b/source/_includes/installation/container.md @@ -41,7 +41,7 @@ Once the Home Assistant Container is running Home Assistant should be accessible If you change the configuration, you have to restart the server. To do that you have 3 options. 1. In your Home Assistant UI, go to the **Settings** > **System** and click the **Restart** button. -2. You can go to the **Developer Tools** > **Actions**, select the service `homeassistant.restart` and select **Perform action**. +2. You can go to the **Developer Tools** > **Actions**, select `homeassistant.restart` and select **Perform action**. 3. Restart it from a terminal. {% tabbed_block %}