My TV is being woken up by LibreELEC at random times. It seems it uses CEC to turn on the TV, but it's never obvious what triggers that. The only way I've found to keep it form waking up my TV during the night is to unplug the HDMI cable from the RPI. I don't want to disable the "wake TV" functionality completely, as I want it to be able to turn on the TV when casting a youtube video to Kodi.
I've tried looking at the logs when the TV turns on and at the time of a random wakeup I only see information about the CEC Adapter being enabled, which I think is the consequence of the TV having been turned on. What else could be causing that and how can I debug this?