Microcontroller driving a 12 VAC relay - with as few components as possible
Your circuit is working well. Only the protection diode is left, which must be bidirectional at AC voltage. The type of opto MOS relay is indifferent here. Yours is good too, only I don't have a model for it.