To everyone, thank you so much for the very kind replies. Everything is now working as it should, the dimmer in the master is switching on and off perfectly, and no longer affecting the light in the second bedroom.
Thanks again to everyone, and if I may just say a “special” thank you to...