If you really can’t sleep then stop your nightly edges and find other times, get to sleep earlier and you could set an alarm to wake up a bit earlier too (I know, shocking huh), or do it in the shower or bath, or claim you need ‘naps’ and go and edge during the day.
Also how about not turning your light on, or do you want to be caught? Perhaps that’s it…
Seriously though, let them catch you a couple of times and they’ll stop coming in without warning you first… even better if you cum just as they walk in, nothing you can do about it, squirming as you try to decide whether to keep rubbing or hid the fact it’s ruining right as they talk to you…