Basic JSON - issue with the bloody bracket

64 Views Asked by At

For a while now I've been trying to add Airtouch to HOmebridge and failing miserably.

Current attempt

The original code is this

"platforms": [
    {
        "platform": "Airtouch",
        "name": "Airtouch",
        "ip_address": "192.168.0.10",
        "ac_include_temps": false,
        "units": [
            {
                "manufacturer": "LG",
                "model": "B36AWY-7G6",
                "fan": ["AUTO", "QUIET", "LOW", "MEDIUM"]
            }
        ]
    }
]

What am I missing? Happy to find someone to be able to troubleshoot & fix :)

Validation error:

Validation error

2

There are 2 best solutions below

0
Nikolay Shmakov On

Thank you all, @user1239299 for sticking around, and @alexanderdavide for sharing the validator tool

I believe I figured out what the error was I would love to know how to make it perfectly line up though: enter image description here

At the moment it looks ugly. And when I move the lines of code to match the first picture, and upon saving the config, I get this. The last two brackets caused the issue :) :

enter image description here

2
user1239299 On

The square brackets do align with each other

enter image description here