From db4f33ee5480cedf93eebb9a847cd62c51114d0d Mon Sep 17 00:00:00 2001 From: Sergey Dudanov Date: Sat, 18 Jun 2022 09:21:48 +0400 Subject: [PATCH 1/4] Media Player: on_state trigger (#2142) --- components/media_player/index.rst | 61 +++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/components/media_player/index.rst b/components/media_player/index.rst index fa7a241ad..c1be77895 100644 --- a/components/media_player/index.rst +++ b/components/media_player/index.rst @@ -118,6 +118,67 @@ Configuration variables: **volume** (**Required**, percentage): The volume to set the media player to. +.. _media_player-on_state_trigger: + +``media_player.on_state`` Trigger +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +This trigger is activated each time the state of the media player is updated +(for example, if the player is stop playing audio or received some command). + +.. code-block:: yaml + + media_player: + - platform: i2s_audio # or any other platform + # ... + on_state: + - logger.log: "State updated!" + +.. _media_player-on_play_trigger: + +``media_player.on_play`` Trigger +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +This trigger is activated each time then the media player is started playing. + +.. code-block:: yaml + + media_player: + - platform: i2s_audio # or any other platform + # ... + on_play: + - logger.log: "Playback started!" + +.. _media_player-on_pause_trigger: + +``media_player.on_pause`` Trigger +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +This trigger is activated every time the media player pauses playback. + +.. code-block:: yaml + + media_player: + - platform: i2s_audio # or any other platform + # ... + on_pause: + - logger.log: "Playback paused!" + +.. _media_player-on_idle_trigger: + +``media_player.on_idle`` Trigger +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +This trigger is activated every time the media player finishes playing. + +.. code-block:: yaml + + media_player: + - platform: i2s_audio # or any other platform + # ... + on_idle: + - logger.log: "Playback finished!" + See Also -------- From 7217f151034188530c47bb3b0078ddaac3a8bd16 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Sat, 18 Jun 2022 17:25:54 +1200 Subject: [PATCH 2/4] Bump version to 2022.6.1 --- Doxygen | 2 +- Makefile | 2 +- _static/version | 2 +- conf.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Doxygen b/Doxygen index aa8b95949..5d0c0d1b3 100644 --- a/Doxygen +++ b/Doxygen @@ -38,7 +38,7 @@ PROJECT_NAME = "ESPHome" # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 2022.6.0 +PROJECT_NUMBER = 2022.6.1 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/Makefile b/Makefile index 8a9cebdd3..33b79476e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ ESPHOME_PATH = ../esphome -ESPHOME_REF = 2022.6.0 +ESPHOME_REF = 2022.6.1 .PHONY: html html-strict cleanhtml deploy help live-html Makefile netlify netlify-api api netlify-dependencies svg2png copy-svg2png minify diff --git a/_static/version b/_static/version index 1245b2d31..ecdc924e4 100644 --- a/_static/version +++ b/_static/version @@ -1 +1 @@ -2022.6.0 \ No newline at end of file +2022.6.1 \ No newline at end of file diff --git a/conf.py b/conf.py index fe8ab960a..09c41b90f 100644 --- a/conf.py +++ b/conf.py @@ -68,7 +68,7 @@ author = "ESPHome" # The short X.Y version. version = "2022.6" # The full version, including alpha/beta/rc tags. -release = "2022.6.0" +release = "2022.6.1" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. From 95a573ee1f1604c707877077088cb3419d9a8127 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Sat, 18 Jun 2022 17:26:17 +1200 Subject: [PATCH 3/4] Update changelog for 2022.6.1 --- changelog/2022.6.0.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/changelog/2022.6.0.rst b/changelog/2022.6.0.rst index b16f89052..eb3fdb6a0 100644 --- a/changelog/2022.6.0.rst +++ b/changelog/2022.6.0.rst @@ -81,6 +81,13 @@ Basically, they decided to upgrade the ``!include`` yaml "directive" to allow va Now while this is probably not the best example, the variables act as ``substitutions`` and can be used anywhere in the underlying yaml file and can very much DRY out your configurations. +Release 2022.6.1 - June 18 +-------------------------- + +- Setup the mute pin if configured :esphomepr:`3568` by :ghuser:`jesserockz` +- Bugfix for ExternalRAMAllocator copy constructor :esphomepr:`3571` by :ghuser:`bnw` +- Media Player: added triggers :esphomepr:`3576` by :ghuser:`dudanov` + Breaking Changes ---------------- From 492a1d028135e9f967e36e67509765b72af05a99 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Sat, 18 Jun 2022 17:26:51 +1200 Subject: [PATCH 4/4] Update supporters for 2022.6.1 --- guides/supporters.rst | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/guides/supporters.rst b/guides/supporters.rst index 755cd94ae..687451b2c 100644 --- a/guides/supporters.rst +++ b/guides/supporters.rst @@ -108,6 +108,7 @@ Contributors - `Branimir Lambov (@blambov) `__ - `Jim Ekman (@blejdfist) `__ - `Bob (@Bmooij) `__ +- `Benjamin Klotz (@bnw) `__ - `Mauricio Bonani (@bonanitech) `__ - `Casey Olson (@bookcasey) `__ - `BoukeHaarsma23 (@BoukeHaarsma23) `__ @@ -351,7 +352,6 @@ Contributors - `imgbot[bot] (@imgbot[bot]) `__ - `ImSorryButWho (@ImSorryButWho) `__ - `Lorenzo Ortiz (@Infinitte) `__ -- `Samir El Benna (@ingbenna) `__ - `irtimaled (@irtimaled) `__ - `Ingo Theiss (@itn3rd77) `__ - `Ivan Shvedunov (@ivan4th) `__ @@ -548,7 +548,6 @@ Contributors - `Sam Hughes (@MrEditor97) `__ - `Mariusz Kryński (@mrk-its) `__ - `Michael Davidson (@MrMDavidson) `__ -- `Ryan Matthews (@mrrsm) `__ - `MrZetor (@MrZetor) `__ - `mtl010957 (@mtl010957) `__ - `Murilo (@murilobaliego) `__ @@ -705,7 +704,6 @@ Contributors - `RubyBailey (@RubyBailey) `__ - `rweather (@rweather) `__ - `ryanalden (@ryanalden) `__ -- `Ryan Nazaretian (@ryannazaretian) `__ - `Silvio (@s1lvi0) `__ - `Jan Čermák (@sairon) `__ - `sascha lammers (@sascha432) `__ @@ -811,7 +809,6 @@ Contributors - `TVDLoewe (@TVDLoewe) `__ - `Thorsten von Eicken (@tve) `__ - `Tyler Menezes (@tylermenezes) `__ -- `ukewea (@ukewea) `__ - `Unai (@unaiur) `__ - `UT2UH (@UT2UH) `__ - `Vc (@Valcob) `__ @@ -856,4 +853,4 @@ Contributors - `Michael Labuschke (@zigman79) `__ - `Christian Zufferey (@zuzu59) `__ -*This page was last updated June 16, 2022.* +*This page was last updated June 18, 2022.*