naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
314 stars 63 forks source link

Homebrigde loads plugin but platform is not loaded from config.json #26

Closed warrenphd closed 6 years ago

warrenphd commented 6 years ago

Problem: Homebridge loads the homebridge-weather-station-extended plugin but does not detect the platform declaration in ~/.homebridge/config.json

[2018-4-8 21:12:50] Loaded plugin: homebridge-simplisafe-security-system [2018-4-8 21:12:50] Registering accessory 'homebridge-simplisafe.Homebridge-SimpliSafe' [2018-4-8 21:12:50] --- [2018-4-8 21:12:51] Loaded plugin: homebridge-weather-station-extended [2018-4-8 21:12:51] Registering platform 'homebridge-wunderground-extended.WeatherStation' [2018-4-8 21:12:51] --- [2018-4-8 21:12:51] Loaded config.json with 1 accessories and 0 platforms. [2018-4-8 21:12:51] --- [2018-4-8 21:12:51] Loading 1 accessories... [2018-4-8 21:12:51] [SimpliSafe] Initializing Homebridge-SimpliSafe accessory...

The Homebridge and SimpliSafe accessories both show-up in the Apple Home app as expected. Seems like something is wrong with my config.json but I do not see anything obviously wrong with it. Will you please help me out?

Setup: Homebridge v0.4.38 on RPI 3 B+ running Raspbian 9 (stretch) Apple TV 4K running tvOS 11.3 iPhone X running iOS 11.3

~/.homebridge/config.json { "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" },

"description": "home name",

"platform": [
    {
            "platform": "WeatherStation",
            "name": "Weather Station",
            "key": "api key",
            "location": "zip code"
    }
],

"accessories": [
    {
        "accessory": "Homebridge-SimpliSafe",
        "name": "SimpliSafe",
    "auth": {
            "username": "username",
            "password": "password"
    }
    }
]

}

naofireblade commented 6 years ago

Hi, you are missing an s after the first "platform". That should be "platforms".

warrenphd commented 6 years ago

Thank you for the quick response! The problem was too obvious.