Skip to content

Commit

Permalink
Merge branch 'next' into current
Browse files Browse the repository at this point in the history
  • Loading branch information
j0ta29 authored May 10, 2023
2 parents b6fbd26 + f1cdacf commit 37009a4
Show file tree
Hide file tree
Showing 86 changed files with 1,913 additions and 1,097 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
-
name: Checkout source code
uses: actions/[email protected].0
uses: actions/[email protected].2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -39,7 +39,7 @@ jobs:
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: .
push: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].0
- uses: actions/[email protected].2
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v7
- uses: actions/stale@v8
with:
days-before-pr-stale: 60
days-before-pr-close: 7
Expand All @@ -35,7 +35,7 @@ jobs:
close-issues:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v7
- uses: actions/stale@v8
with:
days-before-pr-stale: -1
days-before-pr-close: -1
Expand Down
11 changes: 11 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Live HTML build",
"type": "shell",
"command": "make live-html",
"problemMatcher": []
},
]
}
28 changes: 28 additions & 0 deletions _redirects
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,31 @@

/changelog/2022.12.4.html /changelog/2022.12.0.html 301
/components/display/ili9341.html /components/display/ili9xxx.html 301
/components/sensor/mmc5063.html /components/sensor/mmc5603.html 301

/cookbook/brilliant-mirabella-genio-smart-plugs.html https://devices.esphome.io/devices/Mirabella-Genio-Wi-Fi-1-USB 301
/cookbook/zemismart-rgbw-downlights.html https://devices.esphome.io/devices/Zemismart-LED-RGBWW-Downlight 301
/cookbook/relay.html https://devices.esphome.io/devices/Generic-Relay 301
/cookbook/pir.html https://devices.esphome.io/devices/Generic-PIR 301
/cookbook/mirabella-genio-bulb.html https://devices.esphome.io/devices/Mirabella-Genio-Monochromatic-Bulbs 301
/cookbook/air_gradient_diy_air_quality_sensor.html https://devices.esphome.io/devices/AirGradient-DIY 301
/cookbook/ble_itag.html https://devices.esphome.io/devices/ble_itag 301
/cookbook/bruh.html https://devices.esphome.io/devices/bruh 301
/cookbook/esw01-eu.html https://devices.esphome.io/devices/Etekcity-Voltson-ESW01-EU 301
/cookbook/geiger-counter.html https://devices.esphome.io/devices/geiger-counter 301
/cookbook/h801.html https://devices.esphome.io/devices/H801-RGBW-LED-Controller 301
/cookbook/iaq_board.html https://devices.esphome.io/devices/iaq_board 301
/cookbook/ifan02.html https://devices.esphome.io/devices/Sonoff-iFan02 301
/cookbook/ilonda-wifi-smart-fish-feeder.html https://devices.esphome.io/devices/ilonda-wifi-smart-fish-feeder 301
/cookbook/iwoole_rgbw_table_lamp.html https://devices.esphome.io/devices/iwoole_rgbw_table_lamp 301
/cookbook/teckin_sb50.html https://devices.esphome.io/devices/Teckin-SB50_rgbww 301
/cookbook/temt6000.html https://devices.esphome.io/devices/temt6000 301
/cookbook/tracer-an.html https://devices.esphome.io/devices/epever_mptt_tracer_an 301
/cookbook/tuya_rgbw.html https://devices.esphome.io/devices/tuya_rgbw 301
/cookbook/uart_text_sensor.html /cookbook/lambda_magic.html#custom-uart-text-sensor 301
/cookbook/endstop-cover.html /components/cover/endstop.html 301
/cookbook/sonoff-light-switch.html https://devices.esphome.io/devices/Sonoff-Dual-DIY-light 301
/cookbook/sonoff-basic-light-switch.html https://devices.esphome.io/devices/Sonoff-Basic-DIY-light 301
/cookbook/sonoff-dual-light-switch.html https://devices.esphome.io/devices/Sonoff-Dual-DIY-light 301
/cookbook/sonoff-t1-3.html https://devices.esphome.io/devices/Sonoff-T1-T2-T3 301
/cookbook/dual-r2-cover.html /cookbook/lambda_magic.html#one-button-cover-control 301
Binary file modified _static/changelog-2022.12.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _static/changelog-2023.2.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _static/changelog-2023.3.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/changelog-2023.4.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
270 changes: 270 additions & 0 deletions changelog/2023.4.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@
ESPHome 2023.4.0 - 19th April 2023
==================================

.. seo::
:description: Changelog for ESPHome 2023.4.0.
:image: /_static/changelog-2023.4.0.png
:author: Jesse Hills
:author_twitter: @jesserockz

.. imgtable::
:columns: 3

Voice Assistant, components/voice_assistant, voice-assistant.svg
Microphone Core, components/microphone/index, microphone.svg
I2S Microphone, components/microphone/i2s_audio, i2s_audio.svg
MMC5603, components/sensor/mmc5603, mmc5603.jpg
KSZ8081 Ethernet, components/ethernet, ethernet.svg


Voice Assistant
---------------

This year is the Year of the Voice for Home Assistant, and ESPHome is charging ahead with this in mind.
We've added a new :doc:`/components/voice_assistant` component that allows you to use ESPHome devices as an input
for `assist <https://www.home-assistant.io/docs/assist/>`__ in Home Assistant **2023.5 or later**.

With this also comes preliminary :doc:`microphone </components/microphone/index>` support, which has been built in a way that multiple
components, like ``voice_assistant`` can request start / stop of the microphone and get the data. We
hope this leads to more interesting use cases for the microphone in the future.

Home Assistant is hosting a live stream all about the Year of the Voice - Chapter 2.

.. raw:: html

<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/Tk-pnm7FY7c"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>


Keith joins Nabu Casa
---------------------

Nabu Casa is pleased to announce that long time contributor Keith Burzinski (:ghuser:`kbx81`) is joining the
team as a full time developer to help out on ESPHome. Keith created the :doc:`/components/sprinkler`,
:doc:`/components/climate/thermostat`, a bunch of the ``ssd`` display components and a few other components
as well as fixing many bug along the way. I expect his house climate and garden area are kept well in line.

Looking forward to working with you Keith.

Release 2023.4.1 - April 24
---------------------------

- fix flip_x :esphomepr:`4727` by :ghuser:`ssieb`
- Use proper schema for delta filter :esphomepr:`4723` by :ghuser:`jesserockz`

Release 2023.4.2 - April 27
---------------------------

- I2c scan recovery reset fix :esphomepr:`4724` by :ghuser:`gcopeland`
- Debug component doesn't work on RP2040 :esphomepr:`4728` by :ghuser:`HeMan`
- Only request VA port from first client that is subscribed :esphomepr:`4747` by :ghuser:`jesserockz`
- Don't allow fingerprint_grow enroll cancellation when no enrollment started :esphomepr:`4745` by :ghuser:`itpeters`

Release 2023.4.3 - May 2
------------------------

- Fix sprinkler switch restore_mode :esphomepr:`4756` by :ghuser:`kbx81`
- Fix i2s media player on devices with no internal DAC :esphomepr:`4768` by :ghuser:`jesserockz`

Release 2023.4.4 - May 4
------------------------

- Fixes for Arduino 2.7.4 (for FastLED) :esphomepr:`4777` by :ghuser:`timn`

Breaking Changes
----------------

I²S Media Player
^^^^^^^^^^^^^^^^

With the introduction of the :doc:`/components/microphone/i2s_audio`, the media player platform has some
required breaking changes to the YAML configuration. This involves moving the ``i2s_lrclk_pin`` and
``i2s_bclk_pin`` to a new :doc:`/components/i2s_audio` component.

