|
我的格式参照了群里大神写的格式,key通过安卓米家5.0获取到的。但是就是不能正常添加网关。(我的ha安装在群晖上的!)
这是.yaml的配置文件 xiaomi_aqara:
discovery_retry: 10
gateways:
- mac: 7c49eb193395
key: 12skwlydfku3pq80
host: 192.168.4.21
- mac: 7c49eb864d7a
key: sh9z9waeeghu8y4o
host: 192.168.4.22
这是ha的日志:Error during setup of component xiaomi_aqara
Traceback (most recent call last): File "/usr/src/app/homeassistant/setup.py", line 154, in _async_setup_component component.setup, hass, processed_config) # type: ignore File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/app/homeassistant/components/xiaomi_aqara/__init__.py", line 124, in setup xiaomi.discover_gateways() File "/usr/local/lib/python3.7/site-packages/xiaomi_gateway/__init__.py", line 70, in discover_gateways self._interface, gateway.get('proto')) File "/usr/local/lib/python3.7/site-packages/xiaomi_gateway/__init__.py", line 215, in __init__ if self._discover_devices(): File "/usr/local/lib/python3.7/site-packages/xiaomi_gateway/__init__.py", line 223, in _discover_devices else self._send_cmd(cmd, "discovery_rsp") File "/usr/local/lib/python3.7/site-packages/xiaomi_gateway/__init__.py", line 320, in _send_cmd resp = json.loads(data.decode()) File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.7/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx)json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 1019 (char 1018)
大家帮我看看 我到底哪里出问题了 从下午的5点弄到晚上0点 搞不出 希望群里的大神们能给予我帮助。 |
|