The lamp is usually close to bed but far from the door.
I can see both the main light and the bedside lamp operated via local network IoT, with switches both at the door and at the bedside. And possibly with ability to detect that nobody is in the room and switch off automatically (and resume state when room is entered again).