tonesto7 / homebridge-smartthings

SmartThings Homebridge Plugin
385 stars 767 forks source link

2.3.3 recognized as 2.3.2 #325

Open albertovm opened 4 years ago

albertovm commented 4 years ago

I did remove and reinstall the plugin, but Smartthings still indicating that I have 2.3.2. But it is not... Up to Date 2.3.3 published 4/29/2020

Regards.

albertovm commented 4 years ago

Installation log:

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

2 packages are looking for funding run npm fund for details [4/30/2020, 08:43:06] Installed "homebridge-smartthings-v2" package.

tonesto7 commented 4 years ago

This happens when the plugin isn't able to reach ST smart app endpoint.

albertovm commented 4 years ago

Did latest update, renew my Client Secret in SmartApp:

5/17/2020, 4:45:45 PM Loaded plugin "homebridge-smartthings-v2".
5/17/2020, 4:45:45 PM [SmartThings-v2] INFO: Homebridge Version: 2.5
5/17/2020, 4:45:45 PM [SmartThings-v2] INFO: SmartThings-v2 Plugin Version: 2.3.4
5/17/2020, 4:45:45 PM [SmartThings-v2] INFO: Checking Package Version for Updates...
5/17/2020, 4:45:45 PM [SmartThings-v2] INFO: Fetching SmartThings-v2 Devices. NOTICE: This may take a moment if you have a large number of device data is being loaded!
5/17/2020, 4:45:45 PM [SmartThings-v2] GOOD: Refreshing All Device Data | Source: (First Launch)
5/17/2020, 4:45:45 PM Bridge is running on port 51826.
5/17/2020, 4:45:46 PM [SmartThings-v2] ERROR: getDevices Error: [object Object] | Message: Request failed with status code 401
5/17/2020, 4:45:46 PM [SmartThings-v2] ALERT: Total Initialization Time: (1 seconds)
5/17/2020, 4:45:46 PM [SmartThings-v2] NOTICE: Unknown Capabilities: []
5/17/2020, 4:45:46 PM [SmartThings-v2] INFO: SmartThings DeviceCache Size: (0)
5/17/2020, 4:45:46 PM [SmartThings-v2] INFO: WebServer Initiated...
5/17/2020, 4:45:46 PM [SmartThings-v2] INFO: Sending StartDirect Request to SmartThings | SendToLocalHub: (false)
5/17/2020, 4:45:46 PM [SmartThings-v2] INFO: Direct Connect Active | Listening at 192.168.2.1:8000
5/17/2020, 4:45:47 PM [SmartThings-v2] ERROR: sendStartDirect Error: [object Object] | Message: Request failed with status code 401

Config:

"description": "This file is used for plugin configuration.",
    "ports": {},
    "accessories": [],
    "platforms": [
        {
            "platform": "SmartThings-v2",
            "plugin_map": {
                "plugin_name": "homebridge-smartthings-v2"
            },
            "name": "SmartThings-v2",
            "direct_ip": "192.168.2.1",
            "direct_port": 8000,
            "temperature_unit": "C",
            "validateTokenId": true,
            "logConfig": {
                "debug": true,
                "showChanges": true,
                "hideTimestamp": true,
                "hideNamePrefix": false,
                "file": {
                    "enabled": true,
                    "level": "debug"
                }
            },
            "app_id": "xxxxxxx",
            "access_token": "yyyyyyyyyyyyyy",
            "app_url": "https://graph.api.smartthings.com:443/api/smartapps/installations/"
        }
    ]

I've got app_id and access_token in Smartthings SmartApp's configuration. OAuth: Client ID and Client Secret.

Is this correct? Any solution for this? Thanks a lot.

tonesto7 commented 4 years ago

Is this still an issue?