I’m trying to control my samsung J Series soundbar through hdmi cec.
I have connect my rpi zero w to hdmi in and hdmi out is empty (i just need to controll sound from digital in.
Command echo scan | cec-client -s -d 1 turn me cec-client: not found, so i just put the config like this:
hdmi_cec:
devices:
1: Soundbar
i have try to turn the soundbar on, of, volume up, down through automation but nothing.
How can i find my divice address, or how my config should look like?
You should maybe try to connect the output of the sound bar to the pi, since normally the tv should provide control. Also you might need to activate it in your sound bar ounce plugged.
@touliloup You where right to plug it on output.
Thanks.
I’m trying now to find my way throuth this.
I want an input_number for volume up, down and a way to select source on the soundbar.
Is it possible?
Input_number won’t be possible, there is no way hass would know the current volume level as cec doesn’t let you access this info. You can only call volume up and volume down.
Maybe try this config first:
hdmi_cec:
platform: media_player
You should already be able to control the volume, for the source, I am not sure the cec component support this feature as of now.
Does your sound bar access internet, or your local network? If it does, chances are that the sound bar can also be controlled through the network (my old Samsung TV from 2009 support this). Samsung didn’t mention this in the user manual, I just had to add it as media player in hass.
You might want to give it a go:
I too am very interested to learn if it might be possible to control the input source of the soundbar using HDMI-CEC. Mine is the HW-F450 and is currently connected via SoundShare (I believe this is Bluetooth) to my TV (turns on/off automatically with TV) and via HDMI (using the HDMI input on the soundbar) to a Raspberry Pi. So I’d like to be able to switch between the two inputs via Home Assistant.