Hello, I’m having a problem setting up my ESP32A1S.
I flashed it via Squeezelite-ESP32 Installer
I’ve set up the board, and it’s showing up as a player, and it’s working.
I’m using a Raspberry Pi with PiCorePlayer as my LMS.
However, the board’s keys don’t work.
Can I get them in Home Assistant to control entities?
I can’t integrate the ESP into ESP Home.
All attempts to create a .yaml file have failed.
Is this even possible if it was flashed with Squeezelite?
I would prefer to be able to use the keys via automation in Home Assistant.
I’ve also tried the Button Preset add-on on my PiCorePlayer, but I can only link sounds here, or do I have to enter the commands myself? If so, which ones?
When I edit them in the NVS Editor according to these instructions, the keys have no function.
With these instructions, going Track back and forth via HA MusicAssistant has no function.
I hope someone understands my problem and can help me.
Thank you!
If you are running the squeezelite firmware, you cannot adopt them into ESPhome. Yes its an ESP32 based device, but without the ESPHome firmware, you can’t adopt them.
The buttons do not show as entities in HA and can only be set to the default actions in the thread you posted where I outlined this.
(I have sinced removed the post about using the buttons in MQTT as I no longer believe this is possible).
tbh, the buttons are pretty crappy and not really great for day to day use.
In the end I built a media player device on a touchscreen instead, which controls the squeezelite:-
You get way better control over your media, from searching, to defining playlists and favourites etc, to managing your media players with features like transferring the playlist on your currently playing media player to another one.
(For example if you want the music to follow you around the house).
It’s not possible to get other software on the ESP32A1 that can then be controlled, is it? At least I haven’t found anything.
An external display is unfortunately out of the question for me, as I would like to build a portable player with an audio board that can then also be controlled.
I also want to control it later via Music Assistant, but I was just thinking that maybe I could link the keys via the LMS.
MQTT doesn’t work either? That would have been my last attempt -_-
Then I’ll have to figure out how to link everything so that I have the functions I need.
Do you know what could be causing the music tracks to sometimes stop playing on the display with Music Assistant? The old track is still displayed, and the time continues to run. For example, a 3-minute track and the time is at 30 minutes, and several songs have played after that.
I’ve seen this issue before, infact I raised it on the github disussion forum. @OzGav is usually super responsive on any issues that are raised.
Iirc, the issue you are seeing about the ui not updating has been raised over there under this more recent thread as well:-
Its usually caused by incompatibility with the media player you are using.
It happened for me using a ‘squeezeplay’ windows port as I was trialling it before buying the esp based devices.
As for other firmware for the ESP32A1S, there are esphome based media players, but I’ve not seen anything as good as the squeezelite, which as loads of benefits like sync’d audio, compatibility with LMS / Music Assistant, and a bonus of bluetooth connectivity (although its not officially maintained, so think of it as a bonus).
A quick google search does bring up some other threads that I did look at at the time, but they were not as good, including the thread you already posted above.