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

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

请问大神Hass.io Add-ons中MQTT和SSH怎么配置的

[复制链接]

4

主题

215

帖子

493

积分

中级会员

Rank: 3Rank: 3

积分
493
金钱
278
HASS币
0
发表于 2018-10-31 00:21:40 | 显示全部楼层 |阅读模式
已在Hass.io Add-ons中已安装如下插件
现在无法正常启动,估计是秘钥和证书未配置,请大神帮忙看看是怎么生成的,下面是配置
1.MQTT Server & Web client
{
  "log_level": "info",
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "web": {
    "enabled": true,
    "username": "mqtt",
    "password": "123",
    "ssl": true
  },
  "broker": {
    "enabled": true,
    "enable_ws": false,
    "enable_mqtt": false,
    "enable_ws_ssl": true,
    "enable_mqtt_ssl": true,
    "allow_anonymous": false
  },
  "mqttusers": [
    {
      "username": "mqtt",
      "password": "123",
      "readonly": true,
      "topics": [
        "#"
      ]
    }
  ]
}



2.SSH & Web Terminal

{
  "log_level": "info",
  "ssh": {
    "enable": true,
    "port": 22,
    "username": "hassio",
    "password": "123",
    "authorized_keys": [],
    "sftp": false,
    "compatibility_mode": false,
    "allow_agent_forwarding": false,
    "allow_remote_port_forwarding": false,
    "allow_tcp_forwarding": false
  },
  "web": {
    "enable": true,
    "port": 7681,
    "username": "hassio",
    "password": "123",
    "ssl": true,
    "certfile": "fullchain.pem",
    "keyfile": "privkey.pem"
  },
  "share_sessions": true,
  "packages": [],
  "init_commands": []
}




回复

使用道具 举报

34

主题

335

帖子

1848

积分

金牌会员

Rank: 6Rank: 6

积分
1848
金钱
1513
HASS币
0
发表于 2018-12-14 19:52:23 | 显示全部楼层
问题解决了吗
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 11:26 , Processed in 0.045767 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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