StrykerSKS / SmartThingsPublic

32 stars 11 forks source link

Issue: Open Contacts will not save via Android #71

Closed neonguyrt closed 8 years ago

neonguyrt commented 8 years ago

Tried saving the open contacts on my Samsung Galaxy Note 5 and I receive "an unexpected error has occurred" when pressing "done" to save the smartapp. Phone: Verizon Samsung Galaxy Note 5 (Samsung-SM-N920V) Android Version 6.0.1

StrykerSKS commented 8 years ago

Investigating

neonguyrt commented 8 years ago

If you need an android system to test with, you can download eclipse and android SDK. Then you can use android simulator. LMK if you need anything from me. Thanks!

StrykerSKS commented 8 years ago

Thanks, I have access to a Galaxy S7 Edge that I'm testing on. So far I'm unable to reproduce this issue though. I'm updating the SmartThings app to see if perhaps something broke in the most recent version.

In the meantime, can you ensure that you have the latest versions of all the Ecobee components? (Connect, Thermostat, Routines, etc)

neonguyrt commented 8 years ago

I used the github method and pulled from here.

neonguyrt commented 8 years ago

screenshot_20160912-133015

neonguyrt commented 8 years ago

Any way I can pull the logs from my phone and send to you? Need some help how to get them but willing to!

StrykerSKS commented 8 years ago

Not sure how to pull logs from the phone, but you CAN pull up the live logging from the SmartThings IDE (graph.api.smartthings.com/ide/apps). Just be sure to have the Ecobee (Connect) set to debug level 3 or higher (with 5 giving the most information).

My Android test phone won't let me install the SmartThings app for some unknown reason, so I'm still fighting with t hat.

neonguyrt commented 8 years ago

4f755360-b876-4ec9-aef6-da25567c7242 12:17:01 PM: error groovy.lang.MissingMethodException: No signature of method: script1473925347184369487434.LOG() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl, java.lang.Integer, null, java.lang.String, java.lang.Boolean, java.lang.Boolean) values: [Test installed() entered, 5, null, debug, ...] Possible solutions: now(), url(), run(), any(), page(), poll() @ line 312

StrykerSKS commented 8 years ago

Can you confirm which module that error came out of? (4f755360-b876-4ec9-aef6-da25567c7242)

I'm assuming it is Open Contacts app that gave that error but that doesn't really make sense why it would do that.

Are you trying to run the SmartApp standalone perhaps? Or are you creating it from within the Ecobee (Connect) SmartApp?

This is a Child SmartApp that you need to create from within the Ecobee (Connect) SmartApp

neonguyrt commented 8 years ago

Standalone smart app ecobee open contacts.

-------- Original message -------- From: Sean Schneyer notifications@github.com Date: 9/17/16 3:05 PM (GMT-05:00) To: StrykerSKS/SmartThingsPublic SmartThingsPublic@noreply.github.com Cc: neonguyrt neonrt7@hotmail.com, Author author@noreply.github.com Subject: Re: [StrykerSKS/SmartThingsPublic] Issue: Open Contacts will not save via Android (#71)

-------- Original message -------- From: Sean Schneyer notifications@github.com Date: 9/17/16 3:05 PM (GMT-05:00) To: StrykerSKS/SmartThingsPublic SmartThingsPublic@noreply.github.com Cc: neonguyrt neonrt7@hotmail.com, Author author@noreply.github.com Subject: Re: [StrykerSKS/SmartThingsPublic] Issue: Open Contacts will not save via Android (#71)

Can you confirm which module that error came out of? (4f755360-b876-4ec9-aef6-da25567c7242)

I'm assuming it is Open Contacts app that gave that error but that doesn't really make sense why it would do that.

Are you trying to run the SmartApp standalone perhaps? Or are you creating it from within the Ecobee (Connect) SmartApp?

This is a Child SmartApp that you need to create from within the Ecobee (Connect) SmartApp

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/StrykerSKS/SmartThingsPublic/issues/71#issuecomment-247798189, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVCIHx_FWsxGOYo0FRtX4w2pUYaxCxS8ks5qrDoDgaJpZM4J3WI8.

StrykerSKS commented 8 years ago

This is NOT a standalone SmartApp, you HAVE to run it from the Ecobee (Connect) app per the instructions in the README file.

neonguyrt commented 8 years ago

I do not have the option to run this from ecobee connect. Once I select the ecobee and the sensor it says it's connected and returns me to home page.

-------- Original message -------- From: Sean Schneyer notifications@github.com Date: 9/17/16 9:48 PM (GMT-05:00) To: StrykerSKS/SmartThingsPublic SmartThingsPublic@noreply.github.com Cc: neonguyrt neonrt7@hotmail.com, Author author@noreply.github.com Subject: Re: [StrykerSKS/SmartThingsPublic] Issue: Open Contacts will not save via Android (#71)

This is NOT a standalone SmartApp, you HAVE to run it from the Ecobee (Connect) app per the instructions in the README file.

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/StrykerSKS/SmartThingsPublic/issues/71#issuecomment-247818921, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVCIHxtj4czt9-cRa_HJ3FM5S4H-6k20ks5qrJhegaJpZM4J3WI8.

StrykerSKS commented 8 years ago

Click on Automations --> SmartApps --> Ecobee (Connect)

Then select Helper SmartApps.

From there you can create an ecobee Routines or ecobee Open Contacts child SmartApp.

neonguyrt commented 8 years ago

No Helper Smartapps. This is all I have when selecting ecobee connect... screenshot_20160917-221043

StrykerSKS commented 8 years ago

Then you aren't using MY Ecobee (Connect) code, you must be using the stock Ecobee connect from SmartThings.

neonguyrt commented 8 years ago

Pretty sure I am. image

StrykerSKS commented 8 years ago

Nope, not possible. There is not code in mine that would possibly create the screenshot that you presented. Even the ability to Remove the SmartApp is one layer deeper in my version.

I suspect that you installed the code in the IDE, but when you went into the Marketplace to install you did not use the My Apps option and instead selected from the normal path.

Only other option is that SmartThings has changed something on their backend that would cause their app to override mine since they are in the same namespace.

To check, go into the IDE, click My Locations --> [Your location name] --> List SmartApps (scroll all the way down). Then find the Ecobee (Connect) app. It should have the word "(dev)" at the end to indicate that it is running a developer version. Click on it to open up the popup and there should be a host of settings, subscriptions, etc.

Do you see these Settings: debugLevel, holdType, showThermsAsSensor?

If you don't see those then you are not running my code.

neonguyrt commented 8 years ago

How do I fix it then? Remove it and start over? image

StrykerSKS commented 8 years ago

Yup, not my code.

Suggest you remove the current SmartApp and reinstall using the My Apps section of the Marketplace

neonguyrt commented 8 years ago

ok, thx :)

neonguyrt commented 8 years ago

Thats what It was. I had installed Ecobee prior to finding this code and tried to modify it. I did not see directions to remove it or start as if the thermostat was not yet added. Thanks for the help!