Have you upgraded your software since July 2024? That version added SNMP support.
https://community.ui.com/releases/UniFi-OS-Cloud-Gateways-4-0-6/6dfaa8b2-eb9b-4e85-899a-fc04af7d15b7
Have you upgraded your software since July 2024? That version added SNMP support.
https://community.ui.com/releases/UniFi-OS-Cloud-Gateways-4-0-6/6dfaa8b2-eb9b-4e85-899a-fc04af7d15b7
I do can confirm that my devices are up to date to the latest versions. So you suggest using SMTP rather then the Unifi application itself?
It looked like you were responding to my post, and I’m using SNMP.
(SMTP is an email protocol.)
I tried your suggested OID objects on my UCG-Ultra but it seems to be not the correct OID for the WAN Port. You might have suggestions to find the correct one?
Cheers
Hi - I have a Unifi Cloud Gateway, and have set up the Integration with full network privileges. I want to be able to monitor bandwidth, however the instructions I read say the setting to enable this is on page 3 of configuration, but after hitting submit I am not getting a page 2 or 3, I just get “Success - options successfully saved” Apologies if I am missing something simple here - appreciate if someone can point me the right way.
How did you monitored this? I’m on a macOS device and there is not really a good MIB browser with live capturing
The tool I used before seems to have been compromised and since it’s a network-related tool, alternative downloads might contain malware. I’m not going to mention the tool’s name. The vendor’s website seems hacked and abandoned. There doesn’t seem readibly (and reliable) free MIB browsers with charting abilities. You could always try a free trial.
A simple alternative is to use any SNMP walk utility (command line will do) to take a snapshot of the OIDs for specific network interfaces before and after running a speed test.
As a first choice, you can pretty accurately establish which ethernet port (OID) to pick before running the speed test.
Figured out my answer by checking the code - you need home assistant advanced mode switched on to see the multi page configuration options including enabling bandwidth sensors.
I already had been in Advanced Mode but where not able to see a multi page config.
just to be clear - should I see my UCG (or any of my other unifi devices for that matter) on this list?
because I don’t. I’ve looked for the name, IP and MAC of my UCG’s LAN interface and it doesn’t appear, so I can’t configure it to get the bandwidth stats across the whole device. Am I missing something dumb here, or should that device be showing up?
Realised I can just skip through those first couple of modals ![]()
So im trying your stuff @parautenbach , ive done a snmp walk on my UCG-Fiber
Blockquote
iso.3.6.1.2.1.2.2.1.2.1 = STRING: “lo”
iso.3.6.1.2.1.2.2.1.2.2 = STRING: “dummy0”
iso.3.6.1.2.1.2.2.1.2.3 = STRING: “miireg”
iso.3.6.1.2.1.2.2.1.2.4 = STRING: “switch0”
iso.3.6.1.2.1.2.2.1.2.5 = STRING: “eth6”
iso.3.6.1.2.1.2.2.1.2.6 = STRING: “eth5”
iso.3.6.1.2.1.2.2.1.2.7 = STRING: “bond0”
iso.3.6.1.2.1.2.2.1.2.8 = STRING: “ifb0”
iso.3.6.1.2.1.2.2.1.2.9 = STRING: “ifb1”
iso.3.6.1.2.1.2.2.1.2.10 = STRING: “eth0”
iso.3.6.1.2.1.2.2.1.2.11 = STRING: “eth1”
iso.3.6.1.2.1.2.2.1.2.12 = STRING: “eth2”
iso.3.6.1.2.1.2.2.1.2.13 = STRING: “eth3”
iso.3.6.1.2.1.2.2.1.2.14 = STRING: “eth4”
iso.3.6.1.2.1.2.2.1.2.15 = STRING: “eth4.6”
iso.3.6.1.2.1.2.2.1.2.16 = STRING: “eth5.2”
iso.3.6.1.2.1.2.2.1.2.17 = STRING: “eth5.3”
iso.3.6.1.2.1.2.2.1.2.18 = STRING: “eth5.4”
iso.3.6.1.2.1.2.2.1.2.19 = STRING: “eth5.5”
iso.3.6.1.2.1.2.2.1.2.20 = STRING: “switch0.1”
iso.3.6.1.2.1.2.2.1.2.21 = STRING: “switch0.2”
iso.3.6.1.2.1.2.2.1.2.22 = STRING: “switch0.3”
iso.3.6.1.2.1.2.2.1.2.23 = STRING: “switch0.4”
iso.3.6.1.2.1.2.2.1.2.24 = STRING: “switch0.5”
iso.3.6.1.2.1.2.2.1.2.25 = STRING: “br0”
iso.3.6.1.2.1.2.2.1.2.26 = STRING: “br2”
iso.3.6.1.2.1.2.2.1.2.27 = STRING: “br3”
iso.3.6.1.2.1.2.2.1.2.28 = STRING: “br4”
iso.3.6.1.2.1.2.2.1.2.29 = STRING: “br5”
iso.3.6.1.2.1.2.2.1.2.30 = STRING: “wgsrv1”
iso.3.6.1.2.1.2.2.1.2.31 = STRING: “iptv”
iso.3.6.1.2.1.2.2.1.2.32 = STRING: “ppp0”
iso.3.6.1.2.1.2.2.1.2.34 = STRING: “tun1”
iso.3.6.1.2.1.2.2.1.2.36 = STRING: “wgsts1001”
iso.3.6.1.2.1.2.2.1.2.37 = STRING: “wgsts1002”
My ISP comes in on eth4 with vlan 6 and pppoe (port 5)
So ive tried in and out octets from eth4, eth4.6 and even ppp0
None of them seem to work with your coding? (getting no change in graph or anything)
Am i missing something?
Try an SNMP tool to check if the values are changing while doing a speed test or a modest download of sorts. We first need to confirm that you have valid data and for which OID.
It seems that ppp works. ill circle back ![]()
Edit:
it does
After bunch of trial and error, I got below sensors working for UCG Fiber:
sensor:
- platform: snmp
name: "lo InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.1
scan_interval: 10
- platform: snmp
name: "lo OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.1
scan_interval: 10
- platform: snmp
name: "dummy0 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.2
scan_interval: 10
- platform: snmp
name: "dummy0 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.2
scan_interval: 10
- platform: snmp
name: "miireg InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.3
scan_interval: 10
- platform: snmp
name: "miireg OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.3
scan_interval: 10
- platform: snmp
name: "switch0 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.4
scan_interval: 10
- platform: snmp
name: "switch0 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.4
scan_interval: 10
- platform: snmp
name: "eth6 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.5
scan_interval: 10
- platform: snmp
name: "eth6 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.5
scan_interval: 10
- platform: snmp
name: "eth5 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.6
scan_interval: 10
- platform: snmp
name: "eth5 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.6
scan_interval: 10
- platform: snmp
name: "bond0 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.7
scan_interval: 10
- platform: snmp
name: "bond0 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.7
scan_interval: 10
- platform: snmp
name: "ifb0 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.8
scan_interval: 10
- platform: snmp
name: "ifb0 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.8
scan_interval: 10
- platform: snmp
name: "ifb1 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.9
scan_interval: 10
- platform: snmp
name: "ifb1 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.9
scan_interval: 10
- platform: snmp
name: "eth0 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.10
scan_interval: 10
- platform: snmp
name: "eth0 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.10
scan_interval: 10
- platform: snmp
name: "eth1 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.11
scan_interval: 10
- platform: snmp
name: "eth1 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.11
scan_interval: 10
- platform: snmp
name: "eth2 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.12
scan_interval: 10
- platform: snmp
name: "eth2 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.12
scan_interval: 10
- platform: snmp
name: "eth3 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.13
scan_interval: 10
- platform: snmp
name: "eth3 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.13
scan_interval: 10
- platform: snmp
name: "eth4 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.14
scan_interval: 10
- platform: snmp
name: "eth4 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.14
scan_interval: 10
- platform: snmp
name: "eth5.10 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.15
scan_interval: 10
- platform: snmp
name: "eth5.10 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.15
scan_interval: 10
- platform: snmp
name: "eth5.30 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.16
scan_interval: 10
- platform: snmp
name: "eth5.30 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.16
scan_interval: 10
- platform: snmp
name: "eth5.40 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.17
scan_interval: 10
- platform: snmp
name: "eth5.40 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.17
scan_interval: 10
- platform: snmp
name: "eth5.50 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.18
scan_interval: 10
- platform: snmp
name: "eth5.50 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.18
scan_interval: 10
- platform: snmp
name: "switch0.1 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.19
scan_interval: 10
- platform: snmp
name: "switch0.1 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.19
scan_interval: 10
- platform: snmp
name: "switch0.10 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.20
scan_interval: 10
- platform: snmp
name: "switch0.10 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.20
scan_interval: 10
- platform: snmp
name: "switch0.30 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.21
scan_interval: 10
- platform: snmp
name: "switch0.30 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.21
scan_interval: 10
- platform: snmp
name: "switch0.40 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.22
scan_interval: 10
- platform: snmp
name: "switch0.40 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.22
scan_interval: 10
- platform: snmp
name: "switch0.50 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.23
scan_interval: 10
- platform: snmp
name: "switch0.50 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.23
scan_interval: 10
- platform: snmp
name: "br0 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.24
scan_interval: 10
- platform: snmp
name: "br0 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.24
scan_interval: 10
- platform: snmp
name: "br10 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.25
scan_interval: 10
- platform: snmp
name: "br10 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.25
scan_interval: 10
- platform: snmp
name: "br30 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.26
scan_interval: 10
- platform: snmp
name: "br30 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.26
scan_interval: 10
- platform: snmp
name: "br40 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.27
scan_interval: 10
- platform: snmp
name: "br40 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.27
scan_interval: 10
- platform: snmp
name: "br50 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.28
scan_interval: 10
- platform: snmp
name: "br50 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.28
scan_interval: 10
- platform: snmp
name: "ifbppp0 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.29
scan_interval: 10
- platform: snmp
name: "ifbppp0 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.29
scan_interval: 10
- platform: snmp
name: "dnsfilter InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.30
scan_interval: 10
- platform: snmp
name: "dnsfilter OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.30
scan_interval: 10
- platform: snmp
name: "dnsfilter-0 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.32
scan_interval: 10
- platform: snmp
name: "dnsfilter-0 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.32
scan_interval: 10
- platform: snmp
name: "ppp0 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.33
scan_interval: 10
- platform: snmp
name: "ppp0 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.33
scan_interval: 10
- platform: snmp
name: "tun1 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.34
scan_interval: 10
- platform: snmp
name: "tun1 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.34
scan_interval: 10
- platform: snmp
name: "dnsfilter-1 InOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.36
scan_interval: 10
- platform: snmp
name: "dnsfilter-1 OutOctets"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.36
scan_interval: 10
- platform: snmp
name: "CPU Usage"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.4.1.41112.1.10.1.1.7.1
unit_of_measurement: "%"
value_template: "{{ value | float }}"
- platform: snmp
name: "Memory Used"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.4.1.41112.1.10.1.1.9.1
unit_of_measurement: "MB"
value_template: "{{ (value | int / 1024 / 1024) | round(1) }}"
- platform: snmp
name: "Memory Total"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.4.1.41112.1.10.1.1.10.1
unit_of_measurement: "MB"
value_template: "{{ (value | int / 1024 / 1024) | round(1) }}"
- platform: snmp
name: "Board Temperature"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.4.1.41112.1.10.1.1.8.1
unit_of_measurement: "°C"
value_template: "{{ value | float }}"
- platform: snmp
name: "System Uptime"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.1.3.0
value_template: >-
{% set ticks = value | int %}
{% set seconds = ticks // 100 %}
{% set minutes = (seconds // 60) %}
{% set hours = (minutes // 60) %}
{% set days = (hours // 24) %}
{{ days }}d {{ hours % 24 }}h {{ minutes % 60 }}m {{ seconds % 60 }}s
- platform: snmp
name: "Load Average 1min"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.4.1.2021.10.1.3.1
value_template: "{{ value | float }}"
- platform: snmp
name: "Load Average 5min"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.4.1.2021.10.1.3.2
value_template: "{{ value | float }}"
- platform: snmp
name: "Load Average 15min"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.4.1.2021.10.1.3.3
value_template: "{{ value | float }}"
# Physical Port Status Sensors (up=1, down=2, unknown=3)
- platform: snmp
name: "eth0 Status"
host: 192.168.1.1
community: public
version: 2c
baseoid: 1.3.6.1.2.1.2.2.1.8.10
value_template: >-
{% set s = value | int %}
{% if s == 1 %} up {% elif s == 2 %} down {% else %} unknown {% endif %}
- platform: snmp
name: "eth1 Status"
host: 192.168.1.1
community: public
version: 2c
baseoid: 1.3.6.1.2.1.2.2.1.8.11
value_template: >-
{% set s = value | int %}
{% if s == 1 %} up {% elif s == 2 %} down {% else %} unknown {% endif %}
- platform: snmp
name: "eth2 Status"
host: 192.168.1.1
community: public
version: 2c
baseoid: 1.3.6.1.2.1.2.2.1.8.12
value_template: >-
{% set s = value | int %}
{% if s == 1 %} up {% elif s == 2 %} down {% else %} unknown {% endif %}
- platform: snmp
name: "eth3 Status"
host: 192.168.1.1
community: public
version: 2c
baseoid: 1.3.6.1.2.1.2.2.1.8.13
value_template: >-
{% set s = value | int %}
{% if s == 1 %} up {% elif s == 2 %} down {% else %} unknown {% endif %}
- platform: snmp
name: "eth4 Status"
host: 192.168.1.1
community: public
version: 2c
baseoid: 1.3.6.1.2.1.2.2.1.8.14
value_template: >-
{% set s = value | int %}
{% if s == 1 %} up {% elif s == 2 %} down {% else %} unknown {% endif %}
- platform: snmp
name: "eth5 Status"
host: 192.168.1.1
community: public
version: 2c
baseoid: 1.3.6.1.2.1.2.2.1.8.6
value_template: >-
{% set s = value | int %}
{% if s == 1 %} up {% elif s == 2 %} down {% else %} unknown {% endif %}
- platform: snmp
name: "eth6 Status"
host: 192.168.1.1
community: public
version: 2c
baseoid: 1.3.6.1.2.1.2.2.1.8.5
value_template: >-
{% set s = value | int %}
{% if s == 1 %} up {% elif s == 2 %} down {% else %} unknown {% endif %}
# SNMP byte counters for UCG-Fiber physical interfaces
- platform: snmp
name: "eth0 RX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.10
scan_interval: 10
- platform: snmp
name: "eth0 TX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.10
scan_interval: 10
- platform: snmp
name: "eth1 RX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.11
scan_interval: 10
- platform: snmp
name: "eth1 TX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.11
scan_interval: 10
- platform: snmp
name: "eth2 RX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.12
scan_interval: 10
- platform: snmp
name: "eth2 TX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.12
scan_interval: 10
- platform: snmp
name: "eth3 RX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.13
scan_interval: 10
- platform: snmp
name: "eth3 TX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.13
scan_interval: 10
- platform: snmp
name: "eth4 RX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.14
scan_interval: 10
- platform: snmp
name: "eth4 TX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.14
scan_interval: 10
- platform: snmp
name: "eth5 RX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.6
scan_interval: 10
- platform: snmp
name: "eth5 TX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.6
scan_interval: 10
- platform: snmp
name: "eth6 RX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.10.5
scan_interval: 10
- platform: snmp
name: "eth6 TX Bytes"
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.2.2.1.16.5
scan_interval: 10
- platform: snmp
name: "ppp0 RX Bytes"
host: 192.168.1.1
community: public
version: 2c
baseoid: 1.3.6.1.2.1.2.2.1.10.31
scan_interval: 10
- platform: snmp
name: "ppp0 TX Bytes"
host: 192.168.1.1
community: public
version: 2c
baseoid: 1.3.6.1.2.1.2.2.1.16.31
scan_interval: 10
type or paste code here
My UCG ultra monitoring stopped working when UCG Ultra OS was updated to version 4.3.6 this past weekend. It is still on eth4… but the baseoid’s now end in .5 instead of .4
Mine seems to be working fine still.
My UGC Ultra SNMP config:
- platform: snmp
name: 'WAN NBN In'
unique_id: 93116c62-4d47-4a5e-a6f3-6bb7e3ae95f3
host: 10.1.1.1
baseoid: 1.3.6.1.2.1.2.2.1.10.5 # eth4 / port 5 in
community: 'public'
version: '2c'
scan_interval: 30
unit_of_measurement: GB
value_template: "{{ value|int /1000000000 }}"
- platform: snmp
name: 'WAN NBN Out'
unique_id: 258a26ed-7975-45fb-ad2c-6886c00dbf07
host: 10.1.1.1
baseoid: 1.3.6.1.2.1.2.2.1.16.5 # eth4 / port 5 out
community: 'public'
version: '2c'
scan_interval: 30
unit_of_measurement: GB
value_template: "{{ value|int /1000000000 }}"
- platform: snmp
name: 'WAN 4G In'
unique_id: 08a370ca-cc81-4085-9e6a-293333ed7fde
host: 10.1.1.1
baseoid: 1.3.6.1.2.1.2.2.1.10.12 # eth3 / port 4 in
community: 'public'
version: '2c'
scan_interval: 30
unit_of_measurement: MB
value_template: "{{ value|int /1000000 }}"
- platform: snmp
name: 'WAN 4G Out'
unique_id: ea3bfbb9-28d6-4651-8570-523d0f805065
host: 10.1.1.1
baseoid: 1.3.6.1.2.1.2.2.1.16.12 # eth3 / port 4 out
community: 'public'
version: '2c'
scan_interval: 30
unit_of_measurement: MB
value_template: "{{ value|int /1000000 }}"
Tomorrow I’ll set up some derivatives to get the data rates then I’ll probably ditch the Unifi Networks integration. Way too much overhead as this is pretty much all I use.
Hmm. Derivative of the total bytes sensor is not adequate. I was expecting less resolution (1 minute average) but not this bad:
EDIT: Fixed it. Just had to up the derivative precision (rounding):
- platform: snmp
name: 'WAN NBN In'
unique_id: 93116c62-4d47-4a5e-a6f3-6bb7e3ae95f3
host: 10.1.1.1
baseoid: 1.3.6.1.2.1.2.2.1.10.5 # eth4 / port 5 in
community: 'public'
version: '2c'
scan_interval: 30
unit_of_measurement: GB
value_template: "{{ value|int /1000000000 }}"
- platform: derivative
unique_id: 91c0ca53-9965-43e2-99d7-b0bd8420287a
name: WAN NBN RX Rate
source: sensor.wan_nbn_in
round: 6 # <- THIS
unit_time: s
Just needs a bit of scaling with a template sensor becuase the derivative sensor does not support a value_template.
Still way less data being stored. this is what the unifi tx/rx 2 second update was doing to my db in the last few days: