-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into component_climate_ir_samsung
- Loading branch information
Showing
57 changed files
with
660 additions
and
1,906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
ES7243E | ||
======= | ||
|
||
.. seo:: | ||
:description: Instructions for using ESPHome's ES7243E platform to configure microphone inputs. | ||
:image: es7243e.svg | ||
:keywords: ES7243E, Audio, ADC, I2S, ESP32 | ||
|
||
The ``es7243e`` platform allows your ESPHome devices to use the ES7243E high performance four channel audio ADC | ||
(`datasheet <https://www.lcsc.com/datasheet/lcsc_datasheet_2410121611_Everest-semi-Everest-Semiconductor-ES7243E_C2929446.pdf>`__). | ||
This allows attached microphones to be used as a microphone input via :doc:`/components/microphone/i2s_audio`. | ||
|
||
The :ref:`I²C bus <i2c>` is required in your configuration as this is used to communicate with the ES7243e. | ||
|
||
.. code-block:: yaml | ||
# Example configuration entry | ||
audio_adc: | ||
- platform: es7243e | ||
.. _config-es7243e: | ||
|
||
Configuration variables: | ||
------------------------ | ||
|
||
- **mic_gain** (*Optional*, enum): The gain applied to the ADC microphones. One of ``0DB``, ``3DB``, ``6DB``, ``9DB``, | ||
``12DB``, ``15DB``, ``18DB``, ``21DB``, ``24DB``, ``27DB``, ``30DB``, ``33DB``, ``34.5DB``, ``36DB``, or ``37.5DB``. | ||
Defaults to ``24DB``. | ||
- **address** (*Optional*, int): The I²C address of the driver. Defaults to ``0x40``. | ||
- **i2c_id** (*Optional*): The ID of the :ref:`I²C bus <i2c>` the ES7243e is connected to. | ||
- All other options from :ref:`Audio ADC <config-audio_adc>`. | ||
|
||
Automations | ||
----------- | ||
|
||
All :ref:`Audio ADC Automations <automations-audio_adc>` are supported by this platform. | ||
|
||
Configuration Examples | ||
---------------------- | ||
|
||
**ESP32 S3 Box Lite**: | ||
|
||
.. code-block:: yaml | ||
audio_adc: | ||
- platform: es7243e | ||
id: es7243e_adc | ||
i2s_audio: | ||
- id: i2s_audio_bus | ||
i2s_lrclk_pin: GPIO47 | ||
i2s_bclk_pin: GPIO17 | ||
i2s_mclk_pin: GPIO2 | ||
microphone: | ||
- platform: i2s_audio | ||
id: box_mic | ||
sample_rate: 16000 | ||
i2s_din_pin: GPIO16 | ||
bits_per_sample: 16bit | ||
adc_type: external | ||
See Also | ||
-------- | ||
|
||
- :doc:`index` | ||
- :apiref:`es7243e/es7243e.h` | ||
- :ghedit:`Edit` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Audio ADC Core | ||
============== | ||
|
||
.. seo:: | ||
:description: Instructions for using ESPHome's Audio ADC Core component. | ||
:image: i2s_audio.svg | ||
:keywords: Audio, ADC, I2S, ESP32 | ||
|
||
The `audio_adc` component allows your ESPHome devices to use audio ADC hardware components, allowing the | ||
capture/recording of audio via the microcontroller from a range of sources. | ||
|
||
.. code-block:: yaml | ||
# Example configuration entry | ||
audio_adc: | ||
- platform: ... | ||
Platforms | ||
--------- | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:glob: | ||
|
||
* | ||
|
||
.. _config-audio_adc: | ||
|
||
Configuration variables: | ||
------------------------ | ||
|
||
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. | ||
|
||
.. _automations-audio_adc: | ||
|
||
Automations | ||
----------- | ||
|
||
``audio_adc.set_mic_gain`` Action | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
This action sets the (microphone) gain of the ADC. | ||
|
||
Configuration variables: | ||
|
||
- **id** (**Required**, :ref:`config-id`): The ID of the ``audio_adc`` platform. | ||
- **mic_gain** (**Required**, percentage, :ref:`templatable <config-templatable>`): The desired gain level in decibels | ||
for the input. | ||
|
||
See Also | ||
-------- | ||
|
||
- :ghedit:`Edit` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
ES8156 | ||
====== | ||
|
||
.. seo:: | ||
:description: Instructions for using ESPHome's ES8156 audio DAC platform to play media from your devices. | ||
:image: es8156.svg | ||
:keywords: ES8156, Audio, DAC, I2S, ESP32 | ||
|
||
The ``es8156`` platform allows your ESPHome devices to use the ES8156 low power mono audio codec. | ||
This allows the playback of audio via the microcontroller from a range of sources via :doc:`/components/speaker/index` or | ||
:doc:`/components/media_player/index`. | ||
|
||
The :ref:`I²C bus <i2c>` is required in your configuration as this is used to communicate with the ES8156. | ||
|
||
.. code-block:: yaml | ||
# Example configuration entry | ||
audio_dac: | ||
- platform: es8156 | ||
.. _config-es8156: | ||
|
||
Configuration variables: | ||
------------------------ | ||
|
||
- **address** (*Optional*, int): The I²C address of the driver. Defaults to ``0x18``. | ||
- **i2c_id** (*Optional*): The ID of the :ref:`I²C bus <i2c>` the ES8156 is connected to. | ||
- All other options from :ref:`Audio DAC <config-audio_dac>`. | ||
|
||
Automations | ||
----------- | ||
|
||
All :ref:`Audio DAC Automations <automations-audio_dac>` are supported by this platform. | ||
|
||
Configuration Examples | ||
---------------------- | ||
|
||
**ESP32 S3 Box 3 Lite**: | ||
|
||
.. code-block:: yaml | ||
audio_dac: | ||
- platform: es8156 | ||
id: es8156_dac | ||
i2s_audio: | ||
- id: i2s_output | ||
i2s_lrclk_pin: GPIO47 | ||
i2s_bclk_pin: GPIO17 | ||
i2s_mclk_pin: GPIO2 | ||
speaker: | ||
- platform: i2s_audio | ||
i2s_audio_id: i2s_output | ||
id: speaker_id | ||
i2s_dout_pin: GPIO15 | ||
dac_type: external | ||
sample_rate: 16000 | ||
bits_per_sample: 16bit | ||
channel: stereo | ||
audio_dac: es8156_dac | ||
switch: | ||
- platform: gpio | ||
name: "Speaker Enable" | ||
pin: GPIO46 | ||
restore_mode: RESTORE_DEFAULT_ON | ||
See Also | ||
-------- | ||
|
||
- :doc:`index` | ||
- :apiref:`es8156/es8156.h` | ||
- :apiref:`audio_dac/audio_dac.h` | ||
- :ghedit:`Edit` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.