The state is taking a retail gas and electric supplier to court over allegations of deceptive and unfair business practices.