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

 找回密码
 立即注册
查看: 6778|回复: 2

[求助] 打开小米电视后,HomeAssistant无法找到DLNA音箱的问题。

[复制链接]

4

主题

68

帖子

353

积分

论坛分享达人

积分
353
金钱
285
HASS币
0
发表于 2018-4-20 16:05:02 | 显示全部楼层 |阅读模式
家里有小米电视4 55寸,小米互联网音箱,京东叮咚TOP语音助手。并安装了虫子大神的DLNA插件。现发现,在小米电视打开的情况下,HomeAssistant启动时,无法找到小米互联网音箱,京东叮咚TOP语音助手等DLNA设备,
但是,在小米电视关闭的情况下,能成功的找到小米互联网音箱,京东叮咚TOP语音助手等DLNA设备,并正常运行。
相关错误日志如下:
:ERROR:homeassistant.core:Error doing job: Task exception was never retrieved
:Traceback (most recent call last):
:  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
:    result = coro.throw(exc)
:  File "/home/homeassistant/.homeassistant/custom_components/dlna.py", line 53, in scan_devices
:    None, dlna.discover_MediaPlayer)
:  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
:    yield self  # This tells Task to wait for completion.
:  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
:    future.result()
:  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
:    raise self._exception
:  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
:    result = self.fn(*self.args, **self.kwargs)
:  File "/home/homeassistant/.homeassistant/custom_components/dlna.py", line 212, in discover_MediaPlayer
:    device = self.register_device(location_url)
:  File "/home/homeassistant/.homeassistant/custom_components/dlna.py", line 131, in register_device
:    UPNP_DEFAULT_SERVICE_TYPE = re.search("urn:schemas-upnp-org:service:AVTransport:\d+",xml).group()
:AttributeError: 'NoneType' object has no attribute 'group'
:INFO:homeassistant.core:Bus:Handling <Event system_log_event[L]: exception=Traceback (most recent call last):
:  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
:    result = coro.throw(exc)
:  File "/home/homeassistant/.homeassistant/custom_components/dlna.py", line 53, in scan_devices
:    None, dlna.discover_MediaPlayer)
:  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
:    yield self  # This tells Task to wait for completion.
:  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
:    future.result()
:  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
:    raise self._exception
:  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
:    result = self.fn(*self.args, **self.kwargs)
:  File "/home/homeassistant/.homeassistant/custom_components/dlna.py", line 212, in discover_MediaPlayer
:    device = self.register_device(location_url)
:  File "/home/homeassistant/.homeassistant/custom_components/dlna.py", line 131, in register_device
:    UPNP_DEFAULT_SERVICE_TYPE = re.search("urn:schemas-upnp-org:service:AVTransport:\d+",xml).group()
:AttributeError: 'NoneType' object has no attribute 'group'
:, source=custom_components/dlna.py, timestamp=1524203927.6050668, message=Error doing job: Task exception was never retrieved, level=ERROR>

回复

使用道具 举报

75

主题

1976

帖子

8201

积分

元老级技术达人

积分
8201
金钱
6175
HASS币
430

活跃会员教程狂人

发表于 2018-4-20 23:13:02 | 显示全部楼层
这个DLAN插件早都不维护了,源插件出处更新过没有不知道,我觉得出问题很正常的嘛,HA官方都不了靠谱...
所有过往,皆为序章。
回复

使用道具 举报

31

主题

413

帖子

2053

积分

金牌会员

Rank: 6Rank: 6

积分
2053
金钱
1640
HASS币
0
发表于 2018-4-24 11:24:12 | 显示全部楼层
我也遇到这个问题 ~
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-24 03:35 , Processed in 0.046470 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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