This is an automated archive made by the Lemmit Bot.
The original was posted on /r/homeassistant by /u/Express-Dig-5715 on 2024-10-20 07:41:22+00:00.
TLDR: It works. Speaker integrated to HA, TTS can be used, music plays with no issue. 18€ per speaker!
So I been working on whole house speakers that can be used for radio, music, TTS notifications, alarms and so on.
I started by ordering DEV boards of ESP a1s, sadly seller on ali express send me wrong type (esp32 a1s module itself). Well my easy testing and development goes right through the window. Anyways, I managed to botch together some prototype that works really well with HA, LMS server and sound quite good. Will post a video about it if someone will be interested.
My goal of this setup was to have 220V (yes I’m in EU) and that’s it. At first I had PCB drawn to fit on the speaker itself, and managed to get it looking good. But there was no place for PSU. Thought about external PSU, but at that point why not to place it near the speaker, like a ballast for LED ceiling lights. So that’s what I did ,drew new PCB, version 4 already… (duh…) and implemented this hardware:
- Amp is: DY-AP3001. 30w Mono amplifier (great little class D amp)
- Main MCU is esp32 a1s with integrated i2s decoder and other funny things
- 12v 500mA psu module.
- Waggo easy plug connectors
- 3.3 buck converter
Whole speaker system, not counting 3D printed enclosure costs about 18€, give or take.
This is my findings with this “botched setup”:
- TTS works right out the box. WIFI speakers appear as media device in HA
- Speakers connected appear as per config provided in sqeezelite web config
- Volume and power of the speaker is controllable from HA and LMS
- Speaker exposes good entities like: Is playing, is stopped, turned off etc.
- Delay for the speaker is almost non existent
- Added HIKVISION 100v speaker and 30W 12v mini class D amplifier. Hikvision speaker was converted to 8ohm 6w speaker by simply removing transformer. Accetone was used to remove that logo… I have sneaky suspicion that it’s not 6W… Maybe at 100v it’s 6w…
- ESP32 a1s uses differential signaling, so on DY-AP3001 amp, resistor had to be changed to 1k instead of jumper 0 ohm
- Programming was done with esp8266 dev board, with removed module. Essentially there was usb to serial and power supply left.
- I had 8 hours of headache where squeezelite web UI asked to provide me with IP of LMS, it shows format like this: ip address [:port]. Guess what… No port is needed. 8 hours of pointless firewall checking, multiple lms servers installing and resoldering.
Hikvision speaker used. 100v system 6W LOW profile
If there are any suggestions, please place those in the comments. Will update my post when I will have PCB on hand and two speakers working together. :)