.. code-block:: yaml
# Before
media_player:
- platform: i2s_audio
name: ESPHome I2S Media Player
dac_type: external
i2s_lrclk_pin: GPIO33
i2s_bclk_pin: GPIO19
i2s_dout_pin: GPIO22
mode: mono
# After
i2s_audio:
i2s_lrclk_pin: GPIO33
i2s_bclk_pin: GPIO19
media_player:
- platform: i2s_audio
name: ESPHome I2S Media Player
dac_type: external
i2s_dout_pin: GPIO22
mode: mono
Default restore mode for Switches, Fans and Lights
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The default ``restore_mode`` for switches, fans and lights has been changed
from ``RESTORE_DEFAULT_OFF`` to ``ALWAYS_OFF`` with the intention that restoring values
from flash should be manually specified by a user if desired in their YAML configuration.

Number ``step``
^^^^^^^^^^^^^^^

The ``number`` components have always internally set a ``step`` required in config,
but allowed it to be not specified at all. This caused issues on the Home Assistant side
of things. This is only a breaking change for external components that have a ``number`` platform.

UART ids
^^^^^^^^

Due to ``uart0`` / ``uart1`` / ``uart2`` being defined in some of the platform code ESPHome uses,
ESPHome will now disallow these ids from being used in the config. You can simply change them to
``uart_0`` to continue using.

Full list of changes
--------------------

New Components
^^^^^^^^^^^^^^

- Added in mmc5603 code :esphomepr:`4175` by :ghuser:`benhoff` (new-integration)
- Add push to talk voice assistant :esphomepr:`4648` by :ghuser:`jesserockz` (new-integration)

Breaking Changes
^^^^^^^^^^^^^^^^

- Disallow uart0/1/2 as ids in config :esphomepr:`4446` by :ghuser:`jesserockz` (breaking-change)
- Require step to be set when calling register_number :esphomepr:`4622` by :ghuser:`jesserockz` (breaking-change)
- Fix restore :esphomepr:`4655` by :ghuser:`spacemanspiff2007` (breaking-change)

Beta Changes
^^^^^^^^^^^^

