iklein99 / homebridge-smartthings

This is a plugin to Homebridge to connect your Smartthings network into Apple Home Kit.
Apache License 2.0
150 stars 52 forks source link

No plugin was found for the platform "HomeBridgeSmartThings" in your config.json. Please make sure the corresponding plugin is installed correctly. (JSON format issue) #174

Closed burnbrigther closed 1 year ago

burnbrigther commented 1 year ago

Describe Your Problem: I see the following error in the log: No plugin was found for the platform "HomeBridgeSmartThings" in your config.json. Please make sure the corresponding plugin is installed correctly. In looking at my JSON configuration, it appears the default installation does not insert the correct JSON code. Maybe it is because I have a strange configuration? I don't believe I do. In any case, I don't believe there is a need to troubleshoot why this occurred, but I would appreciate some help in modifying my JSON file (below) so the plugin will work.

Logs:

[5/9/2023, 12:00:07 PM] [HB Supervisor] Starting Homebridge with extra flags: -I [5/9/2023, 12:00:07 PM] [HB Supervisor] Started Homebridge v1.6.1 with PID: 328704 [5/9/2023, 12:00:07 PM] Loaded config.json with 9 accessories and 3 platforms. [5/9/2023, 12:00:07 PM] Loaded 0 cached accessories from cachedAccessories. [5/9/2023, 12:00:07 PM] --- [5/9/2023, 12:00:07 PM] Loaded plugin: homebridge-camera-ffmpeg@3.1.4 [5/9/2023, 12:00:07 PM] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg' [5/9/2023, 12:00:07 PM] --- [5/9/2023, 12:00:07 PM] Loaded plugin: homebridge-config-ui-x@4.50.2 [5/9/2023, 12:00:07 PM] Registering platform 'homebridge-config-ui-x.config' [5/9/2023, 12:00:07 PM] --- [5/9/2023, 12:00:07 PM] Loaded plugin: homebridge-http-switch@0.5.36 [5/9/2023, 12:00:07 PM] Registering accessory 'homebridge-http-switch.HTTP-SWITCH' [5/9/2023, 12:00:07 PM] --- [5/9/2023, 12:00:07 PM] Loading 3 platforms... [5/9/2023, 12:00:07 PM] [Camera FFmpeg] Initializing Camera-ffmpeg platform... [5/9/2023, 12:00:07 PM] No plugin was found for the platform "HomeBridgeSmartThings" in your config.json. Please make sure the corresponding plugin is installed correctly. [5/9/2023, 12:00:07 PM] Loading 9 accessories... [5/9/2023, 12:00:07 PM] [Center Camera HOME] Initializing HTTP-SWITCH accessory... [5/9/2023, 12:00:07 PM] [Center Camera HOME] Switch successfully configured... [5/9/2023, 12:00:07 PM] [Backyard Camera HOME] Initializing HTTP-SWITCH accessory... [5/9/2023, 12:00:07 PM] [Backyard Camera HOME] Switch successfully configured... [5/9/2023, 12:00:07 PM] [Right Camera HOME] Initializing HTTP-SWITCH accessory... [5/9/2023, 12:00:07 PM] [Right Camera HOME] Switch successfully configured... [5/9/2023, 12:00:07 PM] [Center Camera Front Door View] Initializing HTTP-SWITCH accessory... [5/9/2023, 12:00:07 PM] [Center Camera Front Door View] Switch successfully configured... [5/9/2023, 12:00:07 PM] [Center Camera Mailbox View] Initializing HTTP-SWITCH accessory... [5/9/2023, 12:00:07 PM] [Center Camera Mailbox View] Switch successfully configured... [5/9/2023, 12:00:07 PM] [Center Camera Driveway View] Initializing HTTP-SWITCH accessory... [5/9/2023, 12:00:07 PM] [Center Camera Driveway View] Switch successfully configured... [5/9/2023, 12:00:07 PM] [Right Camera Driveway View] Initializing HTTP-SWITCH accessory... [5/9/2023, 12:00:07 PM] [Right Camera Driveway View] Switch successfully configured... [5/9/2023, 12:00:07 PM] [Right Camera Stairs View] Initializing HTTP-SWITCH accessory... [5/9/2023, 12:00:07 PM] [Right Camera Stairs View] Switch successfully configured... [5/9/2023, 12:00:07 PM] [Right Camera Vehicle in Driveway View] Initializing HTTP-SWITCH accessory... [5/9/2023, 12:00:07 PM] [Right Camera Vehicle in Driveway View] Switch successfully configured... [5/9/2023, 12:00:07 PM] [Camera FFmpeg] [LEFT Side Cam] Configuring unbridged accessory... [5/9/2023, 12:00:07 PM] [Camera FFmpeg] [Right Side Cam] Configuring unbridged accessory... [5/9/2023, 12:00:07 PM] [Camera FFmpeg] [Backyard Cam] Configuring unbridged accessory... [5/9/2023, 12:00:07 PM] [Camera FFmpeg] [Center Cam] Configuring unbridged accessory... [5/9/2023, 12:00:07 PM] [Camera FFmpeg] [Front Door Cam] Configuring unbridged accessory... Setup Payload: X-HM://XXXXX Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ XXXXXX
└────────────┘     

[5/9/2023, 12:00:07 PM] LEFT Side Cam 0072 is running on port 36187. [5/9/2023, 12:00:07 PM] Please add [LEFT Side Cam 0072] manually in Home app. Setup Code: XXXXXX [5/9/2023, 12:00:07 PM] Right Side Cam F2BC is running on port 46489. [5/9/2023, 12:00:07 PM] Please add [Right Side Cam F2BC] manually in Home app. Setup Code: XXXXXX [5/9/2023, 12:00:07 PM] Backyard Cam 0452 is running on port 37041. [5/9/2023, 12:00:07 PM] Please add [Backyard Cam 0452] manually in Home app. Setup Code: XXXXXX [5/9/2023, 12:00:07 PM] Center Cam C900 is running on port 44087. [5/9/2023, 12:00:07 PM] Please add [Center Cam C900] manually in Home app. Setup Code: XXXXXX [5/9/2023, 12:00:07 PM] Front Door Cam F9E3 is running on port 43715. [5/9/2023, 12:00:07 PM] Please add [Front Door Cam F9E3] manually in Home app. Setup Code: XXXXXX [5/9/2023, 12:00:07 PM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 82AD) is running on port 51704.


**Plugin Config:**

```json
{
    "bridge": {
        "name": "Homebridge XXX",
        "username": "XXXXXXXXX",
        "port": 51704,
        "pin": "XXXXXXXXXX",
        "bind": [
            "eth0"
        ]
    },
    "plugins": [
        "homebridge-config-ui-x",
        "homebridge-http-switch",
        "homebridge-camera-ffmpeg"
    ],
    "accessories": [
        {
            "accessory": "HTTP-SWITCH",
            "name": "Center Camera HOME",
            "switchType": "stateless",
            "onUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/com/ptz.cgi?gotoserverpresetno=1",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            }
        },
        {
            "accessory": "HTTP-SWITCH",
            "name": "Backyard Camera HOME",
            "switchType": "stateless",
            "onUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/com/ptz.cgi?gotoserverpresetno=1",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            }
        },
        {
            "accessory": "HTTP-SWITCH",
            "name": "Right Camera HOME",
            "switchType": "stateless",
            "onUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/com/ptz.cgi?gotoserverpresetno=1",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            }
        },
        {
            "accessory": "HTTP-SWITCH",
            "name": "Center Camera Front Door View",
            "switchType": "stateless",
            "onUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/com/ptz.cgi?gotoserverpresetno=8",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            }
        },
        {
            "accessory": "HTTP-SWITCH",
            "name": "Center Camera Mailbox View",
            "switchType": "stateless",
            "onUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/com/ptz.cgi?gotoserverpresetno=4",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            }
        },
        {
            "accessory": "HTTP-SWITCH",
            "name": "Center Camera Driveway View",
            "switchType": "stateful",
            "notificationID": "XXXXXXXXXX",
            "notificationPassword": "XXXXXXXXXX",
            "onUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/com/ptz.cgi?gotoserverpresetno=2",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            },
            "offUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/com/ptz.cgi?gotoserverpresetno=1",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            },
            "statusUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/param.cgi?action=list&group=Properties.PTZ.PTZ",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            }
        },
        {
            "accessory": "HTTP-SWITCH",
            "name": "Right Camera Driveway View",
            "switchType": "stateful",
            "notificationID": "XXXXXXXXXX",
            "notificationPassword": "XXXXXXXXXX",
            "onUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/com/ptz.cgi?gotoserverpresetno=3",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            },
            "offUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/com/ptz.cgi?gotoserverpresetno=1",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            },
            "statusUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/param.cgi?action=list&group=Properties.PTZ.PTZ",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            }
        },
        {
            "accessory": "HTTP-SWITCH",
            "name": "Right Camera Stairs View",
            "switchType": "stateful",
            "notificationID": "XXXXXXXXXX",
            "notificationPassword": "XXXXXXXXXX",
            "onUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/com/ptz.cgi?gotoserverpresetno=4",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            },
            "offUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/com/ptz.cgi?gotoserverpresetno=1",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            },
            "statusUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/param.cgi?action=list&group=Properties.PTZ.PTZ",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            }
        },
        {
            "accessory": "HTTP-SWITCH",
            "name": "Right Camera Vehicle in Driveway View",
            "switchType": "stateful",
            "notificationID": "XXXXXXXXXX",
            "notificationPassword": "XXXXXXXXXX",
            "onUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/com/ptz.cgi?gotoserverpresetno=6",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            },
            "offUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/com/ptz.cgi?gotoserverpresetno=1",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            },
            "statusUrl": {
                "url": "http://XXXXXXXXXX/axis-cgi/param.cgi?action=list&group=Properties.PTZ.PTZ",
                "method": "GET",
                "auth": {
                    "username": "XXXXXXXXXX",
                    "password": "XXXXXXXXXX",
                    "sendImmediately": false
                }
            }
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "name": "Camera FFmpeg",
            "cameras": [
                {
                    "name": "LEFT Side Cam",
                    "manufacturer": "Axis",
                    "model": "M1114-SL",
                    "firmwareRevision": "5.5.1.7.6",
                    "unbridge": true,
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -r 18 -i rtsp://xxxx:xxxx@XXXXXXXXXX:554/axis-media/media.amp?streamprofile=Media?tcp&resolution=1280x720",
                        "stillImageSource": "-i http://xxxx:xxxx@XXXXXXXXXX/axis-cgi/jpg/image.cgi",
                        "maxStreams": 3,
                        "vcodec": "libx264"
                    }
                },
                {
                    "name": "Right Side Cam",
                    "manufacturer": "Axis",
                    "model": "M5525-E Mk II",
                    "firmwareRevision": "8.40.4.4",
                    "unbridge": true,
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -i rtsp://xxxx:xxxx@XXXXXXXXXX/axis-media/media.amp?streamprofile=Media?tcp&resolution=1280x720",
                        "stillImageSource": "-i http://xxxx:xxxx@XXXXXXXXXX/axis-cgi/jpg/image.cgi",
                        "maxStreams": 3,
                        "maxFPS": 20,
                        "maxBitrate": 800,
                        "vcodec": "libx264"
                    }
                },
                {
                    "name": "Backyard Cam",
                    "manufacturer": "Axis",
                    "model": "P5512-E",
                    "firmwareRevision": "5.5.1.7.6",
                    "unbridge": true,
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -i rtsp://xxxx:xxxx@XXXXXXXXXX:554/axis-media/media.amp?streamprofile=Media?tcp&resolution=704x480",
                        "stillImageSource": "-i http://xxxx:xxxx@XXXXXXXXXX/axis-cgi/jpg/image.cgi",
                        "maxStreams": 3,
                        "maxFPS": 20,
                        "vcodec": "libx264"
                    }
                },
                {
                    "name": "Center Cam",
                    "manufacturer": "Axis",
                    "model": "M5525-E Mk II",
                    "firmwareRevision": "8.40.4.4",
                    "motion": true,
                    "unbridge": true,
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -r 24 -i rtsp://xxxx:xxxx@XXXXXXXXXX:554/axis-media/media.amp?streamprofile=Media?tcp&resolution=1280x720",
                        "stillImageSource": "-i http://xxxx:xxxx@1XXXXXXXXXX/axis-cgi/jpg/image.cgi",
                        "maxStreams": 3,
                        "maxBitrate": 800,
                        "vcodec": "libx264"
                    }
                },
                {
                    "name": "Front Door Cam",
                    "manufacturer": "Axis",
                    "model": "P3375-VE",
                    "firmwareRevision": "XXXX",
                    "motion": true,
                    "unbridge": true,
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -i rtsp://xxxx:xxxx@192.168.1.231:554/axis-media/media.amp?streamprofile=Media&resolution=1280x720",
                        "stillImageSource": "-i http://xxxx:xxxx@XXXXXXXXXX/axis-cgi/jpg/image.cgi",
                        "maxStreams": 3,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "maxFPS": 20,
                        "maxBitrate": 800,
                        "vcodec": "libx264",
                        "audio": true
                    }
                }
            ],
            "platform": "Camera-ffmpeg"
        },
        {
            "name": "Smartthings Plug (IK)",
            "BaseURL": "https://api.smartthings.com/v1/",
            "AccessToken": "XXXXXXXXX",
            "GarageDoorMaxPoll": 40,
            "PollLocksSeconds": 10,
            "PollDoorsSeconds": 10,
            "PollSensorsSeconds": 5,
            "PollSwitchesAndLightsSeconds": 10,
            "platform": "HomeBridgeSmartThings"
        }
    ],
    "disabledPlugins": []
}

Screenshots:

Environment:

burnbrigther commented 1 year ago

I again tried to edit the JSON configuration and moved the Smartthings Plug IK section above Camera-FFMPEG section and validated the JSON code and am still receiving this error. Maybe there isn't a JSON formatting error?

iklein99 commented 1 year ago

The message indicates that the plugin wasn't found. How did you install the plugin?

burnbrigther commented 1 year ago

via config-ui > plugins Should I try another way? Happy to do validation of components/installation troulbeshooting.

burnbrigther commented 1 year ago

I just tried installing manually with: sudo -E -n npm install -g homebridge-smartthings-ik@1.5.10-beta.1 ...and did not receive an error. The same issue is still shown in the logs on startup.

iklein99 commented 1 year ago

Try: npm install homebridge-smartthings-ik —save

On May 9, 2023, at 3:59 PM, burnbrigther @.***> wrote:

I just tried installing manually with: sudo -E -n npm install -g @.*** ...and did not receive an error. The same issue is still shown in the logs on startup.

— Reply to this email directly, view it on GitHub https://github.com/iklein99/homebridge-smartthings/issues/174#issuecomment-1540812583, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABG55EWVUK3W4V75W3FUCLLXFKOYPANCNFSM6AAAAAAX3WWSAU. You are receiving this because you commented.

burnbrigther commented 1 year ago

Did that and logs show same error.

iklein99 commented 1 year ago

I'm not sure what to tell you, sorry. You may want to try it on a standalone copy of homebridge. If you install via the UI, shouldn't have a problem. I've not run into this and I can't think of how I can help you out.

iklein99 commented 1 year ago

Closing due to lack of activity.