Have the same board and flashed it with Squeezelite and control it with LMS
GitHub - sle118/squeezelite-esp32: squeezelite ported to esp32.
Have the same board and flashed it with Squeezelite and control it with LMS
GitHub - sle118/squeezelite-esp32: squeezelite ported to esp32.
I was just coming to add that!
Thanks. This sounds like a good possible solution.
Just to clarify, assuming that by “same board” you meant the ESP32 Audio Kit (and not the Wemos D1 Mini)? Guessing so since it’s Squeezelite for ESP32, but figured I’d confirm before I dive in.
His link points to it implemented on the board you were proposing
I’m also a new owner of the ESP32 Audio Kit (i ordered just for fun). I wait untill someone have a good guide (I prefer with esphome or/and stream sound?).
Just received the ESP32-Audio-Kit. I ordered it after this post clued me in on there existence. And it peeked my interest.
Some good guides for the board:
https://forums.slimdevices.com/showthread.php?116009-Squeezelite-esp32-on-ESP32-Audio-Kit-v2-2-Rotary-Encoder-SSD1322-Screen-2-keys
And
After reading both guides. I had the board up and running in 10 min’s
Hope it helps.
When using Squeezelite on these ESP32 Audio Kits, does it show up as a media device in home assistant? I’m looking for a easy way to create a local speaker that can play the Nabu Casa TTS. Seems like they might include it in ESPHome at some point but until then I would like to find another solution.
I haven’t gotten that far yet.
However the LMS addon (GitHub - pssc/ha-addon-lms: Logitech Media Server Addon for Home Assistant) and the esp32 plugin for LMS do see the audio kit as a player. So…
Next weekend I’ll have time to play with the Squeezelite addon. (GitHub - pssc/ha-addon-squeezelite: Squeezelite Player Addon for Home Assistant, for use with a Logitech Media Server)
On a side note. After browsing the Esphome git repository, there appears to be positive movement on the audio front.
Edit: I happened upon a 3d printable encloser for the board. (GitHub - thomaspreece/ESP32-A1S_Squeezebox_Case: A 3D printable case for an ESP-A1S running Squeezebox)
Will I only need the Squeezelite firmware for the ESP32 and then the Home Assistant Squeezebox integration? I wasn’t sure if the Logitech Media Server was also needed.
Reading this Home assistant community addons : Logitech Media Server (lms) & Squeezelite Leads me to believe yes,a lms server is needed on your network. Be it from the LMS ( ̶h̶a̶s̶s̶.̶i̶o̶ ) HassOS (still forget the proper name) addon or from a LMS server setup elsewhere on your network.
That’s right.
It’s real easy to have notifications with the ESP32 audio kit!
Setup a LMS server ether by the experimental addon (it works well) or somewhere on your network. I ultimately choose to install LMS on my media server.
Then install the squeezelite-esp32 firmware (GitHub - sle118/squeezelite-esp32: ESP32 Music streaming based on Squeezelite, with support for multi-room sync, AirPlay, Bluetooth, Hardware buttons, display and more) and with the help of the howto links in the post above for the firmware on the Audio kit.
And there is is another (long) thread that has good nuggets of knowledge if you dig through it. And ask for help in that thread if needed. (ANNOUNCE: Squeezelite-ESP32 (dedicated thread))
After you have LMS up and running and the Audio kit flashed, log in to LMS and you should be able to use the Audio kit as a player by looking for it in the upper right of the LMS server page and choosing it in the drop down box:
I named my kit Testbox =)
4.Then add the Logitech Squeezebox integration to Hass. It maybe discovered all ready for you. If not, you will need to add it by hand via the:
Once added you you should see something like this within the Squeezebox integration :
Make sure you have ether:
default_config:
or media_source:
in your config.yaml. If it is you should be able to use Hass’s media browser to view your media collection.
Now lets say you have a button/device named “doorbell” and a .mp3 clip named “doorbell ring chime.mp3” in your LMS media collection. You can create an automation like:
Your done! Easy as that.
My first attempt at a tutorial. So is rough on the edges.
Hope it’s of help
Good work, but 1. and 3. are the same. (It may confuse some)
Also I think most of us still appreciate the yaml versions of autmomations.
But your automation is easy to implement from your instructions.
Was editing that as you wrote. fixed =)
I to use .yaml most of the time.
But Hey the Dev,s made it easy for anyone to add complex automation’s without knowing Yaml at all. might as well use it once in a wile.
Missing an ‘e’.
Fixed. i think.
I made ESP32 Audio Kit (Ai Thinker ESP32-A1S) working with ESPHome I2S Media Player.
Model: ESP32-A1S 2974 (DAC: ES8388)
Here is the ESPHome Yaml: ESP32 Audio Kit (Ai Thinker ESP32-A1S) - ESPHome I2S Media Player - Pastebin.com
See it here: [ESPHome] ESP32-Audio-Kit (ESP32-A1S) - YouTube
esphome:
name: esp32-audio-kit
esp32:
board: esp-wrover-kit
framework:
type: arduino
logger:
api:
password: "api-password-here"
ota:
password: "ota-password-here"
wifi:
ssid: "your-ssid-here"
password: "your-ssid-password-here"
ap:
ssid: "esp32-audio-kit Fallback Hotspot"
password: "fallback-hotspot-password-here"
captive_portal:
i2c:
sda: GPIO33
scl: GPIO32
external_components:
- source: github://pr#3552
components: [es8388]
refresh: 0s
es8388:
media_player:
- platform: i2s_audio
name: "ESP32 Audio Kit"
dac_type: external
i2s_lrclk_pin: GPIO25
i2s_dout_pin: GPIO26
i2s_bclk_pin: GPIO27
mode: stereo
mute_pin:
number: GPIO21
inverted: true
switch:
- platform: gpio
pin: GPIO21
name: "AMP Switch"
restore_mode: ALWAYS_ON
binary_sensor:
- platform: gpio
pin:
number: GPIO39
inverted: true
mode:
input: true
name: "Jack Status"
light:
- platform: binary
name: "Test LED 1"
output: light_output_1
- platform: binary
name: "Test LED 2"
output: light_output_2
output:
- id: light_output_1
platform: gpio
pin: GPIO22
inverted: true
- id: light_output_2
platform: gpio
pin: GPIO19
inverted: true
Nice, This works well
Although, I’m not sure that I have ES8388 My board marking says ESP32 Audio Kit V2.2 A210
.
I’m also able to get the Keys 1-3 working, and 4-6 is making a lot of noise! After taking a look, I see those Keys are missing capacitors compare to keys 1-3
Anyone interested, I Added these as binary_sensors:
- platform: gpio
pin:
number: GPIO036
inverted: true
name: "Key 1"
filters:
- delayed_off: 10ms
- platform: gpio
pin:
number: GPIO013
inverted: true
name: "Key 2"
filters:
- delayed_off: 10ms
- platform: gpio
pin:
number: GPIO019
inverted: true
name: "Key 3"
filters:
- delayed_off: 10ms
just bough an ESP32 Audio Kit V2.2 -for use as a notifyer /smart music player
and i am wondering how to flash squeezelite-esp32 firmware onto it
wondering if any one can tell uss what we can use to flash the firmware
i manged to get the firmware.bin files for the board(squeezelite-esp32-ESP32-A1S.32.699.master)