AC (230V, 50Hz) line detection using H11aa1
I did the same schematic with R1=330K 1/2w. and C1=10uF. The AC current is 0.737 mAAC.(got from amp meter).  So, the power dissipation is 230 x 0.737 = 169.51 mW( approximately). That's ok with R1 1/2w. 

If we don't have C1, this will be a zero crossing circuit. If we have C1, the voltage on pin5 is almost 0 when the AC line still alive and = Vcc when the AC line was gone.