Use a capacitive dropper to convert the input voltage and frequency into a constant current source, and use that trigger an output optocoupler. Then count the pulses per second to compute the input voltage
link to simulation
This gives an output of about 15Hz on 120Vrms@60Hz, 24Hz on 208Vrms@60Hz and 30Hz on 240Vrms@60Hz
Note that the output can also been seen as 8 half cycles between interrupts at 120Vrms, 5 half cycles between interrupts at 208Vrms, and 4 half cycles between interrupts at 230Vrms. The circuit relies on the fact that the capacitive dropper stops supplying current in the peaks to break the latch
Math
Every cycle, the input voltage goes from 0, to Vpeak, to 0, to -Vpeak
In these cycles, the input 22nF capacitor gets charged and discharged.
This generates pules of current though the birdge rectifier and charges the 4.7uF capacitor
Lets assume our input voltage is 240Vrms at 60Hz, this makes the reactance of the 22nF capacitor about 120.572 kOhm, we have to add our inrush resistor to this to get 120.582 kOhm of "input resistance", We have to subtract 1V from our input voltage for the bridge rectifier, to get (240V - 1V) / (120572ohm + 10ohm) = 0.001899A = 1.899mA
Using the capacitor charge formula of "dV = I dT / C", we can calculate the time it takes to reach our trigger point, which can even be low 11V as most zener diodes have a smooth curve (we an make a more perfect circuit using a more precise voltage reference).
11V = 0.001899A * dT / 0.0000047 ==> dT = 0.0272249sec (36.7310807386Hz)
This value seems to low/high for the previous measurement of 0.03333 sec (30Hz). This is caused by the fact that this is only the time for the capacitor to charge to the trigger level, and once the PNP+NPN transistor is latched, it keeps being lathed until the base voltage on the NPN drops below 0.5, which happens below 1mA input current (every vPeak crossing). This means the circuit is limited to 1 pulse every 0.0083333333 sec (120Hz)
The 240Vrms takes 4 of these "mains half cycles", which is 0.333sec, as 3 half cycles only take up 0.025sec, which is barely below the trigger treshold
One advantage of measuring the time in half cycles, is that the whole voltage measuring process becomes frequency independent, as it still takes the same amount of time in half cycles. (and you already have a zero crossing sensor)
The total formulae becomes:
X = 240, Z = 60, Y = 0.000000022, R = 10, 0.0000517 / ((X - 1) / (1 / (2PI * Z * Y) + R))
= 0.026084 seconds per capacitor charge
X = 240, Z = 60, Y = 0.000000022, R = 10, ceil(0.0000517 / ((X - 1) / (1 / (2PI * Z * Y) + R)), 1 / Z / 2)
= 30Hz
Or in a plot form (with fixed 60 operating frequency, and fixed 10 ohm inrush resistor)