I checked the settings and noticed, that after a restart, most of them are set back to default, e.g. i configured its connected to TV / AVR, but when i reboot, it states only TV, which is wrong.
That's the issue that I already tried to communicate twice to you and the reason for that recommendation:
The issue is, that this manual setting will be overwritten automatically after you closed the settings dialog or reboots KODI. This seems intended by libCEC as long the auto detection works.
In my experience it's better to leave this settings at default and don't change that, although sometimes the correct addressing is displayed:
HDMI port number: 0
Connected to HDMI device: TV
Physical address (overrules HDMI port): 0
I assume thats the reason why its not working.
I will test maybe this evening or tomorrow how LE12 behaves.
Maybe it works with your configuration. IIRC it hasn't worked for my configuration to shutdown KODI via TV off in LE12. I switched to another solution and allow KODI to power off after 120 minutes in idle state.
Until now I doesn't have investigate into the deep regarding this. But I believe the partitially reset of the CEC Adapter settings, because of the auto-detection isn't the same issue. Maybe the EDID data plays a role, but TV on/off commands shouldn't depend on a correct HDMI port information. It's a global command at the HDMI net. It looks more like a timing or order issue to me.