My colleague got rid of her Z4 when the parking brake failed. Last straw of several problems long before we knew how to fix things like roof problems.
Brake failure not uncommon.
If it goes back to dealer and they say you pay to reprogramme say no i won't pay.
It's a design fault of a critical...
You can see 2 are not given a code, could be your code is one of those.
Been looking at my car today, but i've replaced too much wire to see the old colours.
And red/brown is used a lot on the Hall sensors to first connector and black pair if a microswitch.
Make sure the roof protector is fully...
Seems a lot of few years into manufacture cars have this problem.
Wonder if there was a batch of faulty switches fitted. My 2009 car no problems.
One poster showed a picture of a loose resistor inside the switch.
Looked like the surface mount resistor might have had a dry joint.
My Foxwell reader shows the number of cycles each actuator performs.
On mine it was unequal until one failed with a volt problem.
Then the whole lot refused to work.
Water corrosion inside one actuator.
Replaced with £30 ones off ebay.
I greased them before fitting to keep the damp out.
No...
Just find the broken wire and slice a new length.
Don't take the roof apart.
Unfortunate i lost my pictures of repairs.
Good start point is this wire diagram.
L is left par..R is the 2 right pairs.
Where the roof arms fold remove the tape and underneath are the wires.
All my cars wires broke on...
Roof again might be as simple as broken wire, every car will have that problem sooner or later.
If recent warm spell like UK, expansion of parts can throw up the broken wire problem. I see your car reads 20 degrees C. So not winter i guess!
Water in boot is a separate problem.
If bleeding one man job, i used old damper to apply pressure to the pedal braced against the seat frame.
Then open whichever nipple and close, the damper pushes down the pedal.
Still run abs purge though using the obd reader.
Then you can monitor the bubbles bleeding out yourself.
Not the body seal but the seal with stupid open foam seal under, where water gets in.
I think it's a requirement, but there you are, go by experience.
Learn the hard way.