steilerDev / homebridge-openhab2-complete

A homebridge plugin for openHAB, that has the expectation to fully support all Services offered by Apple's Homekit Accessory Protocol (HAP)
GNU General Public License v3.0
52 stars 16 forks source link

Invalid JSON in an platform Oliver #98

Closed oliverchapple closed 3 years ago

oliverchapple commented 3 years ago

I put this in but comes up with errors Invalid JSON in an platform. trying to link to openhab 3.0

don't know if this is right

thanks Oliver { { "bridge": { ... },

"accessories": [
    ...
],

"platforms": [
    {
        "platform": "openHAB2-Complete",
        "host": "http://192.168.0.100",
        "port": "8080",
        "accessories": [
            {
                "name": "An items name, as shown in Homekit later",
                "type": "switch",
                "item": "Itemname-within-OpenHAB"
            },
            ...
        ]
    },
    ...
]

}

eliempje commented 3 years ago

Is your JSON valid in validators like https://jsonlint.com/?

For OH3 support please use latest commit which has changes as discussed in https://github.com/steilerDev/homebridge-openhab2-complete/issues/87#issuecomment-779412291

steilerDev commented 3 years ago

This does not seem to be a bug. OH3 support was officially added with 1.3.0