A lot of WiFi access points and WiFi routers support the Simple Network Management Protocol (SNMP). This is a standardized method for monitoring/manageing network connected devices. SNMP uses a tree-like hierarchy where each node is an object. Many of these objects contain (live) lists of instances and metrics, like network interfaces, disks, and WiFi registrations.
This device tracker needs SNMP to be enabled on the router. It could be that you need to install the SNMP support manually.
The following OID examples pull the current MAC Address table from a router. This reflects all recent devices seen on the network. However, since devices are not removed until they time out, this is less effective for device tracker component page than desirable. It is recommended to use Ping or Nmap instead.
|Mikrotik||unknown RouterOS version/model||
|Mikrotik||RouterOS 6.x on RB2011||
|Aruba||IAP325 on AOS 126.96.36.199||
|BiPAC||7800DXL Firmware 2.32e||
|OpenWrt||Chaos Calmer 15.05||
|DD-WRT||unknown RouterOS version/model||
|Apple Airport Express (2nd gen.)||7.6.9||
To use the SNMP version 1 platform in your installation, add the following to your
# Example configuration.yaml entry for SNMP version 1 device_tracker: - platform: snmp host: 192.168.1.1 community: public baseoid: 188.8.131.52.4.1.149184.108.40.206.2.1.1
If you want to use encryption, you must enable SNMP version 3 by adding
privkey variables and enabling SNMP version 3 on your router. Currently only SHA1 is supported for authentication and AES for encryption. Example of SNMPv3 configuration:
# Example configuration.yaml entry for SNMP version 3 device_tracker: - platform: snmp host: 192.168.1.1 community: USERNAME authkey: AUTHPASS privkey: PRIVPASS baseoid: 220.127.116.11.4.1.14918.104.22.168.2.1.1
(string)(Required)The IP address of the router, e.g., 192.168.1.1.
(string)(Required)The SNMP community which is set for the device. Most devices have a default community set to
publicwith read-only permission (which is sufficient).
(string)(Required)The OID prefix where wireless client registrations can be found, usually vendor specific. It’s advised to use the numerical notation. To find this base OID, check vendor documentation or check the MIB file for your device.
(string)(Inclusive)Authentication key for SNMPv3. Variable privkey must also be set.
(string)(Inclusive)Privacy key SNMPv3. Variable authkey must also be set.
See the device tracker component page for instructions how to configure the people to be tracked.