Sorry, that is wrong. Nikon has used a ten-pin connector for years. The Z5 II uses TRRS headphone jack, which has three circuits. Only two are needed, and I need to know which two.
My misunderstanding. My response is right for a Z5 but incorrect for Z5II. And that is a 4 conductor phone plug instead of the more industry-standard 3 conductor plug other cameras use.
Odds are the lowest (outermost) conductor of the barrel is the common like any A/V connector and then you guess which of the 3 that remain is release. But I suspect it is a 2-stage momentary contact switch (electrically 2-pole 1-throw in a sequence) so 3 of the contacts are in play. That to allow for the half-press focus and exposure lock like my remote cord does.
Sources appear to agree. I see common is not on the sleeve as I expected but the 2nd ring. Release is tip, focus lock is 1st ring. And there is a 22 ohm resister in series for protection. I might have followed my high school electronics teacher's advice and use a signal diode in series there. That is what I did when wiring reset buttons into Commodore computers for my friends.