Using smart buildings would be a crucial step towards sustainability. Although in the literature, some research effort has focused on integration of smart buildings into power systems; the integration of fully-renewable smart buildings into fully-renewable microgrids and distribution systems has not been addressed before. In this paper, a tri-level hierarchical stochastic framework is developed for the integration of fully renewable smart buildings in fully renewable multi-microgrids (MGs) and distribution systems. The studied smart buildings have electric water heater, air conditioner, PV and battery. In the first level, the model of each smart building is separately solved to find optimal schedule of its resources and the desired electricity exchange with its corresponding MG. In the second level, each MG solves its operational planning model, considering its transactions with the connected smart buildings and finally, in the third level, distribution system operator solves its operational planning model, accepting the electricity exchange requests taken from all MGs. The proposed methodology is applied to a 69-bus 100 % renewable distribution system with 4 100 % renewable microgrids, integrated with 100 % renewable smart buildings. The results confirm the efficacy of the proposed methodology for the integration of 100 % renewable smart buildings in 100 % renewable multi-MGs. The results testify that that building-to-grid (B2G) capability decreases the operation cost of all smart buildings; the average decrease in operation cost of buildings, caused by B2G, is 38 %. The results on the studied case indicate that that the impact of batteries on operation cost of smart buildings is marginal. The results also show that the higher threshold of comfort index in smart buildings, results in their higher operation cost. The results of this research may be helpful for both smart building operators and power system operators. This research is in line with the global energy transition and decarbonisation targets as the considered smart buildings, microgrids and distribution system are fully renewable.