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

+2 -2
View File
@@ -22,8 +22,8 @@ packages:
api:
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
services:
- service: play_rtttl
actions:
- action: play_rtttl
variables:
song: string
then:
+10 -10
View File
@@ -44,15 +44,15 @@ binary_sensor:
- min_length: 50ms
max_length: 350ms
then:
- homeassistant.service:
service: light.toggle
- homeassistant.action:
action: light.toggle
data:
entity_id: light.mcu_basement_2_light
- min_length: 351ms
max_length: 1000ms
then:
- homeassistant.service:
service: light.toggle
- homeassistant.action:
action: light.toggle
data:
entity_id: light.exercise_room
- min_length: 1001ms
@@ -62,12 +62,12 @@ binary_sensor:
# service: light.turn_off
# data:
# entity_id: light.basement_light
- homeassistant.service:
service: light.turn_off
- homeassistant.action:
action: light.turn_off
data:
entity_id: light.exercise_room
- homeassistant.service:
service: light.turn_off
- homeassistant.action:
action: light.turn_off
data:
entity_id: light.exercise_room_fan
- platform: gpio
@@ -88,8 +88,8 @@ binary_sensor:
filters:
invert:
on_press:
- homeassistant.service:
service: light.turn_on
- homeassistant.action:
action: light.turn_on
data:
entity_id: light.mcu_basement_2_light
+4 -4
View File
@@ -114,8 +114,8 @@ script:
# make use of the following service.
api:
reboot_timeout: 0s
services:
- service: activate_preset
actions:
- action: activate_preset
variables:
my_group: string
my_preset: string
@@ -279,8 +279,8 @@ sensor:
lambda: |-
return id(group_control);
then:
- homeassistant.service:
service: light.turn_on
- homeassistant.action:
action: light.turn_on
data:
light_name: bedroom_lamp
brightness: !lambda return x;
+2 -2
View File
@@ -111,8 +111,8 @@ script:
# make use of the following service.
api:
reboot_timeout: 0s
services:
- service: activate_preset
actions:
- action: activate_preset
variables:
my_group: string
my_preset: string
+2 -2
View File
@@ -41,8 +41,8 @@ packages:
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
api:
services:
- service: play_rtttl
actions:
- action: play_rtttl
variables:
song: string
then:
+2 -2
View File
@@ -30,8 +30,8 @@ packages:
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
api:
services:
- service: play_rtttl
actions:
- action: play_rtttl
variables:
song: string
then:
+2 -2
View File
@@ -22,9 +22,9 @@ packages:
common: !include common/common.yaml
api:
services:
actions:
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
- service: play_rtttl
- action: play_rtttl
variables:
song: string
then:
+18 -18
View File
@@ -42,15 +42,15 @@ packages:
api:
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
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
@@ -62,12 +62,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:
@@ -75,14 +75,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:
@@ -91,18 +91,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:
@@ -112,24 +112,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
@@ -137,7 +137,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
@@ -147,7 +147,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
@@ -208,8 +208,8 @@ binary_sensor:
# on_click:
# - switch.toggle: relay_2
on_click:
- homeassistant.service:
service: light.toggle
- homeassistant.action:
action: light.toggle
data:
entity_id: light.bedroom_lamps
- mqtt.publish_json:
+4 -4
View File
@@ -68,16 +68,16 @@ packages:
api:
homeassistant_services: true
homeassistant_states: true
services:
actions:
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
- service: play_rtttl
- action: play_rtttl
variables:
song: string
then:
- rtttl.play:
rtttl: !lambda 'return song;'
- service: notify
- action: notify
variables:
heading: string
message: string
@@ -177,7 +177,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
+24 -24
View File
@@ -40,15 +40,15 @@ packages:
api:
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
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
@@ -60,12 +60,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:
@@ -73,14 +73,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:
@@ -89,18 +89,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:
@@ -110,24 +110,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
@@ -135,7 +135,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
@@ -145,7 +145,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
@@ -196,8 +196,8 @@ binary_sensor:
- min_length: 50ms
max_length: 350ms
then:
- homeassistant.service:
service: light.toggle
- homeassistant.action:
action: light.toggle
data:
entity_id: light.living_room
- mqtt.publish_json:
@@ -207,8 +207,8 @@ binary_sensor:
- min_length: 500ms
max_length: 2000ms
then:
- homeassistant.service:
service: light.toggle
- homeassistant.action:
action: light.toggle
data:
entity_id: light.worktop_lights
- mqtt.publish_json:
@@ -226,8 +226,8 @@ binary_sensor:
- min_length: 50ms
max_length: 350ms
then:
- homeassistant.service:
service: light.toggle
- homeassistant.action:
action: light.toggle
data:
entity_id: light.dining_table
- mqtt.publish_json:
@@ -237,8 +237,8 @@ binary_sensor:
- min_length: 500ms
max_length: 2000ms
then:
- homeassistant.service:
service: light.toggle
- homeassistant.action:
action: light.toggle
data:
entity_id: light.mcu_kitchen_stove
- mqtt.publish_json:
+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:
+18 -18
View File
@@ -64,15 +64,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
@@ -84,13 +84,13 @@ api:
- delay: 10s
- lambda: 'id(nspanel_id).send_custom_command("notify~~");'
- service: update_tft
- action: update_tft
then:
- logger.log: "tft updating from: ${tft_url}"
- lambda: |-
id(nspanel_id).upload_tft("${tft_url}");
- service: upload_tft
- action: upload_tft
variables:
url: string
then:
@@ -98,14 +98,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:
@@ -114,18 +114,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:
@@ -135,24 +135,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
@@ -160,7 +160,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
@@ -170,7 +170,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
@@ -237,8 +237,8 @@ binary_sensor:
number: 14
inverted: true
on_click:
- homeassistant.service:
service: light.toggle
- homeassistant.action:
action: light.toggle
data:
entity_id: light.office_r_desk_strip
- mqtt.publish_json:
+18 -18
View File
@@ -40,15 +40,15 @@ packages:
api:
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
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
@@ -60,12 +60,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:
@@ -73,14 +73,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:
@@ -89,18 +89,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:
@@ -110,24 +110,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
@@ -135,7 +135,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
@@ -145,7 +145,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
@@ -208,8 +208,8 @@ binary_sensor:
condition:
api.connected:
then:
- homeassistant.service:
service: light.toggle
- homeassistant.action:
action: light.toggle
data:
entity_id: light.patio_lights
- mqtt.publish_json:
+8 -8
View File
@@ -54,22 +54,22 @@ packages:
# GPIO21 RGB
api:
services:
- service: rfidreader_tag_ok
actions:
- action: rfidreader_tag_ok
then:
- rtttl.play: "beep:d=16,o=5,b=100:b"
- service: rfidreader_tag_ko
- action: rfidreader_tag_ko
then:
- rtttl.play: "beep:d=8,o=5,b=100:b"
- service: play_rtttl
- action: play_rtttl
variables:
song_str: string
then:
- rtttl.play: !lambda 'return song_str;'
- service: write_tag_id
- action: write_tag_id
variables:
tag_id: string
then:
@@ -93,7 +93,7 @@ api:
id: notify_led
- rtttl.play: "write:d=24,o=5,b=100:b,b"
- service: write_music_tag
- action: write_music_tag
variables:
music_url: string
music_info: string
@@ -348,7 +348,7 @@ button:
light:
- platform: esp32_rmt_led_strip
id: notify_led
rgb_order: GRB
channel_colors: GRB
pin: 3
num_leds: 1
chipset: ws2812
@@ -356,7 +356,7 @@ light:
rmt_symbols: 96
- platform: esp32_rmt_led_strip
id: status_led
rgb_order: GRB
channel_colors: GRB
pin: 21
num_leds: 1
chipset: ws2812
+2 -2
View File
@@ -106,8 +106,8 @@ sensor:
then:
- light.turn_off: light_red
- switch.turn_off: relay
- homeassistant.service:
service: persistent_notification.create
- homeassistant.action:
action: persistent_notification.create
data:
title: Message from ${name}
data_template: