In this paper, we consider deployment of energy consumption scheduling (ECS) devices in smart meters for autonomous demand side management within a neighborhood, where several buildings share an energy source. The ECS devices are assumed to be built inside smart meters and to be connected to not only the power grid, but also to a local area network which is essential for handling two-way communications in a smart grid infrastructure. They interact automatically by running a distributed algorithm to find the optimal energy consumption schedule for each subscriber, with an aim at reducing the total energy cost as well as the peak-to-average-ratio (PAR) in load demand in the system. Incentives are also provided for the subscribers to actually use the ECS devices via a novel pricing model, derived from a game-theoretic analysis. Simulation results confirm that our proposed distributed algorithm significantly reduces the PAR and the total cost in the system.