joe-ng / homebridge-dyson-link

MIT License
206 stars 40 forks source link

Need help with config.json #87

Open willam123 opened 5 years ago

willam123 commented 5 years ago

Can someone please take a look at my config.json file? I'm completely new at this, only am using Homebridge to add support for Dyson fans. I've got about four of them, but we'll start with just one.

Attached is my entire config.json file. Can someone please tell me where the issue lies? I'm not seeing this fan appear in Home app. Only am seeing the preconfigured examples that came with the iOS Homebridge app. :-(

{ "accessories" : [ { "name" : "Example PC", "accessory" : "NetworkDevice", "pingInterval" : "15", "mac" : "EX:AM:PL:E:PC", "wakeGraceTime" : "20", "ip" : "192.168.178.1", "shutdownGraceTime" : "45" }, { "name" : "Pi Temp", "accessory" : "RaspberryPiTemperature" } ], "bridge" : { "username" : "CD:22:3D:E3:CE:56", "name" : "Homebridge", "pin" : "031-45-545", "port" : 51826 }, "platforms" : [ { "name" : "DysonPlatform", "accesories:" : [ { "password" : "wifipassword", "serialNumber" : "NM8-US-HFAxxxxA", "displayName" : "RobertOffice", "ip" : "192.168.128.14" } ], "platform" : "DysonPlatform" } ] }

joe-ng commented 5 years ago

did you see any log from homebridge with [DysonPlatform] tag?

willam123 commented 5 years ago

Setup Payload: [2019-5-25 01:58:33] [Pi Temp] Initializing RaspberryPiTemperature accessory... [2019-5-25 01:58:33] [Example PC] Starting pinger at an interval of 15000 milli seconds [2019-5-25 01:58:33] [Example PC] Stopping pinger [2019-5-25 01:58:33] [Example PC] Initializing NetworkDevice accessory... [2019-5-25 01:58:33] Loading 2 accessories... [2019-5-25 01:58:33] [DysonPlatform] Initializing DysonPlatform platform... [2019-5-25 01:58:33] Loading 1 platforms... [2019-5-25 01:58:33] --- [2019-5-25 01:58:33] Registering accessory 'homebridge-wol.NetworkDevice' [2019-5-25 01:58:33] Loaded plugin: homebridge-wol [2019-5-25 01:58:33] --- [2019-5-25 01:58:33] Registering accessory 'homebridge-raspberrypi-temperature.RaspberryPiTemperature' [2019-5-25 01:58:33] Loaded plugin: homebridge-raspberrypi-temperature [2019-5-25 01:58:33] --- [2019-5-25 01:58:33] Registering accessory 'homebridge-people.PeopleAllAccessory' [2019-5-25 01:58:33] Registering accessory 'homebridge-people.PeopleAccessory' [2019-5-25 01:58:33] Registering platform 'homebridge-people.People' [2019-5-25 01:58:33] Loaded plugin: homebridge-people [2019-5-25 01:58:33] --- [2019-5-25 01:58:33] Registering platform 'homebridge-dyson-link.DysonPlatform' homebridge API version: 2.4 [2019-5-25 01:58:33] Loaded plugin: homebridge-dyson-link [2019-5-25 01:58:32] --- [2019-5-25 01:58:32] Loaded config.json with 2 accessories and 1 platforms. [2019-5-25 01:58:10] Got SIGTERM, shutting down Homebridge... [2019-5-25 01:54:43] Homebridge is running on port 51826. [2019-5-25 01:54:43] [DysonPlatform] Finished launching. Start to create accessory from config

ifeign commented 5 years ago

Your config.json was all over the place, I cleaned it up a bit, however I noticed in your log other plugins like homebridge-people, if post your config for that I can add it. Anyway, give this a try.

{

    "bridge": {
        "name": "Homebridge",
        "username": "CD:22:3D:E3:CE:56",
        "port": 51826,
        "pin": "031-45-545"
    },
    "accessories": [{
            "accessory": "NetworkDevice",
            "name": "Example PC",
            "pingInterval": "15",
            "mac": "EX:AM:PL:E:PC",
            "wakeGraceTime": "20",
            "ip": "192.168.178.1",
            "shutdownGraceTime": "45"
        },
        {
            "accessory": "RaspberryPiTemperature"
            "name": "Pi Temp",
        }
    ],
    "platforms": [{
        "platform": "DysonPlatform",
        "name": "DysonPlatform",
        "accessories": [{
            "ip": "192.168.128.14",
            "displayName": "RobertOffice",
            "serialNumber": "NM8-US-HFAxxxxA",
            "password": "wifipassword"
        }]
    }]

}

If you truly only want to use Homebridge for the Dyson platform, use this

{

    "bridge": {
        "name": "Homebridge",
        "username": "CD:22:3D:E3:CE:56",
        "port": 51826,
        "pin": "031-45-545"
    },
    "accessories": [],
    "platforms": [{
        "platform": "DysonPlatform",
        "name": "DysonPlatform",
        "accessories": [{
            "ip": "192.168.128.14",
            "displayName": "RobertOffice",
            "serialNumber": "NM8-US-HFAxxxxA",
            "password": "wifipassword"
        }]
    }]

}