Grounding problem? Or something else?

Bit of background first....
I was a little absent minded thursday night... pulled up at home after work, pretty close to reserve and backed down the driveway to park it (driveway is pretty steep slope).
Tried to start the bike again about half an hour later and to cut a long story short I ran the battery pretty flat trying to start it before realising how close I was to reserve when I parked it and that the slope it was on probably meant it wasn't getting fuel. Doofus!
Anyway, jumped it off the car friday morning - started no problem, got into work, turned it off, turned it backed on just to make sure. All good, no problem.
Started fine to go home, but about 2 minutes from home the headlight starts going dim. Bugger, I thought, battery hasn't charged properly after all. Saturday morning I have to go to the shop to pick up a new front so figure I'd get a new battery too. I managed to push start it a few times saturday morning but when it comes to picking up the battery it won't even do that and I have to jump off the car again and hope I make it to the shop.
I make it, Gibbo swaps the battery over and checks things out. 'Hey Tone, your headlight's not working and the battery's not charging for some reason'. 'Shit' I say. He turns the bike off, turns it back on - the headlight's working now and the battery's charging. 'Huh?'. He does it a few more times and it behaves ok so off I go with both of us shrugging.
I get home and the headlight's not working again. So this time I pull it all apart, washing as I go, till the bike's naked - thinking maybe a wire has slipped somewhere and is getting squished. I try the headlight out - all good. Piece by piece I put it back together, checking the headlight's working each time. All back together and all still good and I breathe a sigh of relief.
I get up for the ride this morning and check it's ok - all good. Yay! Until halfway back from the nasho I pull up behind a car and notice the light's out again. GRRRR! I get home - still not working. I wash the car as promised, start up the bike to start checking it out again - this time a bit more scientifically with a multimeter in hand - and the damn light's working again! How can I find a short/problem when the problem's gone away?
This is damn frustrating but I'm hoping someone's got any specific ideas?
To me this is looking like a ground problem or a short - but why the hell did it start when the battery was swapped? Probably going to have to get someone else to look at it but thought I'd try myself first...
ty
I was a little absent minded thursday night... pulled up at home after work, pretty close to reserve and backed down the driveway to park it (driveway is pretty steep slope).
Tried to start the bike again about half an hour later and to cut a long story short I ran the battery pretty flat trying to start it before realising how close I was to reserve when I parked it and that the slope it was on probably meant it wasn't getting fuel. Doofus!
Anyway, jumped it off the car friday morning - started no problem, got into work, turned it off, turned it backed on just to make sure. All good, no problem.
Started fine to go home, but about 2 minutes from home the headlight starts going dim. Bugger, I thought, battery hasn't charged properly after all. Saturday morning I have to go to the shop to pick up a new front so figure I'd get a new battery too. I managed to push start it a few times saturday morning but when it comes to picking up the battery it won't even do that and I have to jump off the car again and hope I make it to the shop.
I make it, Gibbo swaps the battery over and checks things out. 'Hey Tone, your headlight's not working and the battery's not charging for some reason'. 'Shit' I say. He turns the bike off, turns it back on - the headlight's working now and the battery's charging. 'Huh?'. He does it a few more times and it behaves ok so off I go with both of us shrugging.
I get home and the headlight's not working again. So this time I pull it all apart, washing as I go, till the bike's naked - thinking maybe a wire has slipped somewhere and is getting squished. I try the headlight out - all good. Piece by piece I put it back together, checking the headlight's working each time. All back together and all still good and I breathe a sigh of relief.
I get up for the ride this morning and check it's ok - all good. Yay! Until halfway back from the nasho I pull up behind a car and notice the light's out again. GRRRR! I get home - still not working. I wash the car as promised, start up the bike to start checking it out again - this time a bit more scientifically with a multimeter in hand - and the damn light's working again! How can I find a short/problem when the problem's gone away?
This is damn frustrating but I'm hoping someone's got any specific ideas?
To me this is looking like a ground problem or a short - but why the hell did it start when the battery was swapped? Probably going to have to get someone else to look at it but thought I'd try myself first...
ty