Integrated demand-side management