本帖最后由 ghostist 于 2019-8-21 09:07 编辑
说明:1、我是0.7X直升到0.90的,0.8X失效的问题是在gayhub上了解到的,我0.90一样问题
2、环境docker+hassio+0.90版本 路由K3 tb梅林
3、从0.7X开始,配置由
device_tracker:
- platform: asuswrt
host: xxxx
username: xxxxx
password: xxxxxx
改为了
asuswrt:
host: 192.168.50.1
protocol: ssh #telnet #ssh
port: 22 #23 #22
mode: router
username: xxxxxx
password: xxxxxxx
sensors:
- upload
- download
- upload_speed
- download_speed
0.7X的时候一切正常,到0.90后发现相关自动化经常失效
观察后发现:重启HA后暂时正常,几分钟~几小时后,asuswrt下的所有devices状态全部变为not home且不再刷新
参考
https://github.com/home-assistant/home-assistant/issues/20111
https://github.com/home-assistant/home-assistant/issues/19031
https://github.com/home-assistant/home-assistant/issues/18281
等等.....
4、(可能)解决办法
保持原来asuswrt:的配置不变,在custom_components目录下新建device_tracker,放入
https://github.com/stuartmaxwell/ha-custom_components/tree/master/device_tracker
下的myasuswrt.py(并改名asuswrt.py)
再在配置下加入:
device_tracker:
- platform: asuswrt
interval_seconds: 15
consider_home: 90
new_device_defaults:
track_new_devices: false
hide_if_away: false
重启HA
5、
|