The most sensible of the suggestions here, however, with 240k input and the threshold at say 12v for reliable detection of 24v it only takes a couple of hundred pF coupling from a line carrying 560v to turn it on.
A 25:1 input range is over the top really. If I was monitoring a 560v ac line I wouldn't expect to be told it was active when there was only 24v ac on it.
I think it need some 'ranges'. Resistor links or options or whatever on the live side would make the job easier but it could be done with adjustable thresholds on the isolated side.