Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.json error - Expecting ',', ']', got 'EOF' - when adding config parameters #26

Open
jimiamoore opened this issue Nov 7, 2017 · 0 comments

Comments

@jimiamoore
Copy link

Here's my existing config. Which passes the jsonlint.com test.

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

    "platforms": [{
            "platform": "SmartThings",
            "name": "SmartThings",
            "app_url": "https://graph-na02-useast1.api.smartthings.com:443/api/smartapps/installations/",
            "app_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "access_token": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
            },
            {
            "platform": "Hue",
            "users": {
      "001788FFFExxxxxx": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "001788FFFEyyyyyy": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
            },
            "lights": true
            },
            {
            "platform": "HarmonyHub",
            "name": "Harmony Hub"
            },
            {
            "platform": "TplinkLightbulb"
            }
    ]

}

And here is my best attempt at incorporating the amazondash config into my file. But I keep getting error's from jsonlint.com

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

    "platforms": [{
            "platform": "SmartThings",
            "name": "SmartThings",
            "app_url": "https://graph-na02-useast1.api.smartthings.com:443/api/smartapps/installations/",
            "app_id": "c01b355b-f290-4034-9962-8f5648b86c5a",
            "access_token": "bdd22628-5394-4558-9183-c27edac8eaa2"
            },
            {
            "platform": "Hue",
            "users": {
      "001788FFFExxxxxx": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "001788FFFEyyyyyy": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
            },
            "lights": true
            },
            {
            "platform": "HarmonyHub",
            "name": "Harmony Hub"
            },
            {
            "platform": "TplinkLightbulb"
            },
            {
            "platform": "AmazonDash",
            "buttons": [{
                    "name": "Dash Blue",
                    "mac": "74:c2:46:0a:f9:3f"
	            },
	            {
                    "name": "Dash Orange",
                    "mac": "10:ae:60:4d:6a:0b"
            }
    ]

}

I am specifically getting this error (Expecting ',', ']', got 'EOF') on the last line. I just can't seem to figure out how to correct this issue. Any help you can offer would be most appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant