I want to replace one half of this with longer wire, but I am not confident about the name of the connector used.
Image of JST-XH included to convey size. Ruler is metric.
micro jst 1.25 ?
That was one of the two I found in my search. The other was Molex PicoBlade. None of the pictures I saw of gave me confidence either way.
https://www.jst.com/products/category/wire-to-wire/
Probably good to check these out, maybe the XA series?
A 2-pin connector?
This isn’t an easy question https://www.mattmillman.com/info/crimpconnectors/common-jst-connector-types/
Why not just splice the wire?
Your 2nd best bet would be to get the pin spacing, and filter your search using that.
Your first best bet would be to just replace both ends.
I settled on a ‘standard’ and just bought a massive kit of each of those connector types- wire-wire, wire-board, wire-panel in M and F, in various pole counts. Buy once, cry once.