Cisco IOS
This is a presence detection scanner for Cisco IOS
This device tracker needs SSH to be enabled on the router.
Before using this scanner it is recommended that you lower the ARP cache timeout on your router, as Cisco IOS normally comes with a 4 hour default ARP cache timeout.
For example, the following commands will lower the timeout to 2 minutes on Vlan1:
# 1. use this command to see what Vlan your devices are on
show ip arp
# 2. Go into configure mode
conf t
# 3. Use the Vlan name as you see it from step 1 above
interface Vlan1
# 4. Set a new arp cache timeout
arp timeout 120
# 5. Exit
# Press <ctrl+c> to exit configure mode
# 6. Don't forget to save the new config, so that it will survive a reboot
copy running-config startup-config
If you have a very large number of devices on your VLan (+1000), then you may want to adjust the ARP cache timeout to suit your needs. See this discussion
To use this device tracker in your installation, add the following to your configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] file.
在更改了configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] 文件后,重启 Home Assistant 以应用更改。 该集成现在显示在集成页面的 设置 > 设备与服务 下。其实体在集成卡片上以及实体标签上列出。
# Example configuration.yaml entry
device_tracker:
- platform: cisco_ios
host: ROUTER_IP_ADDRESS
username: YOUR_ADMIN_USERNAME
password: YOUR_ADMIN_PASSWORD
See the device tracker integration page for instructions how to configure the people to be tracked.