Electricity budget

Has anyone worked on a electricity budget? I would be so nice if I can throw my electricity consumers in a sort of budget pool where I can switch devices on/off based on the available electricity in the budget.