If / when you find the trouble at the headlight switch, and if the ignition switch is still low, "it's simple." You need a load on the switch, heater, ignition, signals, something. With that load, check the switch "coming in" and "going out" Should be obvious if the switch is at fault.