I think you are referring to the ground services bus:
When there is a crew change, the outgoing crew can leave the aircraft without completely shutting it down and ‘putting it to bed’. The ground services bus powers internal lights and power outlets, (and perhaps cargo doors and battery chargers), from the ground power unit (GPU) outside, to allow cleaning and catering staff to turn the aircraft around in the absence of a crew.
To achieve this, a ground service switch, usually located in the forward galley, is held or selected and then the ground power selector in the cockpit can be switched off. All the aircraft electricals, except those I have mentioned above are powered down, leaving the aircraft in a safe state, so not requiring the presence of a pilot in the cockpit.
Same for an Airbus.