What is the grey wire dangling from my ceiling?
You need a multimeter, in voltage measuring mode.

And please post pictures of the overhead and two wall junction boxes.

Without further information, most likely Brown is hot for fan, Black is hot for lighting, and Grey is wired through some dimmer you haven't yet discovered, or neglected to mention you had.