After shutting my TV off (Sony XBR) it turns back on again, I turn it off and it'll turn back on again and finally it'll stay off this is very frustrating and kind of spooky too!
This is a Roku support community. Is there a Roku involved here somewhere?
Mine does the same at times. Sony TV and Sony rec/Amp along with a ROKU ultra. I haven't had time to troubleshoot yet but I'm thinking because of the HDMI settings on ARC and with telling the ROKU and TV and the Amp to turn each other on that there is simply a conflict.
I hope this at least gets you thinking in the right vein.
On occasion I have had my Samsung TV power on in the middle of the night. My guess is it's happening when either my Roku or my Shield get's an OS update and reboots. The device is sending a CEC power up command, which turns the TV and the AVR on. It's random, so tough to tell exactly what unit is causing it.