Art-of-WiFi / UniFi-API-client

A PHP API client class to interact with Ubiquiti's UniFi Controller API
MIT License
1.09k stars 217 forks source link

Statistics returning 0 in 6.1.71 #112

Closed alfo closed 2 years ago

alfo commented 3 years ago

The following two API calls have started to report 0 for wan-tx_bytes and wan-rx_bytes on all days at all times, despite the fact that devices on my network are definitely still communicating with the internet:

$unifi_connection->stat_5minutes_site();
$unifi_connection->stat_daily_site();

This is on controller version 6.1.71 on a DMP with firmware 1.9.3. Any tips to get these working again?

malle-pietje commented 3 years ago

I'm afraid I don't have a UDM PRO with a live site behind here to test. Have you checked with the API Browser tool to see what it returns?

alfo commented 3 years ago

Yeah unfortunately the API browser is also reporting 0 for those numbers. This may be an issue since updating to 6.1.x, although I can't say for sure as I just know it's stopped working at some point between last year and this year, the last time I had my project running.