A self-contained housing unit, inclusive of sleeping, cooking and sanitary facilities on the same lot as a principal dwelling, subject to otherwise applicable dimensional and parking requirements, that: i) maintains a separate entrance, either directly from the outside or through an entry hall or corridor shared with the principal dwelling sufficient to meet the requirements of the state building code for safe egress; ii) is not larger in gross floor area than 1/2 the gross floor area of the principal dwelling or 1,000 square feet, whichever is smaller; and iii) is subject to such additional restrictions as may be imposed by a municipality, including, but not limited to, additional size restrictions and restrictions or prohibitions on short-term rental, as defined in of MGL c. 64G, § 1. An ADU shall not be considered an accessory building as defined in §
1.6 or an accessory structure as described in footnote (g) of §
5.4 of the Zoning Bylaw.