I have power on Z but no power coming out of Y. Does the power from the battery go directly to the bulkhead connector and then come out of Y to feed the headlamp or does it feed the switch first and then power the lamp?
The battery feed's the switch first, then the high/low switch, then to the headlights.
There also is a power feed from the alternator. This connects at welded splice in the harness.
Power will go to the switch from either the alternator or the battery. When the car is running, its the alternator because its power is at 14+ Volts rather than 12ish volts.