The new law, sponsored by Rep. David A. Segal of Providence and passed by the General Assembly in June, requires electricity suppliers to use ???net metering,??? the practice of allowing customers on the electrical grid to be credited on their electricity bills for the value of electricity that they produce with generators such as solar panels or wind turbines but do not use.