LASER-Yi / homebridge-mi-acpartner

XiaoMi AC Partner plugins for HomeBridge(https://github.com/nfarina/homebridge).
MIT License
263 stars 36 forks source link

Homebridge stops after config.json update #59

Closed vmax77 closed 5 years ago

vmax77 commented 5 years ago

Hi

The plugin seems to not work at all on my homebridge. Could very well be my fault, but still I hope someone here might be able to help.

The issue is when I update the config.json with the following:

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

"platforms": [
        {
            "platform": "XiaoMiAcPartner",
            "devices":{
                "<myip>":"my-token",
            }],

"accessories":[
                  {
                    "name": "Ac Partner",
                    "type": "climate"
                  }
            ]
}

After I make the change, homebridge stops running.

Not sure what I am doing wrong

Thanks

LASER-Yi commented 5 years ago

Hello vmax77

you config.json file need to change like this

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "123-45-568"
    },
    "platforms": [
        {
            "platform": "XiaoMiAcPartner",
            "devices": {
                "<myip>": "my-token"
            },
            "accessories": [
                {
                    "name": "Ac Partner",
                    "type": "climate"
                }
            ]
        }
    ]
}

that this plugin should work :)