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).

  • Comments are not for extended discussion; this conversation has been moved to chat. – Helmar Jan 27 '20 at 21:04

After investigation, it seems that the common way to do that is to keep persistent bi-directionnal connection between plug and server, for example with MQTT as mentioned by @hardillb

Another possibility seems to be to use uPnp to map port on the internet box, but I don't know if this works always and then can be feasible for a public product.

Not the answer you're looking for? Browse other questions tagged or ask your own question.