Hayley,
It is a bit random. We didn't have any problem with the TV turning itself on before we connected the Stream Box.
I had paired them, but then disconnected the pairing and it still turned although the Stream might have still been turned on.
To stop it turning on in the middle of the night, I now double check that both are turned off before going to bed and it has not happened the last couple of days.
Alan