You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tzlocal.utils.ZoneInfoNotFoundError: 'tzlocal() does not support non-zoneinfo timezones like %s. \nPlease use a timezone in the form of Continent/City'
如果你在使用本插件接入米家设备时遇到无法登录小米账号,或者登录成功后没有出现筛选的设备和实体,请通过下面的方法排查:
配置
系统 > 日志
miot
检查报错信息/日志中是否有以下类似的内容:
Failed to establish a new connection: [Errno -2] Name does not resolve
Failed to establish a new connection: [Errno -2] Name or service not known
8.8.8.8
等,如有请修改为国内公共dns如阿里的223.5.5.5
(尤其是群晖)Failed to establish a new connection: [Errno -3] Try again
Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known
Failed to establish a new connection: [Errno 101] Network unreachable
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.io.mi.com', port=443): Read timed out. (read timeout=10)
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
配置
>系统
>修复
> 右上角三个点 >系统信息
,找到Xiaomi Miot Auto
(没有请按照下面的步骤排查),检查是否有unreach
nslookup api.io.mi.com
curl -v https://api.io.mi.com
curl -v https://account.xiaomi.com
cat /etc/resolv.conf
查看宿主机的dnsdocker exec -it homeassistant sh
进入HA容器并执行上面的命令cat /etc/resolv.conf
查看容器中的dnsreboot
宿主机之后容器内的/etc/resolv.conf
文件中dns服务器被清空tzlocal.utils.ZoneInfoNotFoundError: 'tzlocal() does not support non-zoneinfo timezones like %s. \nPlease use a timezone in the form of Continent/City'
-e TZ=Asia/Shanghai
,并检查大小写Asia/Shanghai
,所有字母大小写都必须正确,且没有Asia/Beijing
等,中国时区都是Asia/Shanghai
TZ
环境变量的值为Asia/Shanghai
,网上某些教程中让添加variable=TZ
和value=Asia/Shanghai
两个环境变量,请删除它们,这是错误的,只需添加一个TZ=Asia/Shanghai
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid'))
Unable to discover the device 192.168.xxx.yyy
Got MiioException while fetching the state: Unable to discover the device 192.168.xxx.yyy
OSError: [Errno 64] Host is down
OSError: [Errno 65] No route to host
自动模式
接入的WiFi设备,请检查日志中的IP是否和设备实际IP一致,并在集成选项勾选更新设备列表
来获取设备最新的IP。最好的解决方法还是通过路由器为设备设置固定IP本地模式
,请确保筛选设备时包含的都是WiFi设备The text was updated successfully, but these errors were encountered: