Home Assistant 设备追踪之ROS路由器追踪
视频教程:
https://youtu.be/cCiBc4z6ZOc
Mikrotik ROS路由器来追踪设备在家离家状态有两种方法。
1. api追踪
路由器上操作:
/ip service
set api disabled=no port=8728
Home Assistant配置文件:
mikrotik:
- host: 192.168.88.1
username: homeassistant
password: YOUR_PASSWORD
ssl: true
arp_ping: true
method: dhcp
track_devices: true
- host: 192.168.88.2
username: homeassistant
password: YOUR_PASSWORD
ssl: true
port: 8729
method: capsman
track_devices: true
2. SNMP追踪
开启ROS SNMP IP->SNMP->Enable
device_tracker:
- platform: snmp
host: 192.168.1.1
community: public
baseoid:1.3.6.1.2.1.4.22.1.2