What's the best way of pulling statistics from unifi usg to home assistant?

Have you seen this?