Can anyone explain why this happens now if I try to validate or update via ESPHome dashboard?
INFO ESPHome 2024.10.0
INFO Reading configuration /config/esphome-web-7e1a70.yaml...
INFO Updating https://github.com/esphome/voice-kit@dev
INFO Unable to import component audio: No module named 'esphome.components.audio'
Failed config
audio: None
{}
Component not found: audio
There was a breaking change in the upstream repo. It relies on a PR that is only merged into the ESPHome dev branch. As an alternative, you can use the code in the PR as an external component:
The Nabu media player now outputs to a speaker component, not to the I2S bus directly. So try something like this (borrowed from formatBCE on Discord):
I don’t have a Respeaker device to test this on directly, so you may need to make some adjustments here or there depending on your current yaml config.
Are you noticing errors with audio out? Like the assistant tts speech output? I keep running into the issue where I only hear the last half a second of the reply (usually last few milliseconds). Which is annoying if there was an error or it didn’t understand me because I need to go to the Hass assistant config and go through the debug modals.
Same thing with audio files, I have a doorbell.mp3 and on the first play, I get the last millisecond of it, but on the 2nd+ play it works fine.
Makes me think that the output isn’t waiting for the speaker to be initialized or something, just blindly fires the audio data out.
I have tried the newer 1.0.9 firmware, and the latest code from formatBCE and I still have the same issue. It works flawlessly except for this reboot whenever it tries to play audio issue. And it is frustrating because it plays audio just fine using the seeed studio config yaml, so my device is capable of playing audio.
Is anyone else having/had this issue? To clarify, I don’t get any part of the return audio. It hard reboots immediately before playing anything.
Are you using the Kit (or another speaker) via JST connector or 3.5mm for audio output? Does it hard reboot Everytime you do a command or is it sporadic? If you can reproduce then open ESPHome and go to logs for the respeaker and post it here. Logs should clearly show it lose connection at a minimum.
It’s also never a bad step to delete the device from integration, clean build files on respeaker in ESPHome, then do new install, reboot HA and add it back. Reboot may not be needed but at that point might as well. That or clean rebuild, delete integration and reboot.
EDIT: just wanted to add that I have not had this issue and now I just jinxed myself
Strange, I have several devices on 1.0.9, no issues playing media… How do you play it? Via HA media picker? There’s trouble playing some media, it’s ongoing issue with PE software. Try playing via Music Assistant maybe?
I’ve replace my yaml with your new version and only edited it to add my ssid, password and the bit for giving a fixed IP address. Also commented out the ota: section as I was getting an error about no password.
Now when I validate it I get the following.
INFO ESPHome 2024.10.0
INFO Reading configuration /config/esphome/respeaker.yaml...
INFO Updating https://github.com/esphome/voice-kit@dev
INFO Updating https://github.com/esphome/esphome.git@pull/7605/head
Failed config
button.safe_mode: [source /config/esphome/respeaker.yaml:168]
Component button.safe_mode requires component safe_mode.
platform: safe_mode
id: button_safe_mode
name: Safe Mode Boot
I know nothing about ESPHome - just a blind copier of code.
Any help would be appreciated. Thanks.
Yes, there’s change in HA PE software that broke things. They promised to fix it tomorrow, but I also forked their repo and rolled back breaking change. But I didn’t post new YAML, pointing to my fork, sorry. Will do it in couple hours.