Unifi Network: Retrieve WAN 1 and WAN 2 IP addresses

The integration already exposes the currently active WAN IP address, however I would like to specifically retrieve the WAN 1 and WAN 2 addresses.

I’d like to use this to power automations that rely on which ISP connection is in use, and whether either are currently available.

Would love to see this, as well as the throughput on each WAN.

Same here.
For those who still have the need, some alternatives include getting the addresses from UPnP or console SSH. I would call neither stable or elegant, but they’ll work for now.


Sadly, I’m not seeing both addresses under the UPNP integration. Just WAN1. I do see two WAN Status with different symbols, but not sure if that’s both WAN1 and WAN2 or something else.