Skip to content

Homebridge: How to #67

@DJ-Q

Description

@DJ-Q

Has anyone managed to get this to work via homebridge? I am trying to use the homebridge-mqttswitch plugin but i'm not sure of the correct syntax to use in the config.json, with the following setup, all I ever get is the OFF command sent, never the ON command

{
"bridge": {
"name": "Homebridge-02",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},

    "platforms": [
    ],
    "accessories": [
    {
            "accessory": "mqttswitch",
            "name": "BigLamp",
            "url": "mqtt://127.0.0.1",
                    "username": "",
                    "password": "",
                    "caption": "Big Lamp",
                    "topics": {
                            "statusGet": "stat/sonoff/power",
                            "statusSet": "cmnd/sonoff/power",
                            "onValue": "ON",
                            "offValue": "OFF"

                    }
    }

]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions