I don't really understand the way the things works:
How connected plugs can be switch from an external device (not in the local framework)? I understand that a way is to configure personnal internet box to allow connections from outside using public ip. But I have bought a plug, and configure it as said in the documentation without to need to configure my box. I only give my wifi codes, and the pairing was automatically. And then it is enough to allows me to switch the plug from outside via application without being connected to my local network. How this is possible? how this works? Anyone could give me some useful docs about that, because I want make my own connected objects (using esp32).