Controlling a AC valve solenoid using a SSR relay
Triac is not really an ideal solution for 24V/1A. It would be a relatively large loss. What I can suggest is a 2A MOSFET optocoupler.
A few mA (&lt;3) is enough to turn it on and the on resistance is low.
The symmetrical TVS provides good protection against switch-off transients.