From 0e45d05810ca4f820c18e832def047856c8021fc Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 16 Jun 2022 15:32:17 +1200 Subject: [PATCH 1/7] Fix some release notes (#2136) --- changelog/2022.6.0.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog/2022.6.0.rst b/changelog/2022.6.0.rst index 88cf474b0..b16f89052 100644 --- a/changelog/2022.6.0.rst +++ b/changelog/2022.6.0.rst @@ -27,12 +27,12 @@ around that time. So lets hope we can make 2022.8.0 worth the wait. ESPHome can now become a media player target for Home Assistant. This allows users to buy or build ESP32 based speakers and place them around the house. -Link to `Media Players `_. +We made a small website showing you a few tested `Media Players `_ and you can +install ESPHome directly to them via the browser using ESP Web Tools. Join us in a live stream all about Audio in the Open Home! When: Thursday, June 16, at 7pm UTC / 12pm PST / 9pm CET -More info here... .. raw:: html From a1e7b16a17f006d6a5d90668d2d108149bcbfa2a Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Thu, 16 Jun 2022 09:47:02 +0200 Subject: [PATCH 2/7] Bump sphinx from 4.3.2 to 5.0.1 (#2128) --- github.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/github.py b/github.py index 98f178f77..ff405e9eb 100644 --- a/github.py +++ b/github.py @@ -137,15 +137,15 @@ class ImageTableDirective(Table): } ) - col_widths = self.get_column_widths(cols) title, messages = self.make_title() table = nodes.table() table["classes"].append("table-center") + table["classes"].append("colwidths-given") # Set up column specifications based on widths tgroup = nodes.tgroup(cols=cols) table += tgroup - tgroup.extend(nodes.colspec(colwidth=col_width) for col_width in col_widths) + tgroup.extend(nodes.colspec(colwidth=1) for _ in range(cols)) tbody = nodes.tbody() tgroup += tbody diff --git a/requirements.txt b/requirements.txt index fd427e3c5..a7f08038b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -sphinx==4.3.2 +sphinx==5.0.1 sphinx-autobuild==2021.3.14 From db4f33ee5480cedf93eebb9a847cd62c51114d0d Mon Sep 17 00:00:00 2001 From: Sergey Dudanov Date: Sat, 18 Jun 2022 09:21:48 +0400 Subject: [PATCH 3/7] 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 4/7] 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 5/7] 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 6/7] 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.* From a15796d857c67d9623894eb7e65bd9e7d0295a2f Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 20 Jun 2022 20:57:56 -0700 Subject: [PATCH 7/7] Copy and paste error There was, what I believe to be a copy and paste error carried over from the mqtt sensor which only allows numeric data. --- components/text_sensor/mqtt_subscribe.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/text_sensor/mqtt_subscribe.rst b/components/text_sensor/mqtt_subscribe.rst index b3b63660c..306955c70 100644 --- a/components/text_sensor/mqtt_subscribe.rst +++ b/components/text_sensor/mqtt_subscribe.rst @@ -23,7 +23,7 @@ Configuration variables: ------------------------ - **name** (**Required**, string): The name of the text sensor. -- **topic** (**Required**, string): The MQTT topic to listen for numeric messages. +- **topic** (**Required**, string): The MQTT topic to listen for string data. - **qos** (*Optional*, int): The MQTT QoS to subscribe with. Defaults to ``0``. - **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. - All other options from :ref:`Text Sensor `.