Rename deprecated api services/service to actions/action

ESPHome renamed the api component's services/service keys to
actions/action; update all devices using the old names.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
randyandClaude Sonnet 5 committed 2026-09-25 21:24:36 +02:00
1 parent 468e813958
commit 56db2c2087
15 files changed
+134 -134

No files matched your search

+18 -18
View File
@@ -46,15 +46,15 @@ api:
# help:d=4,o=6,b=100:f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f
# gate_opening:d=16,o=5,b=160:a, 8p, a
# fireplace_attention:d=16,o=5,b=160:a, 8p, g, 16p, c
services:
- service: play_rtttl
actions:
- action: play_rtttl
variables:
song: string
then:
- rtttl.play:
rtttl: !lambda 'return song;'
- service: notify
- action: notify
variables:
heading: string
message: string
@@ -66,12 +66,12 @@ api:
- delay: 10s
- lambda: 'id(nspanel_id).send_custom_command("notify~~");'
- service: update_tft
- action: update_tft
then:
- lambda: |-
id(nspanel_id).upload_tft("${tft_url}");
- service: upload_tft
- action: upload_tft
variables:
url: string
then:
@@ -79,14 +79,14 @@ api:
id(nspanel_id).upload_tft(url);
# Service to send a command directly to the display. Useful for testing
- service: send_command
- action: send_command
variables:
cmd: string
then:
- lambda: "id(nspanel_id).send_custom_command(cmd.c_str());"
# Service to pusblish to mqtt used for refreshin the panel
- service: publish_to_recv_topic
- action: publish_to_recv_topic
variables:
cmd: string
then:
@@ -95,18 +95,18 @@ api:
payload: !lambda "return cmd;"
# Service to send a command wake the screen
- service: wake
- action: wake
then:
- lambda: 'id(nspanel_id).send_custom_command("wake");'
# Service to send a command to show screensaver (some of the values are hardcoded)
- service: show_screensaver
- action: show_screensaver
then:
- mqtt.publish:
topic: $panel_recv_topic
payload: '{"CustomRecv":"event,sleepReached,cardGrid"}'
# Service to navigate to screen
- service: navigate_to_page
- action: navigate_to_page
variables:
page: string
then:
@@ -116,24 +116,24 @@ api:
root["CustomRecv"] = "event,buttonPress2,navigate." + page + ",button";
# Service to send a command disable screensaver
- service: disable_screensaver
- action: disable_screensaver
then:
- lambda: 'id(nspanel_id).send_custom_command("timeout~0");'
# Service to send a command enabled screensaver
- service: enable_screensaver
- action: enable_screensaver
then:
- lambda: 'id(nspanel_id).send_custom_command("timeout~20");'
# Service to send a command wake the screen
- service: dim_0_to_100
- action: dim_0_to_100
variables:
intensity: string
then:
- lambda: 'id(nspanel_id).send_custom_command("dimmode~"+intensity+"~100");'
# Service to send a command To show the screen of a specific like
- service: show_entity
- action: show_entity
variables:
entity: string
title: string
@@ -141,7 +141,7 @@ api:
- lambda: 'id(nspanel_id).send_custom_command("pageType~popupLight~" + title + "~" + entity);'
# Service to send a command To show the screen of a specific like
- service: notify_on_screensaver
- action: notify_on_screensaver
variables:
line1: string
line2: string
@@ -151,7 +151,7 @@ api:
# Service to send a command To show the screen of a specific like
# interaction of the buttons are on implemented yet
- service: notify_fullscreen
- action: notify_fullscreen
variables:
title: string
description: string
@@ -230,8 +230,8 @@ binary_sensor:
number: 27
inverted: true
on_click:
- homeassistant.service:
service: light.toggle
- homeassistant.action:
action: light.toggle
data:
entity_id: light.bedside_left
- mqtt.publish_json: