Hope someone can help me. I have an esp32-cam connected to home assistant. I want to connect a dfplayer mini to the esp32-cam module. My question is - which pins can I use for the uart tx connection? I can’t get my yaml file below to work, so can only think I have used the wrong pin to send commands to the dfplayer. I know it plays the mp3 file by manually triggering it. My yaml code is
Hi. I think the problem is that my esp32-cam doesn’t have the other uart Tx/RX pins. It looks like an AI-THINKER board and I can’t see that other uart connections are available. I guess I can’t use the UART0 connections?
I would try to use two free pins, because they said:
“Whenever possible, ESPHome will use the hardware UART unit on the processor for fast and accurate communication. When the hardware UARTs are all occupied, ESPHome will fall back to a software implementation that may not be accurate at higher baud rates.”
Thanks for help so far. The final bit now. I have configured buttons on my ios device, they show fine. However, I don’t understand how to get them to trigger playing the dfplayer mp3 file. I have tried to follow ron schaeffer’s github post but I must be doing something wrong. Can someone explain what I need to add to the automations.yaml file to then trigger the dfplayer device through my esp32.
There are several ways to play something on dfplayer, here is what I did.
On dfplayer SD (which must be formated FAT32) I have folder named mp3.
In it, I have several mp3 files named like this:
001-this_is_first.mp3
002-this_is_second.mp3
003-this_is_third.mp3
and so far.
Then, in automations and scripts I call:
Thanks for your help. I have now got the dfplayer rersponding to a service call from the developer tools by specifying file: ‘2’ to play file 2.
However, I am still doing something wrong as pressing the button on the iphone does nothing. If I look in the iphone at the notification settings and the example trigger the action_data just specifies a comment - should that be defined? If so, how?
My automations.yaml is
Is there an explanation how this should be wired and how the ESP config yaml looks like? I have the same issue and still cannot to get it working… Thank you