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

 找回密码
 立即注册
楼主:

[学习笔记] 关于HASSIO安装MQTT教程及注意事项!

  [复制链接]

12

主题

351

帖子

1172

积分

金牌会员

Rank: 6Rank: 6

积分
1172
金钱
821
HASS币
0
发表于 2020-6-7 10:45:49 | 显示全部楼层
本帖最后由 wktm 于 2020-6-7 13:38 编辑

这是输入所有地址,该选哪一个呢
配置
logins: []
anonymous: false
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false

配置文件里的
mqtt:
  broker: 127.0.0.1
  port: 1883
日志
 INFO: Setup mosquitto configuration
[13:31:46] WARNING: SSL not enabled - No valid certs found!
[13:31:46] INFO: Found local users inside config
[13:31:47] INFO: Initialize Hass.io Add-on services
[13:31:47] INFO: Initialize Home Assistant discovery
[13:31:47] INFO: Start Mosquitto daemon
1591507909: mosquitto version 1.6.3 starting
1591507909: Config loaded from /etc/mosquitto.conf.
1591507909: Loading plugin: /usr/share/mosquitto/auth-plug.so
1591507909: |-- *** auth-plug: startup
1591507909:  ├── Username/password checking enabled.
1591507909:  ├── TLS-PSK checking enabled.
1591507909:  └── Extended authentication not enabled.
1591507909: Opening ipv4 listen socket on port 1883.
1591507909: Opening ipv6 listen socket on port 1883.
1591507909: Opening websockets listen socket on port 1884.
1591507909: Warning: Mosquitto should not be run as root/administrator.
1591507977: New connection from 172.30.32.1 on port 1883.
[INFO] found homeassistant on local database
1591507980: New client connected from 172.30.32.1 as auto-CD8A586B-B287-B86F-1D44-48D2283AFB67 (p2, c1, k60, u'homeassistant').
1591508211: New connection from 172.30.33.2 on port 1883.
1591508211: Socket error on client <unknown>, disconnecting.
1591508222: New connection from 172.30.33.2 on port 1883.
1591508222: Socket error on client <unknown>, disconnecting.
1591508232: New connection from 172.30.33.2 on port 1883.
1591508232: Socket error on client <unknown>, disconnecting.
1591508242: New connection from 172.30.33.2 on port 1883.
1591508242: Socket error on client <unknown>, disconnecting.
1591508252: New connection from 172.30.33.2 on port 1883.

docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        inet6 fe80::42:63ff:fe34:3c7f  prefixlen 64  scopeid 0x20<link>
        ether x2:42:x3:x4:xc:xf  txqueuelen 0  (Ethernet)
        RX packets 41  bytes 4123 (4.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 751  bytes 122074 (119.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

docker_gwbridge: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.18.0.1  netmask 255.255.0.0  broadcast 172.18.255.255
        inet6 fe80::42:faff:fedf:edd2  prefixlen 64  scopeid 0x20<link>
        ether fd:42:fa:df:ed:d2  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 720  bytes 111674 (109.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.8.243  netmask 255.255.255.0  broadcast 192.168.8.255
        inet6 fe80::fa7c:efa3:e4e2:a335  prefixlen 64  scopeid 0x20<link>
        ether b8:ff:eb:bb:52:42  txqueuelen 1000  (Ethernet)
        RX packets 16276  bytes 5413043 (5.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17645  bytes 10821593 (10.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

hassio: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.30.32.1  netmask 255.255.254.0  broadcast 172.30.33.255
        inet6 fe80::42:49ff:fefa:17d  prefixlen 64  scopeid 0x20<link>
        ether 0f:cc:f9:fa:f1:7f txqueuelen 0  (Ethernet)
        RX packets 2004  bytes 3090104 (2.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14781  bytes 3935333 (3.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 4591  bytes 455066 (444.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4591  bytes 455066 (444.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth9513829: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.125.74  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::f809:adff:fe69:c992  prefixlen 64  scopeid 0x20<link>
        ether fa:09:ds:6d:c9:d2  txqueuelen 0  (Ethernet)
        RX packets 392  bytes 1618650 (1.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11484  bytes 3352672 (3.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth00ce696: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.107.228  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::1cff:95ff:fe67:9052  prefixlen 64  scopeid 0x20<link>
        ether se:ff:f5:67:90:g2  txqueuelen 0  (Ethernet)
        RX packets 1089  bytes 74722 (72.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 15325  bytes 3916297 (3.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth0d486d3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.72.94  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::24ea:c4ff:fe66:3afe  prefixlen 64  scopeid 0x20<link>
        ether 2y:ea:c4:f6:3a:be  txqueuelen 0  (Ethernet)
        RX packets 1065  bytes 92818 (90.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14579  bytes 3878620 (3.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth23e85b9: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.127.90  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::d249:1974:aafa:392b  prefixlen 64  scopeid 0x20<link>
        ether 2a:rb:a9:er:2g:5v  txqueuelen 0  (Ethernet)
        RX packets 8  bytes 1185 (1.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14261  bytes 3841567 (3.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth245e247: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.138.177  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::54ca:7dff:fef4:8988  prefixlen 64  scopeid 0x20<link>
        inet6 fe80::a964:2a86:7457:3750  prefixlen 64  scopeid 0x20<link>
        ether 5r:cr:7r:f4:r9:88  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1904  bytes 308430 (301.2 KiB)
        TX errors 0  dropped 2 overruns 0  carrier 0  collisions 0

veth531b0c0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.246.251  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::9b2e:dd1a:a635:9d6d  prefixlen 64  scopeid 0x20<link>
        ether gh:dh:dg:2e:f0:d8  txqueuelen 0  (Ethernet)
        RX packets 1089  bytes 3244940 (3.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 15472  bytes 5617232 (5.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth6f4d722: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.38.62  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::98b8:81ff:feab:1365  prefixlen 64  scopeid 0x20<link>
        ether 9a:by:81:au:13:65  txqueuelen 0  (Ethernet)
        RX packets 9  bytes 1292 (1.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14280  bytes 3844501 (3.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vethaa6e3da: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.211.48  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::b026:6102:7eb5:c090  prefixlen 64  scopeid 0x20<link>
        ether f2:60:uu:8u:53:ee  txqueuelen 0  (Ethernet)
        RX packets 965  bytes 75821 (74.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11399  bytes 3000366 (2.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vethcc5b0f3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.65.3  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::806:d8fc:7a33:5004  prefixlen 64  scopeid 0x20<link>
        ether 9a:1u:ed:f2:5e:2u  txqueuelen 0  (Ethernet)
        RX packets 41  bytes 4697 (4.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1464  bytes 240481 (234.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.8.27  netmask 255.255.255.0  broadcast 192.168.8.255
        inet6 fe80::f3af:ca53:f761:6add  prefixlen 64  scopeid 0x20<link>
        ether b8:2y:eb:ee:0u:16  txqueuelen 1000  (Ethernet)
        RX packets 11090  bytes 2483164 (2.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 729  bytes 126503 (123.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

在配置里吧172.18.0.1  172.17.0.1 192.168.8.243 127.0.0.1 192.168.8.27这五个个都试过来了,没有一个成功

回复

使用道具 举报

1

主题

54

帖子

403

积分

中级会员

Rank: 3Rank: 3

积分
403
金钱
349
HASS币
0
发表于 2020-6-7 12:23:23 | 显示全部楼层
学习下学习下学习下学习下学习下
回复

使用道具 举报

12

主题

351

帖子

1172

积分

金牌会员

Rank: 6Rank: 6

积分
1172
金钱
821
HASS币
0
发表于 2020-6-8 16:34:19 | 显示全部楼层
wktm 发表于 2020-6-7 10:45
这是输入所有地址,该选哪一个呢
配置
logins: []

有懂的指点指点吧
回复

使用道具 举报

12

主题

351

帖子

1172

积分

金牌会员

Rank: 6Rank: 6

积分
1172
金钱
821
HASS币
0
发表于 2020-6-10 22:14:50 | 显示全部楼层
鸟沉大海
回复

使用道具 举报

29

主题

365

帖子

2439

积分

金牌会员

Rank: 6Rank: 6

积分
2439
金钱
2074
HASS币
0
发表于 2020-8-9 23:12:13 | 显示全部楼层
大佬 这个是怎么回事

QQ截图20200809231110.png
回复

使用道具 举报

4

主题

11

帖子

112

积分

注册会员

Rank: 2

积分
112
金钱
101
HASS币
0
发表于 2020-8-15 15:22:10 | 显示全部楼层
cdajun 发表于 2018-12-31 00:30
狂晕啊...真的整糊涂了好几天...才发现这个问题....晕死了....   发现开关了....    真的太 ...

开关在哪呀?难道yaml文件里面写明了mqtt,在某个地方关掉就搞定了吗?(我的理解是yaml里面写入mqtt之后,就默认自动开启了)。望指教,谢谢
回复

使用道具 举报

2

主题

96

帖子

1016

积分

金牌会员

Rank: 6Rank: 6

积分
1016
金钱
915
HASS币
30
发表于 2020-8-20 23:50:25 | 显示全部楼层
非常感谢大佬,解决问题!!!
回复

使用道具 举报

0

主题

5

帖子

38

积分

新手上路

Rank: 1

积分
38
金钱
33
HASS币
0
发表于 2020-8-27 20:37:43 | 显示全部楼层
学习了,感谢大神分享
回复

使用道具 举报

0

主题

19

帖子

60

积分

注册会员

Rank: 2

积分
60
金钱
41
HASS币
0
发表于 2020-9-27 17:31:43 | 显示全部楼层
我是新手。我是来学习的。
回复

使用道具 举报

0

主题

15

帖子

120

积分

注册会员

Rank: 2

积分
120
金钱
105
HASS币
0
发表于 2020-10-1 09:37:52 | 显示全部楼层
今天还真遇到了
1601512690: Socket error on client <unknown>, disconnecting.

1601512732: mosquitto version 1.4.15 terminating

1601512739: mosquitto version 1.4.15 (build date 2018-05-08 13:08:57+0000) starting

1601512739: Using default config.

1601512739: Opening ipv4 listen socket on port 1883.

1601512739: Opening ipv6 listen socket on port 1883.

1601512774: mosquitto version 1.4.15 terminating

1601512826: mosquitto version 1.4.15 (build date 2018-05-08 13:08:57+0000) starting

1601512826: Using default config.

1601512826: Opening ipv4 listen socket on port 1883.

1601512826: Opening ipv6 listen socket on port 1883.

1601512882: New connection from 192.168.2.179 on port 1883.

1601512882: Socket error on client <unknown>, disconnecting.

1601512882: New connection from 192.168.2.179 on port 1883.

1601512882: Socket error on client <unknown>, disconnecting.

1601512882: New connection from 192.168.2.179 on port 1883.

1601512882: Socket error on client <unknown>, disconnecting.

1601512882: New connection from 192.168.2.179 on port 1883.

1601512882: Socket error on client <unknown>, disconnecting.

1601512882: New connection from 192.168.2.179 on port 1883.

1601512882: Socket error on client <unknown>, disconnecting.

1601512882: New connection from 192.168.2.179 on port 1883.

1601512882: Socket error on client <unknown>, disconnecting.

1601512882: New connection from 192.168.2.179 on port 1883.

1601512882: Socket error on client <unknown>, disconnecting.

1601512882: New connection from 192.168.2.179 on port 1883.

1601512882: Socket error on client <unknown>, disconnecting.

1601512882: New connection from 192.168.2.179 on port 1883.

1601512882: Socket error on client <unknown>, disconnecting.

1601512882: New connection from 192.168.2.179 on port 1883.

1601512882: Socket error on client <unknown>, disconnecting.
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-21 23:16 , Processed in 1.907908 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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