To be classed as a resident landlord, you must:
use the property as your only or main home (if you only stay in the property occasionally and have another home elsewhere, you won't count as a resident landlord), and
have direct access from your accommodation to the lodger’s (for example, a landlord living in a separate flat in the same building as their lodger won't count as a resident landlord; a landlord who has separate rooms in the same house as the lodger will)