I see many problems with this circuit:
- This only works if there is no other connection between GND and 24V ac.
- Q1 does nothing useful and could replaced by a piece of wire
- The current is probably a bit too low for driving the optotriacs (check the datasheet, they require 5-30mA depending on the type)
- When the 24V is turned on, Q2 sees a base-emitter voltage of ~20V, but it will break down and get damaged somewhere less than 10V. Also the switching point is not defined exactly, there is probably a period when both NO and NC contacts are open or shorted.
- Using one optotriac for driving 2 triacs does not work.
- You should add a snubber circuit for the optotriac.