『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1345|回复: 1

[求助] 小米中枢网关接入hass后不可用

[复制链接]

2

主题

6

帖子

88

积分

注册会员

Rank: 2

积分
88
金钱
82
HASS币
0
发表于 2022-11-16 14:24:30 | 显示全部楼层 |阅读模式
小米中枢网关用MI miot auto接入设备,集成显示设置失败,日志如下。新手上路,求问大神如何解决!

Logger: homeassistant.config_entries
Source: util/file.py:70
First occurred: 14:16:22 (2 occurrences)
Last logged: 14:19:08

Error setting up entry Xiaomi: 2232759996 for xiaomi_miot
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/file.py", line 67, in write_utf8_file
    os.replace(tmp_filename, filename)
OSError: [Errno 22] Invalid argument: '/config/.storage/xiaomi_miot/tmpt9032v14' -> '/config/.storage/xiaomi_miot/urn:miot-spec-v2:device:gateway:0000A019:xiaomi-hub1:2.json'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/xiaomi_miot/__init__.py", line 235, in async_setup_entry
    await async_setup_xiaomi_cloud(hass, config_entry)
  File "/config/custom_components/xiaomi_miot/__init__.py", line 298, in async_setup_xiaomi_cloud
    hass.data[DOMAIN]['miot_specs'][model] = await MiotSpec.async_from_type(hass, urn)
  File "/config/custom_components/xiaomi_miot/core/miot_spec.py", line 322, in async_from_type
    await store.async_save(dat)
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 278, in _async_handle_write_data
    await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 289, in _write_data
    json_util.save_json(
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 94, in save_json
    write_utf8_file(filename, json_data, private)
  File "/usr/src/homeassistant/homeassistant/util/file.py", line 70, in write_utf8_file
    raise WriteError(error) from error
homeassistant.util.file.WriteError: [Errno 22] Invalid argument: '/config/.storage/xiaomi_miot/tmpt9032v14' -> '/config/.storage/xiaomi_miot/urn:miot-spec-v2:device:gateway:0000A019:xiaomi-hub1:2.json'


Logger: homeassistant.util.file
Source: util/file.py:67
First occurred: 14:16:22 (4 occurrences)
Last logged: 14:19:08

Saving file failed: /config/.storage/xiaomi_miot/urn:miot-spec-v2:device:gateway:0000A019:xiaomi-hub1:2.json
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/file.py", line 67, in write_utf8_file
    os.replace(tmp_filename, filename)
OSError: [Errno 22] Invalid argument: '/config/.storage/xiaomi_miot/tmpmw54edqr' -> '/config/.storage/xiaomi_miot/urn:miot-spec-v2:device:gateway:0000A019:xiaomi-hub1:2.json'




回复

使用道具 举报

0

主题

43

帖子

968

积分

高级会员

Rank: 4

积分
968
金钱
925
HASS币
0
发表于 2022-11-16 18:23:05 | 显示全部楼层
用ha还要什么中枢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 07:34 , Processed in 0.153784 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表