tonesto7 / homebridge-smartthings

SmartThings Homebridge Plugin
384 stars 767 forks source link

Updated - Not seeing Direct Connect Is Listening & Communication Established lines #148

Closed scooter133 closed 7 years ago

scooter133 commented 7 years ago

I did the Update on my SmartThings account, published.

I ran "npm update homebridge -g" and after it did its thing the last line reads:

C:\Users\Scott Townsend\AppData\Roaming\npm -- homebridge@0.4.16` Not too hip on NPM, though I thought that should be v 0.5.2?

Then updated SmartThings, no output C:\Users\Scott Townsend\.homebridge>npm update homebridge-smartthing -g

Then Ran homebridge. This is the output. It looks like it didn't get updated?

C:\Users\Scott Townsend.homebridge>homebridge [2/16/2017, 6:59:24 PM] Loaded plugin: homebridge-http [2/16/2017, 6:59:24 PM] Registering accessory 'homebridge-http.Http' [2/16/2017, 6:59:24 PM] --- [2/16/2017, 6:59:26 PM] Loaded plugin: homebridge-nest [2/16/2017, 6:59:26 PM] Registering platform 'homebridge-nest.Nest' [2/16/2017, 6:59:26 PM] --- [2/16/2017, 6:59:26 PM] Loaded plugin: homebridge-philipshue [2/16/2017, 6:59:26 PM] Registering platform 'homebridge-philipshue.PhilipsHue' [2/16/2017, 6:59:26 PM] --- [2/16/2017, 6:59:26 PM] Loaded plugin: homebridge-smartthings [2/16/2017, 6:59:26 PM] Registering platform 'homebridge-smartthings.SmartThings' [2/16/2017, 6:59:26 PM] --- [2/16/2017, 6:59:26 PM] Loaded config.json with 0 accessories and 1 platforms. [2/16/2017, 6:59:26 PM] --- [2/16/2017, 6:59:26 PM] Loading 1 platforms... [2/16/2017, 6:59:26 PM] [SmartThings] Initializing SmartThings platform... [2/16/2017, 6:59:26 PM] [SmartThings] Fetching Smart Things devices. [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group switch, Name AnimalSwitch4, ID e7532c8e-99ad-4c0f-bba2-98322884af7f [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group lights, Name Bedroom Light, ID 8aadd5d4-0980-44c2-bf11-c4dcd9d4fe6e [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group switch, Name Chicken Light, ID 205ffda6-6411-49d9-b118-fa1062af05b2 [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group lights, Name Light, ID 2763f755-1077-407e-a342-278d940c05ec [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group switch, Name Front Porch Light, ID 2701ba40-aed0-4683-bfca-fa0e87a7b396 [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group lights, Name Jen's Nightstand, ID 80bd35c0-552f-4cf4-a609-3b05f3b73184 [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group lights, Name Lights, ID 4f16a7fb-d6ef-4050-889c-5394b911dd70 [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group switch, Name Master Bath Shower Fan, ID 03644a98-e3d5-49eb-ba69-7148fc73100a [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group switch, Name Master Bath Towel Bars, ID 1926875f-f84d-4dee-a1b6-5140d3476e82 [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group switch, Name Master bedroom Light Switch, ID 867179ca-ce2f-473f-b593-3f667c3dc16c [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group sensor, Name Motion Sensor, ID be5b410b-a989-42be-bd09-6c9b779fb517 [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group switch, Name Rabbit Fan, ID 7439bc70-0f8f-4749-a96b-b145c22d20ab [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group switch, Name Rabbit Light, ID 65d75d43-efeb-45ca-b803-f9940d5ea571 [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group lights, Name Scott's Nightstand, ID b296774e-05e0-4eec-8d3e-c95a7761f011 [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group switch, Name Whole House Fan, ID 8a8275e5-a12b-4fba-8a81-78b2a55fa25a [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group lights, Name Shower NE, ID da2faa16-44e5-4f1b-a39a-c8fa293de418 [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group lights, Name Shower NW, ID cb26df7e-6f3c-47bb-88d8-02081926ac62 [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group lights, Name Shower SE, ID 729eb473-8509-4388-8482-16497e4c246b [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group lights, Name Shower SW, ID eaa4b4ee-0637-4a78-b7fc-3252ef6c1689 [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group lights, Name Kitchen SW, ID f7e9744b-59dc-41f2-be40-58647da01a2c [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group lights, Name Kitchen NW, ID 1f8b2f3a-50fc-451f-8555-5c9d6ad0f45f [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group switch, Name Christmas Tree, ID fb313b04-8046-4063-b707-3873cc39777b [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group sensor, Name Jennifer's iPhone, ID 2ae0eab7-7932-4a96-8cdf-7f9186d1081a [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group sensor, Name Front Porch Multisensor, ID c47b9fec-4a30-4f66-a8ff-a1acbf4df592 [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group thermostats, Name Nest Thermostat, ID 80bfd0e7-1dbc-428b-9ea7-e22bc6820780 [2/16/2017, 6:59:28 PM] [SmartThings] Device Skipped - Group unknown, Name Scott's Minimote, ID 09c6cbce-5f79-44a4-bc74-fdff4645cf78, JSON: {"name":"Scott's Minimote","basename":"Aeon Minimote","deviceid":"09c6cbce-5f79-44a4-bc74-fdff4645cf78","status":"IN ACTIVE","manufacturerName":null,"modelName":null,"lastTime":"2017-02-16T17:15:06+0000","capabilities":{"Configuration":1,"Button":1,"Sensor":1,"Actuator":1,"Holdable Button":1},"commands":{"configure":[]},"attributes":{"button":"pushed","numberOfButtons":4 }} [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group sensor, Name Scott's iPhone, ID 6f3f0279-8dbd-4bb0-80f0-037582252c3e [2/16/2017, 6:59:28 PM] [SmartThings] Device Skipped - Group unknown, Name ZWN-SC7 Enerwave 7 Button Scene Controller, ID c730e468-c799-4967-acb1-11776d76d830, JSON: {"name":"ZWN-SC7 Enerwave 7 Button Scene Controller","basename":"ZWN-SC7 Enerwave 7 Button Scene Controller","deviceid":"c730e468-c799-4967-acb1-11776d76d830","status":"INACTIVE","manufacturerName":"Wenzhou MTLC Electric Appliances Co.,Ltd.","modelName":null,"lastTime":null,"capabilities":{"Configuration":1,"Indicator":1,"Button":1,"Sensor":1," Actuator":1},"commands":{"configure":[],"indicatorWhenOn":[],"indicatorWhenOff":[],"indicatorNever":[]},"attributes":{"indicatorStatus":null,"button":"button 4","numberOfButtons":null,"currentButton":null,"numButtons":"7"}} [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group sensor, Name Netatmo Outdoor, ID 2699cc3c-4839-479b-9fc5-7086b320cac8 [2/16/2017, 6:59:28 PM] [SmartThings] Device Added - Group sensor, Name Netatmo Indoor, ID 2aa02442-5aba-4054-a2aa-348f4d4cf0f5 [2/16/2017, 6:59:28 PM] [SmartThings] Unknown Capabilities: ["Health Check","Light","Illuminance Measurement","Ultraviolet Index","Button","Holdable Button"] [2/16/2017, 6:59:28 PM] [SmartThings] Initializing platform accessory 'AnimalSwitch4'... [2/16/2017, 6:59:28 PM] [SmartThings] Initializing platform accessory 'Bedroom Light'... [2/16/2017, 6:59:28 PM] [SmartThings] Initializing platform accessory 'Chicken Light'... [2/16/2017, 6:59:28 PM] [SmartThings] Initializing platform accessory 'Light'... [2/16/2017, 6:59:28 PM] [SmartThings] Initializing platform accessory 'Front Porch Light'... [2/16/2017, 6:59:28 PM] [SmartThings] Initializing platform accessory 'Jen's Nightstand'... [2/16/2017, 6:59:28 PM] [SmartThings] Initializing platform accessory 'Lights'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Master Bath Shower Fan'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Master Bath Towel Bars'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Master bedroom Light Switch'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Motion Sensor'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Rabbit Fan'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Rabbit Light'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Scott's Nightstand'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Whole House Fan'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Shower NE'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Shower NW'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Shower SE'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Shower SW'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Kitchen SW'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Kitchen NW'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Christmas Tree'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Jennifer's iPhone'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Front Porch Multisensor'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Nest Thermostat'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Scott's iPhone'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Netatmo Outdoor'... [2/16/2017, 6:59:29 PM] [SmartThings] Initializing platform accessory 'Netatmo Indoor'... Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐
│ 031-45-155 │
└────────────┘

[2/16/2017, 6:59:29 PM] Homebridge is running on port 51826.

tannebil commented 7 years ago

I'm also not seeing the Direct Connect message after doing the upgrade. Homebridge 0.4.16 and homebridge-smarthings 0.4.7. Everything appears to be working although I have not banged hard on my SmartThings devices yet (I only have a few door sensors and geofence occupancy on SmartThings).

What device needs to communicate with my server running homebridge? The SmartThings hub (which is on the same network) or traffic from one of the external SmartThings application servers? Do I need to forward TCP on port 8000 to my homebridge server? I tried forwarding but it didn't change the result.

scooter133 commented 7 years ago

I was able to get mine going, though I still do not have the Direct Connect message. I ended up having to change the username in the config file and then re-adding homebridge to my HomeKit and re-assign all of my devices to the respective rooms. So I'm back up to where I was, though Still don't seem to have the Direct Connect message.

pdlove commented 7 years ago

If you aren't seeing an attempt for Direct Connect and you have not set the update_method configuration option then you definitely have not updated homebridge-smartthings. On your update command above... you left the last s off. Could it be that easy?

tannebil commented 7 years ago

i copied the update command out of the README so I double-checked it and the README is missing the "s" in the update command. i reran it and now I'm seeing the Direct Connect" message. Thanks!

pdlove commented 7 years ago

I'll get the readme fixed. Glad it worked. @scooter133 let me know if you still have the problem.

scooter133 commented 7 years ago

Yeah I copied out of the read me too! (-; Thought it was odd that there was no output on the 'npm update homebridge-smartthing -g' command.

Its working now.

C:\Users\Scott Townsend\.homebridge>npm update homebridge-smartthings -g
C:\Users\Scott Townsend\AppData\Roaming\npm
`-- homebridge-smartthings@0.5.1

C:\Users\Scott Townsend\.homebridge>homebridge
[2/20/2017, 10:34:38 AM] Loaded plugin: homebridge-http
[2/20/2017, 10:34:38 AM] Registering accessory 'homebridge-http.Http'
[2/20/2017, 10:34:38 AM] ---
[...snip...]
[2/20/2017, 10:34:44 AM] Homebridge is running on port 51826.
[2/20/2017, 10:34:44 AM] [SmartThings] Direct Connect Is Listening On 10.11.0.5:8000
[2/20/2017, 10:34:44 AM] [SmartThings] SmartThings Hub Communication Established