A method for operating at least one domestic appliance on an electric grid selected from at least two electric mains grids, wherein each mains grid comprises information relating to a consumption tariff being associated with the respective mains grid, wherein a first of the at least two mains grids is a public mains grid of a public utility company using smart metering with currently available tariff information and a second of the at least two mains grids is a decentralized mains grid associated with a building in which the at least one domestic appliance is operated, wherein the second mains grid is configured to feed electric power into the at least one public mains grid at a feed-in tariff, the method comprising the steps of:
- comparing the currently available tariff information with the feed-in tariff, and
- selecting a mains grid for supplying power to the at least one domestic appliance from the first and second mains grids based whether the first mains grid or the second mains grid has a sustainably lower consumption tariff.