Shelly Outbound WebSocket connection

I am using Shelly Plug gen 3 in my garage which is only on internet - not home LAN where HA is. I was trying to set the shelly up by connecting it on LAN, specifying outbound websocket connection and then moving it to internet.
What happens is that in the logs I can see that aioshelly logger does really see the packets sent by this device but shelly integration does not want to communicate through the websocket connection as it’s trying to contact it on the original IP port on which it was found when first joined on LAN.
Since the communication is already there I really hope that I am doing something wrong and not just an oversight on shelly integration code.

Does anyone have any experience with setting up shellies gen 2 / 3 over internet connection?

At the moment I was able to use MQTT and manually transfer BLE scan info to mqtt as well, but it’s quite high manual work to maintain and add new devices (especially since I see that we are already 90% there with connection being established with the server).

Shelly integration works only locally - in the LAN, if the device is outside the local network it has no possibility to communicate with the HA server (Shelly integration).

What’s more, websocket outbound only applies to battery-powered devices as written in the documentation.

If you are using MQTT you can use Shellies Discovery to configure your device with HA.