Help With CEC to Control TV from Pi

I’ve spent about a day trying to figure out how to get cec-client on my Pi to control my TV and can only get as far as turning it off an on.

I would like to be able to use my Echo to change the channel on the TV. So far I can get it to turn it off/on and select an HDMI source, but if I use any of the other commands on cec-o-matic nothing happens.

Has anyone been succesfully in using cec-client to do more than power on/off and select source?

Thanks,

Russell

Anyone managed to do this?

I don’t use this, but there are a number of threads on the subject - search using HDMI_CEC or HDMI CEC. (As opposed to just CEC.)

https://community.home-assistant.io/search?q=HDMI%20CEC

Thanks for the tip. I’ve been through most of those threads but can’t find anyone that has managed to do more than turn on and off the TV and switch sources. I’d really like to be able to turn on the TV and then go to a specific channel.

As far as I know HDMI-CEC is just for power and input selection in the present implementation in the pi. I could be wrong but I don’t remember anyone talking about using it to send channel changes.

Might have to do some github searching.

@russellhq You might want to have a look at http://www.cec-o-matic.com/ The site can be used to create the CEC string. It can be rather obscure but it is a place to start.

Thanks Zarthan, I’ve been through that site and tried all the codes but the only ones that work are the ones I’ve mentioned above.

Same outcome for me. With a 2016 Panasonic TV.

…and once i have changed source, I can’t get back to tv