Here's some pictures of the current setup.
After talking to a friend, the thought was that the brown wire is live and should therefore be connected to 'A' on the THR870C and the black wire that's attached to terminal 2 currently should go to 'B' on the THR870C.
If that's right the loose...