joe-ng / homebridge-dyson-link

MIT License
207 stars 40 forks source link

Unable to find config or accessories #77

Open Linxory opened 5 years ago

Linxory commented 5 years ago

Hi Joe,

First timer trying out the homekit - alltho, running into some issues configuring this Homebridge Dyson app.

No matter how I edit the config, always get the message Unable to find config or accessories when I boot up the homebridge app.

Config:

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

"description": "HomeBridge HTTP Status Control",

"accessories": [], "platforms": [ { "platform": "DysonPlatform", "name": "DysonPlatform", "email": "***" "password": "****" "country": "BE" "accessories": [ { "ip": "192.168.1.75", "displayName": "Dyson Air Fan", "serialNumber": "VS9-EU-KEA4386A",

    },
            }

  ]
}

] }

Possible for you to take a look at?

Thanks,

Regards,

CooperCGN commented 5 years ago

Use a service like https://jsonlint.com to validate your config file.

alex1075 commented 5 years ago

I'm getting the same error message, I've checked the config file and should work but still getting unable to find config or accessories

AlexisGigleux commented 5 years ago

Hi everyone ! I've got the same problem. Has anyone find a solution yet ?

CooperCGN commented 5 years ago

@Linxory There are commas missing after email, password, country. The comma after serial number has to be removed as well as the line with the closing bracket and comma right afterwards.

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

    "description": "HomeBridge HTTP Status Control",
    "accessories": [],
    "platforms": [{
        "platform": "DysonPlatform",
        "name": "DysonPlatform",
        "email": "***",
        "password": "",
        "country": "BE",
        "accessories": [{
            "ip": "192.168.1.75",
            "displayName": "Dyson Air Fan",
            "serialNumber": "VS9-EU-KEA4386A"
        }]
    }]
}

I strongly advise checking your config.json via copy paste on jsonlint.com.

All others, please post your error log.

AlexisGigleux commented 5 years ago

Thanks for your answer. However it's still not working. Here's my configuration file : { "bridge": { "name": "JeedomAlexisG", "username": "CC:C4:40:39:67:BB", "port": 51826, "pin": "031-45-154", "manufacturer": "Jeedom", "model": "Homebridge", "serialNumber": "CC:C4:40:39:67:BB", "setupID": "67BB" }, "description": "Autogenerated config file by Jeedom", "accessories": [], "platforms": [ { "platform": "Jeedom", "name": "JeedomAlexisG", "url": "http:\/\/192.168.1.37:80", "apikey": "DVgjsNepfsnK2K1G1pGckpNw6jC906vf", "pollerperiod": 0.05, "fakegato": false, "debugLevel": "400", "myPlugin": "homebridge", "magicField": "NBPx\/38Y48kHg" }, { "platform": "DysonPlatform", "name": "DysonPlatform", "email": "", "password": "", "country": "FR", "accessories": [ { "ip": "192.168.1.44", "displayName": "Dyson Pure Hot Cool", "serialNumber": "DYSON-PT4-EU-KKA8941A-455", "password": "***", "nightModeVisible" : true, "focusModeVisible" : true, "autoModeVisible" : true } ] } ] }

And here's my error :

[2019-6-15 10:33:16] [JeedomAlexisG] Synchronisation Jeedom <> Homebridge... [2019-6-15 10:33:16] [homebridge-dyson-link.DysonPlatform] Finished launching. Start to create accessory from config [2019-6-15 10:33:16] [homebridge-dyson-link.DysonPlatform] Unable to find config or accessories [2019-6-15 10:33:16] Homebridge is running on port 51826.

CooperCGN commented 5 years ago

Are you sure your serial number is correct, I’ve never seen any with the word Dyson in the beginning and the devices type at the end. Try PT4-EU-KKA8941A.

AlexisGigleux commented 5 years ago

Still the same error. Is it possible that it's searching for the platform in some path and for the accesories in another path ?

CooperCGN commented 5 years ago

Are you running homebridge on a Pi? Usually with the standard installation there should be a hidden folder where the config.json is placed. You can find it by entering “cd /home/homebridge/.homebridge”. Is homebridge working without the Dyson plugin? Is the IP of your fan correct, make sure to give it a static IP in your router.

AlexisGigleux commented 5 years ago

Indeed I'm running homebridge on a Pi.

I've got this folder : /home/pi/.homebridge (where there was no "config.json" file) I think it's looking at the "config.json" file here : /var/www/html/plugins/homebridge/resources/homebridge There's a config.json file here and I need to type "sudo" commands if I want to overwrite the file.

Indeed homebridge is working without the Dyson plugin (my netatmo sensors are working perfectly fine in the Homekit App right now).

Also, my IP is correct and I've made it static in my router parameters.

AlexisGigleux commented 5 years ago

Fucking shit...I needed to modify the config.json file directly from the Jeedom app :-)

Now my problem is solved !

Thanks a lot man ! Have a nice day.

CooperCGN commented 5 years ago

Good to hear, anyway the directory you listed usually is reserved for a web-server. I don’t know what Jeedom is, but if that app placed your file there, they do something wrong.

mbolzies commented 4 years ago

I'm having the same issue. I'm using homebridge on pi 3, installed the Dyson plug in, created a static ip, and verified my serial and credentials, but I'm getting the same error "unable to find config or accessories" for the Dyson. Here is a portion of my config file:

                {
            "platform": "DysonPlatform",
            "name": "DysonPlatform",
            "email": "XXXX@gmail.com",
            "password": "XXX",
            "country": "US",
            "accessories": [
        {
                "ip": "10.0.1.15",
                "displayName": "Dyson",
                    "serialNumber": "XXX-XX-XXXXX"
        }