Add esphome.xxxxx_play_rtttl back to core

Solves #1262
This commit is contained in:
Edward Firmo
2023-11-14 07:26:34 +01:00
parent bf96235054
commit 84edfcb8ea
3 changed files with 16 additions and 14 deletions

View File

@@ -40,8 +40,8 @@ Since in this update lots of input to the blueprint changed, we highly recommend
2. The following components are now deprecated:
- Buttons:
- Exit reparse (`button.xxxxx_exit_reparse`) - It shouldn't be necessary with the new TFT upload engine
- Services:
- Play rtttl (`esphome.xxxxx_play_rtttl`)
- ~~Services:~~
- ~~Play rtttl (`esphome.xxxxx_play_rtttl`)~~
- Sensors:
- API uptime
- Device uptime
@@ -85,6 +85,10 @@ packages:
5. Font size for chips
6. Short click to open Climate and Media Player
- 4.1.1 patch:
- Service `esphome.xxxxx_play_rtttl` is back to core package
 
## Details of noteworthy changes

View File

@@ -7,17 +7,6 @@
##### ATTENTION: This will add advanced elements to the core system and requires the core part. #####
#####################################################################################################
api:
services:
##### Service to play a rtttl tones #####
# Example tones : https://codebender.cc/sketch:109888#RTTTL%20Songs.ino
- service: play_rtttl
variables:
song_str: string
then:
- rtttl.play:
rtttl: !lambda 'return song_str;'
button:
##### EXIT REPARSE TFT DISPLAY #####
- name: ${device_name} Exit reparse

View File

@@ -7,7 +7,7 @@
substitutions:
##### DON'T CHANGE THIS #####
version: "4.1"
version: "4.1.1"
#############################
##### ESPHOME CONFIGURATION #####
@@ -172,6 +172,15 @@ api:
then:
- lambda: set_component_color->execute(component, foreground, background);
##### Service to play a rtttl tones #####
# Example tones : https://codebender.cc/sketch:109888#RTTTL%20Songs.ino
- service: play_rtttl
variables:
song_str: string
then:
- rtttl.play:
rtttl: !lambda 'return song_str;'
#### Service to populate the alarm settings page #####
- service: alarm_settings
variables: