Help with CEC commands (N2)

OK, I checked the above command.

echo “tx 4F:82:10:00” | cec-client -s -d 1

I can swithc between HDMI inputs 1-2 by changing 10 and 20. So I have CEC and remote working on Kodi (HDMI2). I swithc using the above command to HDMI1 and back to 2, but sometimes I have remote, sometimes not. More often not.

What keeps working is the Activate CEC command that I can send with Yatse. But I don’t know what command is sent and how by Yatse. And if we figure this out somehow, still need to find a way to kick in the command. But maybe mapping to a not used button on the remote.