tonesto7 / homebridge-smartthings

SmartThings Homebridge Plugin
383 stars 765 forks source link

can not add any smart things accessories #156

Closed bdee1 closed 7 years ago

bdee1 commented 7 years ago

I had been using this for a while and love it. I recently updated to the latest version and now when I start up homebridge, i notice the following:

[2/26/2017, 9:08:22 AM] [SmartThings] Fetching Smart Things devices. [2/26/2017, 9:08:23 AM] [SmartThings] Error received type undefined - undefined [2/26/2017, 9:08:23 AM] [SmartThings] Unknown Capabilities: []

I removed my homebridge device in the ios home app and re-added it. but none of the accessories I selected in the smartthings smartapp appear in my ios home app.

please advice

pdlove commented 7 years ago

This is something that is wrong in the Smartapp. I'll update The plugin to expose the error and see if I can get the Smartapp to expose which device is an issue. Do you have a any unique devices or odd custom device handlers?

bdee1 commented 7 years ago

I don't think I have anything out of the ordinarun. I do have one virtual switch. Other than that it's just a bunch of zwave modules and switches.

bdee1 commented 7 years ago

img_1046 here is a screenshot of my devices - if it helps.

bdee1 commented 7 years ago

is there anything I can do on my end to troubleshoot further?

pdlove commented 7 years ago

There is not at the moment. I'm awaiting an answer from Smartthings on the best way to debug this.

bdee1 commented 7 years ago

Ok great. I appreciate your efforts!

bdee1 commented 7 years ago

Any progress with this? I really miss homebridge.

bdee1 commented 7 years ago

@pdlove have you been able to look into this at all?

pdlove commented 7 years ago

@bdee1 I just uploaded a new smartapp that has better error tracking. Give it a try. If it doesn't work, get me the log information from smartthings.

bdee1 commented 7 years ago

thanks! I just updated to the new version of the smartapp and closed and relaunched homebridge and got the following in the terminal... where can I go to get you a copy of my smartthings log? : [4/25/2017, 9:27:08 AM] Loaded plugin: homebridge-legacy-plugins [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.AD2USB' [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.Carwings' [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.ELKM1' [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.FileSensor' [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.GenericRS232Device' [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.HomeMatic' [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.HomeMaticThermo' [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.HomeMaticWindow' [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.HttpGarageDoorOpener' [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.HttpHygrometer' [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.HttpThermometer' [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.Tesla' [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.X10' [4/25/2017, 9:27:08 AM] Registering accessory 'homebridge-legacy-plugins.mpdclient' [4/25/2017, 9:27:08 AM] Registering platform 'homebridge-legacy-plugins.Domoticz' [4/25/2017, 9:27:08 AM] Registering platform 'homebridge-legacy-plugins.HomeAssistant' [4/25/2017, 9:27:08 AM] Registering platform 'homebridge-legacy-plugins.HomeSeer' [4/25/2017, 9:27:08 AM] Registering platform 'homebridge-legacy-plugins.ISY' [4/25/2017, 9:27:08 AM] Registering platform 'homebridge-legacy-plugins.LIFx' [4/25/2017, 9:27:08 AM] Registering platform 'homebridge-legacy-plugins.SmartThings' [4/25/2017, 9:27:08 AM] Registering platform 'homebridge-legacy-plugins.TelldusLive' [4/25/2017, 9:27:08 AM] Registering platform 'homebridge-legacy-plugins.ZWayServer' [4/25/2017, 9:27:08 AM] --- [4/25/2017, 9:27:09 AM] Loaded plugin: homebridge-smartthings [4/25/2017, 9:27:09 AM] Registering platform 'homebridge-smartthings.SmartThings' [4/25/2017, 9:27:09 AM] --- [4/25/2017, 9:27:09 AM] Loaded config.json with 0 accessories and 1 platforms. [4/25/2017, 9:27:09 AM] --- [4/25/2017, 9:27:09 AM] Loading 1 platforms... [4/25/2017, 9:27:09 AM] [SmartThings] Initializing homebridge-smartthings.SmartThings platform... [4/25/2017, 9:27:09 AM] [SmartThings] Fetching Smart Things devices. [4/25/2017, 9:27:09 AM] [SmartThings] Error received type undefined - undefined [4/25/2017, 9:27:09 AM] [SmartThings] Unknown Capabilities: []

bdee1 commented 7 years ago

I assume there are other logs you will need in order to troubleshoot? just let me know where to get them and i will post.

pdlove commented 7 years ago

In your smartthings console, goto live logging and then try to launch homebridge. It should pop up a tab for the JSON API that shows you all of the log events.

bdee1 commented 7 years ago

ok i found it. here are the events that popped up in the live log

2fc332d9-89e9-422e-a462-562ff84fd102 9:36:20 PM: debug devicetype:04, mac:00178848324F, networkAddress:C0A80105, deviceAddress:0050, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-00178848324f, ssdpTerm:urn:schemas-upnp-org:device:basic:1

2fc332d9-89e9-422e-a462-562ff84fd102 9:36:20 PM: debug devicetype:04, mac:00178848324F, networkAddress:C0A80105, deviceAddress:0050, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-00178848324f, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-00178848324f

2fc332d9-89e9-422e-a462-562ff84fd102 9:36:19 PM: debug devicetype:04, mac:00178848324F, networkAddress:C0A80105, deviceAddress:0050, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-00178848324f::upnp:rootdevice, ssdpTerm:upnp:rootdevice

bdee1 commented 7 years ago

it appears that these items might be referring to my hue bridge: show hub

pdlove commented 7 years ago

That looks like it's the traffic in the log produced by Hue Connect. I expected to see something from the actual JSON API smartapp.

bdee1 commented 7 years ago

those came up when i clicked the tab in the live log for the JSON API smartapp. of course now when i run homebridge with the live log open, the JSON API tab doesnt pop up and no events are logged.

bdee1 commented 7 years ago

I am pretty stumped - I cant figure out what device it is choking on. I do have a virtual switch of type "Simulated Switch" - does your smartapp support those?

pdlove commented 7 years ago

@bdee1 There isn't anything else I can do to help unless you'll agree to let me sign into your smartthings account. If so then change your password, let me know by email what it is (And login) and I'll take a look. If I can't figure it out then we can get someone at Smartthings support to take a look. My email is pdlovelace@gmail.com

bdee1 commented 7 years ago

id be happy to do that and I appreciate your efforts. I will email you in a moment.

bdee1 commented 7 years ago

ok - i just emailed you the password. please let me know once you are all set so I can change it back... thanks again for your help!!

pdlove commented 7 years ago

For everyone's benefit, the issue was that the App ID wasn't updated after having deleted and installed a new version of the app. Normally that wouldn't be an issue but at some point the old smartapp had been deleted and recreated instead of simply updated.