Even if you know the lights will turn on. This would only be permitted where you don’t care about the light in the fridge, for example, where the light in the room is on so you don’t need the light in the fridge to see.
To understand the reasoning behind this see, Ohr Yitzchak volume 2, Siman 166.
http://hebrewbooks.org/pdfpager.aspx?req=54963&st=&pgnum=117