New Mexico's energy program is getting $5 million in federal stimulus money for traffic and pedestrian light retrofits at intersections throughout the state.