Control CEC with OSMC/KODI

Hello all I’ve been tring to send commands to my osmc with “cec-client” and it works great, I’m able to turn on my tv, turn off, change source, etc. The problem is that once I do this I lose the controls from my OSMC/Kodi to the TV, and I have to restart osmc to make it work again. Any way around this!

Thank You

Well you would need to use Kodi to sent the command. Like kodi-send --action="CECStandby"

Ok, I solved the problem by using a raspbery pi zero connected to one of the HDMI of the TV… now I can control everything and I don’t need to mess with the pi of the OSMC. The kodi actions is nice but I can’t do it all.

Thank You