Thanks guys, I think you are right. I tested all three cables across the red and blacks.Only one was live so I (wrongly) concluded that this must be the sw, but the wall switch didnt turn it off, it was live all the time (this should have told me!). I guess all I've done is identify the live...