tonesto7 / homebridge-smartthings-tonesto7

42 stars 86 forks source link

Not Saving Devices #61

Closed Josh3955 closed 4 years ago

Josh3955 commented 4 years ago

Verify the following before opening an trouble issue

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!


About Your Setup

Expected Behavior

Devices should save in the App and been seen by Homebridge

Current Behavior

Not saving and not showing up

Steps to Reproduce (for bugs)

I followed the steps. I have 1 switch, 1 plug, and 1 bulb in SmartThings. Works fine from there. Followed the steps to link to GitHub,publish the app to myself, then went into the classic app, marketplace, and added the app for this. selected all three devices and hit save. Went back in, they are not saved.

Interestingly enough, it IS showing a "Security System" attached smartThings...even shows it during homebridge startup...thats the only device in HomeKit. And I don't even have a security system.

[03/10/2019, 04:23:29] Loaded config.json with 2 accessories and 2 platforms. [03/10/2019, 04:23:29] --- [03/10/2019, 04:23:31] Loaded plugin: homebridge-chamberlain [03/10/2019, 04:23:31] Registering accessory 'homebridge-chamberlain.Chamberlain' [03/10/2019, 04:23:31] --- [03/10/2019, 04:23:41] Loaded plugin: homebridge-nest [03/10/2019, 04:23:42] Registering platform 'homebridge-nest.Nest' [03/10/2019, 04:23:42] --- [03/10/2019, 04:23:52] Loaded plugin: homebridge-roomba [03/10/2019, 04:23:52] Registering accessory 'homebridge-roomba.Roomba' [03/10/2019, 04:23:52] --- [03/10/2019, 04:24:00] Loaded plugin: homebridge-smartthings-tonesto7 Homebridge Version: 2.4 [03/10/2019, 04:24:01] Registering platform 'homebridge-smartthings.SmartThings' [03/10/2019, 04:24:01] --- [03/10/2019, 04:24:01] Loading 2 platforms... [03/10/2019, 04:24:01] [Nest] Initializing Nest platform... [03/10/2019, 04:24:01] [Nest] Fetching Nest devices. [03/10/2019, 04:24:01] [SmartThings] Initializing SmartThings platform... [03/10/2019, 04:24:01] [SmartThings] Fetching SmartThings devices. [03/10/2019, 04:24:02] Loading 2 accessories... [03/10/2019, 04:24:02] [Garage Door] Initializing Chamberlain accessory... [03/10/2019, 04:24:03] [Rosie] Initializing Roomba accessory... [03/10/2019, 04:24:05] [SmartThings] Unknown Capabilities: [] [03/10/2019, 04:24:05] [SmartThings] Initializing platform accessory 'Security Alarm'... [03/10/2019, 04:24:05] [SmartThings] update_method: direct [03/10/2019, 04:24:05] [SmartThings] Direct Connect Is Listening On 192.168.11.210:8000 [03/10/2019, 04:24:07] [SmartThings] SmartThings Hub Communication Established [03/10/2019, 04:24:10] [Nest] initing thermostat "Nest": deviceId: 02AA01AB381200DT structureId: 31746260-e0f0-11e2-9536-1231390bec91 [03/10/2019, 04:24:10] [Nest] initing home_away_sensor "Home/Away": deviceId: 31746260-e0f0-11e2-9536-1231390bec91 structureId: 31746260-e0f0-11e2-9536-1231390bec91 [03/10/2019, 04:24:10] [Nest] Initializing platform accessory 'Nest'... [03/10/2019, 04:24:10] [Nest] Initializing platform accessory 'Home/Away'...

Context

**How has this issue affected you? What are you trying to accomplish? I can't get it to work at all.


Please include a copy of any relevant log output to assist in tracking down the bug

squixz commented 4 years ago

Josh, Paul the "bug" is obviously closed but what was the cause of the problem? I have exactly the same thing. I cannot save devices in the app on my iPhone. I must admit that I didn't succeed in connecting to Github so I created a Smartapp and copied the full groovy source in it. Further followed all instructions.

Of course it does not load an accessory.

[SmartThings] Initializing SmartThings platform... [10/9/2019, 12:47:09 AM] [SmartThings] Fetching SmartThings devices. [10/9/2019, 12:47:09 AM] Loading 0 accessories... [10/9/2019, 12:47:10 AM] [SmartThings] Unknown Capabilities: [] [10/9/2019, 12:47:10 AM] [SmartThings] update_method: direct [10/9/2019, 12:47:10 AM] [SmartThings] Direct Connect Is Listening On 102.168.20.109:8000

Josh3955 commented 4 years ago

Mine is still not showing it saved, but what got it to at least show up (meaning it did actually save) was that my app token changed for some reason within the SmartThings cloud. No clue how that happened. I redid that and it started at least showing up.

Sent from my iPhone

On Oct 8, 2019, at 18:17, squixz notifications@github.com wrote:

 Josh, Paul the "bug" is obviously closed but was was the cause of the problem? I have exactly the same thing. I cannot save devices in the app on my iPhone. I must admit that I didn't succeed in connecting to Github so I created a Smartapp and copied the full groovy source in it. Further followed all instructions.

Of course it does not load an accessory.

[SmartThings] Initializing SmartThings platform... [10/9/2019, 12:47:09 AM] [SmartThings] Fetching SmartThings devices. [10/9/2019, 12:47:09 AM] Loading 0 accessories... [10/9/2019, 12:47:10 AM] [SmartThings] Unknown Capabilities: [] [10/9/2019, 12:47:10 AM] [SmartThings] update_method: direct [10/9/2019, 12:47:10 AM] [SmartThings] Direct Connect Is Listening On 102.168.20.109:8000

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

squixz commented 4 years ago

I have that too .. as soon as I have copied the config, press "done" and "save" , it changes ... not a clue how that can happen ... @Paul, maybe you can shine a light ?

corpsell commented 4 years ago

Any update on this? Same thing here.

tonesto7 commented 4 years ago

@corpsell Yes. Move to the new v2.0 plugin

corpsell commented 4 years ago

@tonesto7 Sorry, new to github. I hadn't realized this isn't for v2. I am on v2, never had v1 installed. At this point I still have the security system which shouldn't be there, and the washer and dryers off and on switches in my homekit. The switches seem to do nothing but cause my washer/dryer to "ding" about 15 seconds after hit. Nothing changes though, it will remain off or on. I read the live log on the IDE and there are several errors. I can DM them to you but wouldn't want to post it here until I know which numbers should be redacted if any. Also if it would help I could dump the "Device Data Viewer" info to you from the "Homebridge v2" app in the Smartthings Classic app if that'd help you.

Side note, the IDE log keeps throwing this every minute: groovy.lang.MissingMethodException: No signature of method: script_app_{I'VE_REMOVED_THIS}.codeCheck() is applicable for argument types: () values: [] Possible solutions: collect()

Thanks for all the hard work.