device_tracker:
- platform: xiaomi
host: 192.168.31.1
username: admin
password: '************'
new_device_defaults:
track_new_devices : true
#If new discovered devices are tracked by default
#跟踪新设备的添加,默认true
hide_if_away: true
#设备离线是否隐藏,默认值为false
interval_seconds : 12
#Seconds between each scan for new devices
#扫描每个设备的间隔
consider_home : 180
#Seconds to wait till marking someone as not home after not being seen.
#This parameter is most useful for households with Apple iOS devices that go into sleep mode while still at home to conserve battery life.
#iPhones will occasionally drop off the network and then re-appear.
#It helps prevent false alarms in presence detection when using IP scanners such as Nmap.
#Accepts various time representations, (E.g. the following all represents 3 minutes:180,0:03,0:03:00)
#在设定秒数之后追踪不到某个设备,设置为不在家
#这个参数对于那些在家时进入睡眠模式的苹果iOS设备非常有用,以节省电池寿命。
#iPhone偶尔会脱离网络,然后重新出现。在使用IP扫描器如Nmap进行检测时有助于防止误报。
#接受各种时间表示(例如,以下代表3分钟:180,0:03,0:03:00)