Current sensor for AC the ACS712 or YHDC SCT-013-000

My project consist to calculate the power that a home can consume, provided by a PV panel, Batteries and the grid. I Asked before about the sensor that I can use for the the DC part( in other topics), so i'm using ACS758 current sensors to mesure the current of the batterie and the panels, but for the AC part I found based on my rescherch that th YHDC SCT-013-000 is more used when it's come to mesure an alternitave current, and that's make me confused.
The range of current is 30A.