My collection of custom components for ESPHome
There are two common ways to use the components from this repository in your ESPHome project:
- Pull the component directly from GitHub using external_components (recommended):
external_components:
- source: "github://sehraf/esphome-components@main"
components: [dew_point, ac101]Replace main with a specific tag or commit SHA if you want to pin a release.
- Copy files locally
If you prefer to include the component files directly in your ESPHome configuration folder, copy the component directory (for example dew_point) into a custom_components subfolder alongside your main ESPHome YAML. The layout should look like:
/config
/custom_components
/dew_point
dew_point.h
dew_point.cpp
your_esp_config.yaml
Then use the same sensor: configuration shown earlier.
Based on https://github.com/Yveaux/AC101
Headphone output is working, tested with media_player and speaker.
Microphone is working as well!
The AudioKit comes in three different flavours, please verify that it actually has an AC101.
The AC101 uses I²C address 0x1A while the ES3833 uses 0x10, so ESPHome should show this
[19:37:27][I][i2c.arduino:069]: Results from i2c bus scan:
[19:37:27][I][i2c.arduino:075]: Found i2c device at address 0x1A
If you see address 0x10 instead, your board uses an ES3833. Also different PINs are used!
This command streams an audio file to ESPHome using ffmpeg:
ffmpeg -re -i <some music file> -ar 16000 -f s8 udp://<ESPHome IP>:6055\?pkt_size=1024A small component that calculates the dew point from an existing temperature and humidity sensor. It publishes a sensor entity with the calculated dew point value.