Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add switches and AP's as sensor #9

Open
renedis opened this issue May 29, 2019 · 4 comments
Open

Add switches and AP's as sensor #9

renedis opened this issue May 29, 2019 · 4 comments

Comments

@renedis
Copy link

renedis commented May 29, 2019

Request here.

The UniFi API provides al metrics/sensors (even DPI info!). I've searched in the API using the https://github.com/Art-of-WiFi/UniFi-API-browser and found out that also switches and AP's show there CPU usage, CPU load 1|5|15, Memory usage, Uptime, Temperature etcetera.

It would be nice if these are added to this plugin.

Examples:

WIFI:

        "sys_stats": {
            "loadavg_1": "0.32",
            "loadavg_15": "0.11",
            "loadavg_5": "0.17",
            "mem_buffer": 0,
            "mem_total": 128360448,
            "mem_used": 72962048
        },
        "system-stats": {
            "cpu": "2.7",
            "mem": "56.8",
            "uptime": "1011227"
        },

Switch (with temperature):

        "sys_stats": {
            "loadavg_1": "1.24",
            "loadavg_15": "1.61",
            "loadavg_5": "1.48",
            "mem_buffer": 0,
            "mem_total": 262397952,
            "mem_used": 129912832
        },
        "system-stats": {
            "cpu": "57.4",
            "mem": "49.5",
            "uptime": "431015"
        },
        "ssh_session_table": [],
        "fan_level": 0,
        "general_temperature": 62,
        "overheating": false,
@jchasey
Copy link
Collaborator

jchasey commented Jun 14, 2019

Agreed this info is there, but this component is focussed on the USG as opposed to those other devices. The question would become where to stop in terms of adding all the extra info...

@ciechompl
Copy link

I would kile to have the same as @renedis ;-) quick vie on the CPU&MEM each unifi device.
Very useful information and even if you @jchasey say that this component is focused on USG , please please please add this info for us :)
Can be done as separate "system-stats" sensor listing in attributes all unifi devices of even under usg or in any other place you like.

@arjones5
Copy link

I'm jumping on the bandwagon - this is an awesome app for the USG. As a dev IRL, @jchasey has a point...where do you draw the line between a USG app and a UniFi Controller pseudo interface? Playing devil's advocate, been messing with the code to get some of the other metrics I need and we can probably spin this into a UniFi sensor. My switched run hot (like I'm sure everyone elses do) and it's be nice to just dump the info into lovelace instead of taking the 5 seconds to log into the controller.

@JamesMarcum
Copy link

https://github.com/w1tw0lf/Unifi-Device-info might solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants