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

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

[求助] 求助,hass连不上mqtt,我用测试工具mqtt是正常的

[复制链接]
回帖奖励 3 金钱 回复本帖可获得 3 金钱奖励! 每人限 1 次

5

主题

21

帖子

116

积分

注册会员

Rank: 2

积分
116
金钱
95
HASS币
0
发表于 2020-7-26 13:46:52 | 显示全部楼层 |阅读模式
本帖最后由 awei5200 于 2020-7-26 13:48 编辑
(hass) C:\Users\Administrator\hass>hass --open-ui
2020-07-26 13:43:38 ERROR (MainThread) [homeassistant.config_entries] Error sett
ing up entry K2 router for upnp
Traceback (most recent call last):
  File "c:\users\administrator\hass\lib\site-packages\homeassistant\config_entri
es.py", line 220, in async_setup
    hass, self
  File "c:\users\administrator\hass\lib\site-packages\homeassistant\components\u
pnp\__init__.py", line 105, in async_setup_entry
    device = await async_discover_and_construct(hass, udn, st)
  File "c:\users\administrator\hass\lib\site-packages\homeassistant\components\u
pnp\__init__.py", line 41, in async_discover_and_construct
    discovery_infos = await Device.async_discover(hass)
  File "c:\users\administrator\hass\lib\site-packages\homeassistant\components\u
pnp\device.py", line 48, in async_discover
    discovery_infos = await IgdDevice.async_search(source_ip=local_ip, timeout=1
0)
  File "c:\users\administrator\hass\lib\site-packages\async_upnp_client\profiles
\profile.py", line 55, in async_search
    await async_search(async_callback=on_response, source_ip=source_ip, timeout=
timeout)
  File "c:\users\administrator\hass\lib\site-packages\async_upnp_client\search.p
y", line 49, in async_search
    transport, _ = await connect
  File "c:\users\administrator\appdata\local\programs\python\python37-32\lib\asy
ncio\base_events.py", line 1261, in create_datagram_endpoint
    sock, protocol, r_addr, waiter)
  File "c:\users\administrator\appdata\local\programs\python\python37-32\lib\asy
ncio\base_events.py", line 446, in _make_datagram_transport
    raise NotImplementedError
NotImplementedError
2020-07-26 13:43:38 WARNING (Thread-4) [homeassistant.components.mqtt] Disconnec
ted from MQTT server awei200.oicp.net:43552 (1)
2020-07-26 13:43:39 WARNING (Thread-4) [homeassistant.components.mqtt] Disconnec
ted from MQTT server awei200.oicp.net:43552 (1)
求助,hass连不上mqtt,我用测试工具mqtt是正常的
是不是hass哪里出错了



回复

使用道具 举报

105

主题

2954

帖子

1万

积分

超级版主

智能家居&单板滑雪痴迷爱好者

Rank: 8Rank: 8

积分
12103
金钱
9084
HASS币
460

教程狂人突出贡献

发表于 2020-7-26 15:18:07 | 显示全部楼层

回帖奖励 +3 金钱

怀疑是防火墙的问题,没有给hass放开权限?

你用的是外网的mqtt服务器?不嫌延迟大隐私差?自己随便装个mqtt broker多好啊!

windows安装hass?这可是官方强调要避免的安装方式,出现大坑是大概率事件。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-28 17:44 , Processed in 0.116733 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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