cflurin / homebridge-mqtt

Homebridge-mqtt is a Plugin for Homebridge.
Apache License 2.0
229 stars 38 forks source link

Help a new user? config.json woes #80

Closed 877dev closed 5 years ago

877dev commented 5 years ago

So Homebridge is installed fine, but when I add my MQTT details into config.json I get the "server restart is taking a long time" error.

Here is my file:

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },
    "platforms": [
        {
            "platform": "mqtt",
            "name": "mqtt",
            "url": "http://192.168.1.95",
            "port": "1883",
            "topic_type": "multiple",
            "topic_prefix": "homebridge",
            "username": "",
            "password": "",
            "qos": 1
        }
    ],
    "accessories": []
}

In Node Red (working with Mosquitto MQTT before this), the server is 192.168.1.95 and port 1883, no SSL/TLS ticked, and security credentials blank.

Many thanks for any help!

maragelis commented 5 years ago

http://192.168.1.95 <-- change http to mqtt

877dev commented 5 years ago

Sorted - the problem was I had not installed the homekit-mqtt plugin properly.

Here is the full working config.json:

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },
    "platforms": [
        {
            "platform": "mqtt",
            "name": "mqtt",
            "url": "http://192.168.1.95",
            "port": "1883",
            "topic_type": "multiple",
            "topic_prefix": "homebridge",
            "qos": 1
        }
    ],
    "accessories": []
}