Only when the whole group needs power take from the grid.
Technically, this would simply involve a ~200 amp cable down the street and one electricity meter for the group. No smartness is needed at all - electricity will always flow naturally in whatever direction saves the group the most money.
Bureaucratically, moving power from one house to another requires so much paperwork the incumbent provider will never let you do it.