找回密码
 立即注册

扫一扫,微信登陆

搜索
楼主: mcone

[插件集成] 飞牛Nas插件v1.3.1-增加docker容器控制

[复制链接]

0

主题

19

回帖

70

积分

注册会员

积分
70
金钱
51
HASS币
0
发表于 前天 17:01 | 显示全部楼层
zjg823 发表于 2025-7-4 17:00
你之前好用的?我到现在还没成功过

之前是1.3.1版本的
回复

使用道具 举报

0

主题

19

回帖

70

积分

注册会员

积分
70
金钱
51
HASS币
0
发表于 前天 17:06 | 显示全部楼层
zjg823 发表于 2025-7-4 17:00
你之前好用的?我到现在还没成功过

刚刚连接上了 可能要多等待下 之前试了两次都不成功
回复

使用道具 举报

0

主题

11

回帖

43

积分

新手上路

积分
43
金钱
32
HASS币
0
发表于 前天 17:11 | 显示全部楼层
Raylo 发表于 2025-7-4 17:06
刚刚连接上了 可能要多等待下 之前试了两次都不成功

我就是1.3.1,,,这个错误,头大,比较菜,,那个SSH也不知道怎么弄
123123.png
回复

使用道具 举报

0

主题

11

回帖

43

积分

新手上路

积分
43
金钱
32
HASS币
0
发表于 前天 17:13 | 显示全部楼层
日志记录器: homeassistant.config_entries
来源: config_entries.py:640
首次出现: 17:03:51 (1 次总计出现)
上次记录: 17:03:51

Error setting up entry 192.168.31.201 for fn_nas
Traceback (most recent call last):
  File "/config/custom_components/fn_nas/coordinator.py", line 183, in run_command
    conn = await self.get_ssh_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/coordinator.py", line 104, in get_ssh_connection
    return await self.get_ssh_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/coordinator.py", line 104, in get_ssh_connection
    return await self.get_ssh_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/coordinator.py", line 104, in get_ssh_connection
    return await self.get_ssh_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  [Previous line repeated 972 more times]
  File "/config/custom_components/fn_nas/coordinator.py", line 103, in get_ssh_connection
    await asyncio.sleep(0.1)
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 714, in sleep
    h = loop.call_later(delay,
                        futures._set_result_unless_cancelled,
                        future, result)
  File "/usr/local/lib/python3.13/asyncio/base_events.py", line 795, in call_later
    timer = self.call_at(self.time() + delay, callback, *args,
                         context=context)
  File "/usr/local/lib/python3.13/asyncio/base_events.py", line 812, in call_at
    timer = events.TimerHandle(when, callback, args, self, context)
  File "/usr/local/lib/python3.13/asyncio/events.py", line 114, in __init__
    super().__init__(callback, args, loop, context)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/events.py", line 45, in __init__
    if self._loop.get_debug():
       ~~~~~~~~~~~~~~~~~~~~^^
RecursionError: maximum recursion depth exceeded

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/__init__.py", line 13, in async_setup_entry
    await coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 306, in async_config_entry_first_refresh
    await self._async_refresh(
        log_failures=False, raise_on_auth_failed=True, raise_on_entry_error=True
    )
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/coordinator.py", line 261, in _async_update_data
    disks = await self.disk_manager.get_disks_info()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/disk_manager.py", line 165, in get_disks_info
    await self._get_full_disk_info(disk_info, device_path)
  File "/config/custom_components/fn_nas/disk_manager.py", line 255, in _get_full_disk_info
    info_output = await self.coordinator.run_command(f"smartctl -i {device_path}")
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/coordinator.py", line 222, in run_command
    return await self.run_command(command, retries-1)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/coordinator.py", line 183, in run_command
    conn = await self.get_ssh_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/coordinator.py", line 104, in get_ssh_connection
    return await self.get_ssh_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/coordinator.py", line 104, in get_ssh_connection
    return await self.get_ssh_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/coordinator.py", line 104, in get_ssh_connection
    return await self.get_ssh_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  [Previous line repeated 10 more times]
  File "/config/custom_components/fn_nas/coordinator.py", line 103, in get_ssh_connection
    await asyncio.sleep(0.1)
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 718, in sleep
    return await future
           ^^^^^^^^^^^^