- debug component, allow without debug logging :esphomepr:`4685` by :ghuser:`jesserockz`
- Fixed dns2 for ethernet :esphomepr:`4698` by :ghuser:`HeMan`
- Add timeout to i2c write error logs :esphomepr:`4697` by :ghuser:`Szewcson`
- Add event triggers to voice_assistant :esphomepr:`4699` by :ghuser:`jesserockz`
- Call on_error if no api client connected that handles voice :esphomepr:`4709` by :ghuser:`jesserockz`
- Add ethernet powerdown (fixes esphome/issues#4420) :esphomepr:`4706` by :ghuser:`tracestep`
- Bump arduino platform version to 5.3.0 :esphomepr:`4713` by :ghuser:`jesserockz`

All changes
^^^^^^^^^^^

- Mark unique_id() virtual method as deprecated :esphomepr:`4538` by :ghuser:`oxan`
- Drop deprecated entity property base methods :esphomepr:`4539` by :ghuser:`oxan`
- Format test files :esphomepr:`4541` by :ghuser:`jesserockz`
- EntityBase: Icon string can stay in flash. :esphomepr:`4566` by :ghuser:`Fabian-Schmidt`
- Update the delta filter to be able to take a percentage change :esphomepr:`4391` by :ghuser:`TrentHouliston`
- Added missing PM_1_0 and PM_10_0 for PMS5003T and PMS5003ST :esphomepr:`4560` by :ghuser:`genestealer`
- Add an option to force SPI into software mode :esphomepr:`4556` by :ghuser:`wupeka`
- allow using a binary output for the status led :esphomepr:`4532` by :ghuser:`ssieb`
- Add option flip_x :esphomepr:`4555` by :ghuser:`rafal83`
- Bump aioesphomeapi from 13.5.0 to 13.5.1 :esphomepr:`4572` by :ghuser:`dependabot[bot]`
- Verbose output of define. :esphomepr:`4576` by :ghuser:`Fabian-Schmidt`
- Add support for ESP32 CAM 3MP and 5MP resolutions and arbitrary camera clock. :esphomepr:`4580` by :ghuser:`peterhalicky`
- Add a simple 'skip_initial' filter :esphomepr:`4582` by :ghuser:`sybrenstuvel`
- Fix outdated filter string in platformio_api :esphomepr:`4587` by :ghuser:`LordMike`
- Split test3.yaml :esphomepr:`4591` by :ghuser:`jesserockz`
- Disallow uart0/1/2 as ids in config :esphomepr:`4446` by :ghuser:`jesserockz` (breaking-change)
- Upgrade clang-format to v13 :esphomepr:`4535` by :ghuser:`oxan`
- B/W support for GooDisplay GDEY029T94 (as used on Adafruit MagTag) :esphomepr:`4222` by :ghuser:`AaronJackson`
- Fix negative sqrt root in ct_clamp_sensor.cpp :esphomepr:`4236` by :ghuser:`jerome992`
- Wrap ipv6 code a bit more :esphomepr:`4574` by :ghuser:`jesserockz`
- Remove EntityBase from sprinkler :esphomepr:`4606` by :ghuser:`jesserockz`
- Fix wrong port multiplexer name in dump GPIO function of sx1509 :esphomepr:`4592` by :ghuser:`skaldo`
- Bump zeroconf from 0.47.3 to 0.47.4 :esphomepr:`4597` by :ghuser:`dependabot[bot]`
- Bump pytest-asyncio from 0.20.3 to 0.21.0 :esphomepr:`4599` by :ghuser:`dependabot[bot]`
- Limit range on filter time period for remote_receiver :esphomepr:`4604` by :ghuser:`RoboMagus`
- add select_schema to select component :esphomepr:`4545` by :ghuser:`regevbr`
- Add ability to clear the gatt cache :esphomepr:`4621` by :ghuser:`bdraco`
- Bump actions/stale from 7 to 8 :esphomepr:`4615` by :ghuser:`dependabot[bot]`
- Require step to be set when calling register_number :esphomepr:`4622` by :ghuser:`jesserockz` (breaking-change)
- Lower range of CONF_FREQUENCY :esphomepr:`4619` by :ghuser:`berendhaan`
- Allow entity names to be set to None :esphomepr:`4607` by :ghuser:`jesserockz`
- Fix platform restriction for bme680_bsec :esphomepr:`4616` by :ghuser:`jesserockz`
- Fix EzoCommandType enum :esphomepr:`4593` by :ghuser:`alfredopironti`
- `EntityBase` Name can stay in flash. :esphomepr:`4594` by :ghuser:`Fabian-Schmidt`
- feat: Add support to unsubscribe from BLE advertisements :esphomepr:`4620` by :ghuser:`richardhopton`
- EntityBase: Move ObjectId to Flash :esphomepr:`4569` by :ghuser:`Fabian-Schmidt`
- Add workflow to sync device classes with HA dev :esphomepr:`4629` by :ghuser:`jesserockz`
- Synchronise Device Classes from Home Assistant :esphomepr:`4633` by :ghuser:`github-actions[bot]`
- Remove AUTO_LOAD from as3935 :esphomepr:`4630` by :ghuser:`jesserockz`
- Add ifdef to new bt proxy unsubscribe :esphomepr:`4634` by :ghuser:`jesserockz`
- add bluetooth mac address in dump_config() :esphomepr:`4628` by :ghuser:`felixlungu`
- Binary map bugfixes :esphomepr:`4636` by :ghuser:`kahrendt`
- entity_base avoid padding bytes. :esphomepr:`4637` by :ghuser:`Fabian-Schmidt`
- Avoid sensor padding. :esphomepr:`4638` by :ghuser:`Fabian-Schmidt`
- Support advanced UART customization :esphomepr:`4465` by :ghuser:`Fabian-Schmidt`
- Log calibration results at level INFO :esphomepr:`4240` by :ghuser:`Duckle29`
- Number step not optional :esphomepr:`4649` by :ghuser:`RoboMagus`
- VSCode / devcontainer updates :esphomepr:`4647` by :ghuser:`jesserockz`
- Retry PN532_COMMAND_VERSION_DATA on setup() (fixes esphome/issues#3823) :esphomepr:`4651` by :ghuser:`tracestep`
- Bump pylint from 2.16.4 to 2.17.2 :esphomepr:`4650` by :ghuser:`dependabot[bot]`
- Bump black from 23.1.0 to 23.3.0 :esphomepr:`4635` by :ghuser:`dependabot[bot]`
- Added in mmc5603 code :esphomepr:`4175` by :ghuser:`benhoff` (new-integration)
- fix compilation with latest esp-idf :esphomepr:`4671` by :ghuser:`Mic92`
- Bump zeroconf from 0.47.4 to 0.56.0 :esphomepr:`4674` by :ghuser:`dependabot[bot]`
- Bump pytest from 7.2.2 to 7.3.0 :esphomepr:`4673` by :ghuser:`dependabot[bot]`
- Add push to talk voice assistant :esphomepr:`4648` by :ghuser:`jesserockz` (new-integration)
- Fix ESP32 SPI hardware assignment in Arduino fw :esphomepr:`4669` by :ghuser:`kbx81`
- Fix some NFC/PN532 crashes :esphomepr:`4678` by :ghuser:`kbx81`
- Add support for SSD1306 72x40 displays :esphomepr:`4659` by :ghuser:`johnsto`
- Fix pin schema for i2s microphone :esphomepr:`4680` by :ghuser:`jesserockz`
- Fix BedJet setup priority [fixes esphome/issues#3807] :esphomepr:`4677` by :ghuser:`jhansche`
- Add always trigger stop :esphomepr:`4249` by :ghuser:`X-Ryl669`
- Fix graph limits for negative values and other corner cases :esphomepr:`4253` by :ghuser:`unhold`
- Fix cut-off on 2.13" waveshare/ttgo epaper displays :esphomepr:`4255` by :ghuser:`unhold`
- [Ethernet] Add PHY KSZ8081 support :esphomepr:`4668` by :ghuser:`Fabian-Schmidt`
- Fix restore :esphomepr:`4655` by :ghuser:`spacemanspiff2007` (breaking-change)
- debug component, allow without debug logging :esphomepr:`4685` by :ghuser:`jesserockz`
- Fixed dns2 for ethernet :esphomepr:`4698` by :ghuser:`HeMan`
- Add timeout to i2c write error logs :esphomepr:`4697` by :ghuser:`Szewcson`
- Add event triggers to voice_assistant :esphomepr:`4699` by :ghuser:`jesserockz`
- Call on_error if no api client connected that handles voice :esphomepr:`4709` by :ghuser:`jesserockz`
- Add ethernet powerdown (fixes esphome/issues#4420) :esphomepr:`4706` by :ghuser:`tracestep`
- Bump arduino platform version to 5.3.0 :esphomepr:`4713` by :ghuser:`jesserockz`

Past Changelogs
---------------

- :doc:`2023.3.0`
- :doc:`2023.2.0`
- :doc:`2022.12.0`
- :doc:`2022.11.0`
- :doc:`2022.10.0`
- :doc:`2022.9.0`
- :doc:`2022.8.0`
- :doc:`2022.6.0`
- :doc:`2022.5.0`
- :doc:`2022.4.0`
- :doc:`2022.3.0`
- :doc:`2022.2.0`
- :doc:`2022.1.0`
- :doc:`2021.12.0`
- :doc:`2021.11.0`
- :doc:`2021.10.0`
- :doc:`2021.9.0`
- :doc:`2021.8.0`
- :doc:`v1.20.0`
- :doc:`v1.19.0`
- :doc:`v1.18.0`
- :doc:`v1.17.0`
- :doc:`v1.16.0`
- :doc:`v1.15.0`
- :doc:`v1.14.0`
- :doc:`v1.13.0`
- :doc:`v1.12.0`
- :doc:`v1.11.0`
- :doc:`v1.10.0`
- :doc:`v1.9.0`
- :doc:`v1.8.0`
- :doc:`v1.7.0`
2 changes: 1 addition & 1 deletion changelog/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Changelog
=========

.. redirect::
:url: /changelog/2023.3.0.html
:url: /changelog/2023.4.0.html

.. toctree::
:glob:
Expand Down
Loading

0 comments on commit 37009a4

Please sign in to comment.