Only to be safe: Until now, I assumed that your TV sometimes was before the shutdown explicit set to internal tuner or app, not HDMI port 1. An you wish to prevent that this is oversteered by KODI start. I'm right? Or is there another use case, which I'm not aware of it?
Thank you. Yes, most of the time the TV is used to watch TV using the internal tuner and so it is explicitly set to TV tuner. The last chosen source before shutting down the TV will be remembered by the TV and when I power on the TV this last chosen source will be the source shown on screen. That's why it's not desired to have the TV to switch to Kodi automatically every time Kodi starts booting because of being a slave of the TV. It's fine if it runs in the background but switching active source and therefore switching the screen to Kodi on HDMI1 is not fine. If the user wants to use Kodi he should switch manually to HDMI1.
You could also check whether the TV provides reliable feedback confirming that it is the currently <Active Source> - especially in cases where, immediately after being turned on, the device is still set to its internal tuner or an app.
With the TV explicitly set to tuner before shutting down and then starting it I got phys-addr: 0.0.0.0. After switching to HDMI1 I still got phys-addr: 0.0.0.0 as I expected because the remote control wasn't working.
But now it's getting weird. Starting from my second test I always got Tx, OK, Rx, Timeout when I did the same as before and switched from tuner to HDMI1. And I don't know why but according to all following tests it seems like if I start with TV set to tuner, e.g. it was the last source before powering it off, and wait approximately 1min and switch to HDMI1 then the remote is working. cec-ctl --request-active-source still shows Tx, OK, Rx, Timeout but the remote is working.
Well if it stays like this I'm fine with it but if I remember correctly it was like that when I started with the new LE installation on my RPi5 but sometimes waiting for a minute and then changing to HDMI1 hasn't always worked reliably.
Using cec-ctl -w -M I could confirm again that the tuner is phys-addr: 0.0.0.0 and HDMI phys-addr: 1.0.0.0.