steve228uk / homebridge-magichome

A Homebridge plugin for Magic Wifi devices
MIT License
82 stars 47 forks source link

2nd accessory not showing up in homekit #48

Open FLESH1955 opened 6 years ago

FLESH1955 commented 6 years ago

Having a hard time getting my homekit to see the second accessory in my json file. I am sure it's just something I am doing wrong though. Here is my file if that is helpful...

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

"accessories": [{
        "accessory": "MagicHome",
        "name": "LED Strip",
        "ip": "10.0.1.21",
        "setup": "RGBW",
        "purewhite": false,
        "singleChannel": false
    },
    {
        "accessory": "MagicHome",
        "name": "LED Strip 2",
        "ip": "10.0.1.22",
        "setup": "RGBW",
        "purewhite": false,
        "singleChannel": false
    }
]

}

toshibochan commented 6 years ago

Look like your config is correct. This is the site for check the config file https://jsonlint.com

FLESH1955 commented 6 years ago

It almost seems as if homebridge is not reading the json file in the .homebridge folder. Is there any way to check the file path homebridge is looking towards to find the json file?

stefantitu commented 6 years ago

Try to uninstall homebridge and reinstall it. But if homebridge sees the first accessory maybe not the path is the problem. Does the first accessory work?

FLESH1955 commented 6 years ago

The first accessory works great. I actually tried removing the json file to see if I could "break" it and it sill worked. Which is what makes me think its somehow pulling from somewhere else. I tried un-installing it and re-installing it and it made no difference.