Basically, make it so that you have to enter the PIN code to use the commands that have anything to do with your house, like "aleta sio" etc.
I believe that this is a QOL change. "Why?" You may ask, let's take this scenario into account, you have a very nice house with all your pokemons inside...