good point, although the relay modules I use already have the diode built in, I also used an optoisolator but this will also need a diode (unless its an opto-triac)
I'll have to ammend that diagram soon and post it here, I built the circuit and modified it to suit, works well.