Actually tested continuity and the 2 free wires are both connected somehow so maybe there is a loop.
In the upstairs thermostat backing there was different configuration.
It had grey, black and brown wire. I don't have the original set up but it seems the grey may be the odd one out and...