Jump to content

Hey guys,

 

I'm totally new to homebridge. Sounds like a great idea to get stuff working on homekit, if you can get it to run. I have zero experience programming and can't get the plex plugin to run. You have to manually add some code to the config editor and it won't let me save. The message is error Config Syntax Error, config contains invalid json

 

Here's my code, can anyone help me figure it out?

 

Thanks!

 

{
    "bridge": {
        "name": "Homebridge",
        "username": "blurred",
        "port": blurred,
        "pin": "blurred"
    },
    "accessories": [
        {
            "accessory": "Plex",
            "name": "Plex",
            "plex_token": "...",
            "filter": [
                {
                    "user": "your-plex-username",
                    "player": "your-favorite-player"
                }
            ]
        }
    ]
}
        "platforms": [
    {
        "name": "Config",
        "port": 8581,
        "auth": "form",
        "theme": "dark-mode",
        "tempUnits": "c",
        "lang": "auto",
        "platform": "config"
    },
    {
        "name": "Weather",
        "apikey": "blurred",
        "locations": [
            "Gent"
        ],
        "platform": "WS"
    },
    {
        "devices": [
            {
                "name": "LG TV",
                "host": "192.168.8.XXX",
                "mac": "44:cb:8b:84:d6:08",
                "volumeControl": 1,
                "switchInfoMenu": false,
                "inputs": [
                    {
                        "name": "Netflix",
                        "reference": "netflix",
                        "type": "APPLICATION",
                        "mode": 0
                    }
                ]
            }
        ],
        "platform": "LgWebOsTv"
    }
]
}

 

Link to comment
https://linustechtips.com/topic/1214112-homebridge-plex-plugin-config-syntax-error/
Share on other sites

Link to post
Share on other sites

The closing brace before "platforms" is wrong here, and replacing it with a comma should allow it to parse as JSON. (It's still possible that the valid JSON doesn't contain the data that plex expects, but the error message might be a bit more descriptive there).

HTTP/2 203

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×