This is a Home Assistant integration using Mosquitto Broker to control the Logitech Z906.
Thank you zarpli
I want to thank zarpli for creating the Logitech-Z906 repo that made this integration possible. Please follow his tutorial to connect the ESP32 to the speaker.
Currently this is a very rough sketch and the only things currently working are the volume control on all speakers (main, rear, subwoofer, center) and powering on and off the system. I will also be improving the code a lot more. (I'm not a C++ developer, I do web stuff haha)
For some reason my speaker set is a newer version or some sort as I could not read the version number or the status of the device trough the repo of zarpli. I did receive data but was unable to uncypher it. I'm not certain if I'm able to uncypher this. If not, all the help would be appreciated
- Automatic shutdown
- Reading and showing version
- Reading and showing current volume (main, rear, center sub)
- Reading and showing current input
- Reading and showing current effect
- Reading and showing power up time
- Muting/Unmuting
- Read the wiring information on Logitech-Z906 and connect it to your
ESP32
. The only wires u need isGND
,TX
andRX
. ConnectTX
topin 17
andRX
topin 16
. I also included aNPN BC548
to turn off and on the device withpin 15
on theDE-15
connector. This is connected topin 32
on myESP32
. I do recommend doing this, else the speaker is turned on 24/7 and could damage it. (Wiring diagram coming soon) - Download the pubsubclient repo as a zip file.
- Open
Arduino IDE
and go toSketch
->Include Library
->Add .ZIP Library...
and import both theZ906.zip
(included in this repo), and the clonedpubsubclient-master.zip
. - Upload your code and it should work!
If you have any questions, feel free to add me on Discord BreadJS#0813
or open an issue!