asyncio.exceptions.CancelledError
回复

使用道具 举报

1

主题

39

回帖

215

积分

中级会员

积分
215
金钱
175
HASS币
0
发表于 前天 17:45 | 显示全部楼层
Raylo 发表于 2025-7-4 16:53
升级1.3.2  一直卡这里    无法连接  是BUG吗

我也是碰到这个问题,退回1.20
回复

使用道具 举报

1

主题

39

回帖

215

积分

中级会员

积分
215
金钱
175
HASS币
0
发表于 前天 17:54 | 显示全部楼层
zjg823 发表于 2025-7-4 17:11
我就是1.3.1,,,这个错误,头大,比较菜,,那个SSH也不知道怎么弄

代码应该是1.3.2的但是显示却是1.3.1 我的也是这样,退回低版本了。
回复

使用道具 举报

16

主题

144

回帖

2412

积分

金牌会员

积分
2412
金钱
2247
HASS币
60
 楼主| 发表于 前天 18:03 | 显示全部楼层
zjg823 发表于 2025-7-4 17:13
日志记录器: homeassistant.config_entries
来源: config_entries.py:640
首次出现: 17:03:51 (1 次总计出 ...

更新预发布版本试下
回复

使用道具 举报

0

主题

11

回帖

43

积分

新手上路

积分
43
金钱
32
HASS币
0
发表于 前天 19:13 | 显示全部楼层
试了1.3.3
日志记录器: custom_components.fn_nas.coordinator
来源: custom_components/fn_nas/coordinator.py:193
集成: 飞牛NAS (文档)
首次出现: 18:42:28 (22 次总计出现)
上次记录: 19:10:44

意外错误: 获取SSH连接超时
Traceback (most recent call last):
  File "/config/custom_components/fn_nas/coordinator.py", line 193, in run_command
    conn = await self.get_ssh_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/coordinator.py", line 111, in get_ssh_connection
    raise UpdateFailed("获取SSH连接超时")
homeassistant.helpers.update_coordinator.UpdateFailed: 获取SSH连接超时
回复

使用道具 举报

0

主题

11

回帖

43

积分

新手上路

积分
43
金钱
32
HASS币
0
发表于 前天 19:14 | 显示全部楼层
日志记录器: homeassistant.config_entries
来源: config_entries.py:640
首次出现: 18:47:33 (2 次总计出现)
上次记录: 19:10:58

Error setting up entry 192.168.31.201 for fn_nas
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/__init__.py", line 13, in async_setup_entry
    await coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 306, in async_config_entry_first_refresh
    await self._async_refresh(
        log_failures=False, raise_on_auth_failed=True, raise_on_entry_error=True
    )
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/coordinator.py", line 274, in _async_update_data
    disks = await self.disk_manager.get_disks_info()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/disk_manager.py", line 165, in get_disks_info
    await self._get_full_disk_info(disk_info, device_path)
  File "/config/custom_components/fn_nas/disk_manager.py", line 255, in _get_full_disk_info
    info_output = await self.coordinator.run_command(f"smartctl -i {device_path}")
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/coordinator.py", line 193, in run_command
    conn = await self.get_ssh_connection()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/fn_nas/coordinator.py", line 107, in get_ssh_connection
    await asyncio.sleep(0.1)
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 718, in sleep
    return await future
           ^^^^^^^^^^^^
asyncio.exceptions.CancelledError
回复

使用道具 举报

0

主题

11

回帖

43

积分

新手上路

积分
43
金钱
32
HASS币
0
发表于 前天 19:15 | 显示全部楼层
试的1.3。3版本
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-7-6 14:12 , Processed in 0.057222 second(s), 15 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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