Each room in my house has Hue bulbs in all the light sockets, and sensors which can detect ambient light levels and motion. If I walk into a room and it's dark, the lights turn on, because I probably want to be able to see what I'm doing. When they stop detecting motion they turn off.
There's some additional complexity in rooms where its normal to occupy them for an extended period without moving about much. The bathroom has a button I can press which disable motion detection for an hour so I can have a bath without being plunged into darkness ten minutes after getting in. Some day I'll get round to replacing that with a leak sensor that picks up there being water in the bath.
The living room will ignore the motion sensor and assume it's occupied when the TV is playing media, or has it's input set to a games console, and the bedroom knows when I typically go to bed and once it detects motion around that time it doesn't turn off the lights until I tell Siri I'm going to sleep, at which point the motion sensor turns off until my alarm goes off in the morning.
Finally, the Home Assistant app is tracking when I enter and leave a geofence around my home. When I leave, everything turns off. When I get back, it turns back on again.
The end result of all this is that I don't ever really think about lighting, and because its all automated I can also use it for subconscious prompts about time of day - for the lighting in my work area shifts from a quite stark daylight tone to a much softer one at the end of the work day, while all the lighting dims itself as bedtime approaches.