Conservation and demand management code for electricity distributors