After falling for the common mistake of putting all the black wires together I followed this to the letter:
http://www.diynot.com/wiki/electrics:blackswlive
I replaced the dimmer switch with an old normal switch and it now works but the other ceiling lights that I presume were on the same...