24ac signal

Does it have an indicator light you could slap a light detector on?

Failing that how about a bridge rectifier into an opto-isolator via a couple of current-limiting resistors?

There's a circuit on this page that shows detecting the zero point of a 230V AC signal. Now 24V is somewhat less than that so the resistors would be different but the concept is the same.