BalenaSound: HDMI CEC?

I’ve been looking for a long time for a way to utilize my home theater system as a Bluetooth streaming receiver. It drives me nuts that we use an Amazon Tap for audio streaming when we have a very nice system sitting right there unused. The issue I have, however, is that BalenaSound requires your output device (speakers/receiver/etc) to be turned on 24/7 waiting to receive an audio stream, wasting electricity (quite a bit of it for a power-hungry receiver).

Instead what I’d like to do is have BalenaSound use HDMI-CEC to turn on the receiver and switch to the appropriate input upon Bluetooth connection. Is there an out-of-the-box way to do that or am I looking at some custom coding and/or scripting?

In an ideal world, too, BalenaSound would output some kind of image via HDMI along with the audio. My receiver, at least, also will turn on the attached TV and I need to display something non-static so my plasma screen doesn’t burn in.

This made me think “Balena Chromecast”. The answer is probably “out of several boxes with some configuration”.

  1. On plain Pi, there are tutorials for Raspicast with OMXPlayer. This goes most of the way, but you need containers and programmatic control.
  2. I found a Balena GitHub project that seems to address the first step (did not test but it might speed your configuration).
  3. OMXPlayer can play files with one line. If you can get trigger that command in that container, that might be the end. You could either set up communication between the two containers, or install omxplayer in the current one.
    Good luck!

Hi there,
balenaSound does output audio via HDMI but as you points out the device needs to be powered on. You could look at using cec-client, like balenaDash does here: https://github.com/balenalabs/balena-dash/blob/master/kiosk/start.sh#L68

Having said that, since doing video in an audio streaming project is currently not our priority list, if you have any other ideas, please feel free to open issues on GitHub or contribute additions as described in this guide: https://sound.balenalabs.io/contributing/