For a triac (like BT136) use an optotriac (like MOC3063). You find schematics in the optoriac datasheet.