UniFi Integration - Sensor indicating primary and backup WAN status, including which is currently active

Is it possible for the UniFi integration to pull through the status of each of the WAN ports from a UDM-PRO (or other gateway device) to a sensor entity indicating whether they’re connected, and an attribute to show whether the interface is active.

It would be useful to have this info passed through to HA to facilitate automation of bandwidth limitations if the network has failed over to the backup WAN interface, which may have narrow bandwidth or download limits.