What the Tax office looks at is "intent".
How you rent out to your relatives doesn't really matter - what does matter is whether you had intent to breach the system - they have to catch you first...but if they do and you have done something naughty...well...that's another matter. Sometimes...