Is anyone controlling a DFPlayer Mini MP3 player with an ESP8266/ESP32 using ESPHome? It’s a small MP3 player board with an SD card slot that can be connected directly to a speaker and controlled via serial commands. For example, like this taken from an Arduino example:
// Play track 0013.mp3 of Dfplayer microSD
char command[] = { 0x7E, 0xFF, 0x06, 0x03, 0x00, 0x00, 0x0D, 0xFE, 0xEB, 0xEF };
There is a feature request to add support in ESPHome, but it seems like it should be possible to control using the UART bus or maybe a custom UART device using one of the Arduino libraries such as DFPlayerMini Fast.
My use case is to play pre-recorded messages like “Just a moment. I’ll be right there.” on an ESP32-cam based doorbell, triggered via an actionable Android notification.
Has anyone tackled this? Otherwise, any suggestions?
Thanks.