Story
Here you can see how my device looks and works live: https://youtu.be/iKge7Efg3Uw
At home I use four sources of sound: CD player, Allo DigiOne Player on RP4 that hosts O!MPD and Logitech Media servers for flac and mp3 files, TV and PC. And I listen music using three receivers, i.e. an amplifier with speakers, I also transmit it with BT transmitter to a wireless headphones, or I listen music through DAC with an amp on a wired headphones. And I am not the only one music listener at home, because for example, during I'm watching TV with BT headphones, my wife plays her music from CD to speakers, etc., depending on what we feel like at the time.
For above purpose I built the SPDIF signal switch with 4 inputs and 3 outputs, it got a display, and ESP32 as the heart, and there is also a set of relays inside, that can be controled with 2 buttons on its front panel. First of them is to select a device field and to confirm a new choice, and the second one is to change device type in the selected field. It can be controled also via WiFi and the web browser by a cell the same method. The cherry on the cake is that this device supports two freely chosen and independend connection paths that work at the same time.
Although I was very pleased due the simplicity of use my device, but my wife did not like it at all, and she still remembered her old mini hi-fi system which could do less, but probably was easier to use due to many clearly described buttons...
The solution appeared when I spotted a smart touchscreen. To program it, I had to learn how to use the LVGL library and the Squarelie Studio wysiwyg editor. So I enhanced my switch with an ability to send full connection status and to receive direct commands via WiFi, and then I designed a very easy-to-use graphical interface, using real photos of my audio devices. I only needed an idea for the graphic design, and I came up with an idea to show both pairs of the currently connected devices as two shelves, on which the selected devices are placed or taken away by clicking on their photos. Finally my wife likes this new interface.