Need a little help with a JSON file

So I’ve been having some difficulty getting this to work. It keeps throwing an error message that I can’t seem to shake. So please help this noob. Thanks in advance.

{
“bridge”: {
“name”: “Homebridge”,
“username”: “xxxxxxxxxxx”,
“port”: 51826,
“pin”: “031-45-154”
},

"description": "This is an example configuration file with all supported devices. You can use this as a template for creating your own configuration file containing devices you actually own.",

"platforms": [
    {
        "platform" : "Nest",
        "name" : "Nest",
        "username" : "xxxxxxxxx@xxxxxxx.com",
        "password" : "xxxxxxxxxxxx"
    },
    {
        "platform": "SmartThings",
        "name": "SmartThings",
        "app_id": "xxxxxxxxxxxxxxx",
        "access_token": "xxxxxxxxxxxxxxx"
    },
    {
        "platform": "LogitechHarmony",
        "name": "Living Room"
    },
],

"accessories": [
    {
        "accessory": "LiftMaster",
        "name": "Garage Door",
        "description": "This shim supports LiftMaster garage door openers that are already internet-connected to the 'MyQ' service.",
        // "requiredDeviceId", "<ID of door if you have multiple doors, prompted by shim during startup if needed>",
        "username": "xxxxx@xxxxx.com",
        "password" : "xxxxxxxx"
    },
]

}

Was the error on requiredDeviceId? I think the issue is you have a , instead of a : (Also a bunch of extra commas)

Ran:

{
	"bridge": {
		"name": "Homebridge",
		"username": "xxxxxxxxxxx",
		"port": 51826,
		"pin": "031-45-154"
	},
	"description": "This is an example configuration file with all supported devices. You can use this as a template for creating your own configuration file containing devices you actually own.",
	"platforms": [{
		"platform": "Nest",
		"name": "Nest",
		"username": "xxxxxxxxx@xxxxxxx.com",
		"password": "xxxxxxxxxxxx"
	}, {
		"platform": "SmartThings",
		"name": "SmartThings",
		"app_id": "xxxxxxxxxxxxxxx",
		"access_token": "xxxxxxxxxxxxxxx"
	}, {
		"platform": "LogitechHarmony",
		"name": "Living Room"
	}],
	"accessories": [{
		"accessory": "LiftMaster",
		"name": "Garage Door",
		"description": "This shim supports LiftMaster garage door openers that are already internet-connected to the 'MyQ' service.",
		"requiredDeviceId": "<ID of door if you have multiple doors, prompted by shim during startup if needed>",
		"username": "xxxxx@xxxxx.com",
		"password": "xxxxxxxx"
	}]
}

through:

and it came back valid after the update.

2 Likes

Thank you! that removed the error and it’s now working. I was trying an trying and in the end I gave up and knew that someone here would help me. Glad I was right.