what is a triac used for?
When used to control AC power to a load, TRIACs are often accompanied by DIACs connected in series with their gate terminals. The DIAC helps the TRIAC fire more symmetrically (more consistently from one polarity to another). Main terminals 1 and 2 on a TRIAC are not interchangeable.