Smart app broken with the new update #27
Comments
Same here - doesn't open after the new update (with the new icon). |
Same here. |
This is odd seeing as nothing has changed except the deviceQuery method. Are you seeing any errors in the IDE logs |
below is the error I am seeing in IDE, while trying to open the app error java.lang.NullPointerException: Cannot get property 'authorities' on null object @ line 25 |
That because Oauth is not enabled under the smart app settings in the IDE |
i'm not sure why if it was enabled before that it wouldn't now, but honestly SmartThings changes/breaks something new everyday |
I have confirmed I have oAuth enabled (and the app is not working). On Thursday, February 11, 2016, Tonesto7 notifications@github.com wrote:
|
Are you in the US? or UK? Maybe ST is having issues with oauth... |
I am US. I think it would be good to ask- it should open without any homebridge From what I understand, I have to open the app first to know what settings Thanks for your help. On Thursday, February 11, 2016, Tonesto7 notifications@github.com wrote:
|
I'm pretty sure this api isn't using the new oauth authentication methods to expose the endpoint. (This should be addressed before ST flips the switch on these older methods. |
Correct... Once you open the app the first time it will generate a token that will be added to the config.json file the application generates |
I can't seem to get it to work. When I go on the app on my phone, I can see the JSON complete API, but if i touch it, it doesn't do anything.... |
That one is my bad and I apologize for the inconvenience it caused. I just submitted the pull request to fix this issue. |
Thank you for the response to this, I am new to all of this and I wanted to make sure it was something I wasn’t doing incorrectly. I did have to do something different than on the instructions. I can’t seem to link my smartthings account with github. I get the whole 404 page not found. So I worked around it by copying the code information and created it as my “own” smart app. Does that cause any problems?
|
@Jarretpayne |
Will do my friend, thank you. Will I simply need to keep checking the webpage to see if it has been update?
|
@Jarretpayne - I had the same issue with you getting my github integration (404). The trick is that you need to create a Repository on your github called "SmartThingsPublic". Click the "+New Repository" on the right side under "Your Repositories," name it SmartThingsPublic, and click "Create Repository." Then you can integrate Smartthings IDE with github. And then you are able to add pdlove repo afterward, and the readme makes sense. Also- pdlove commited the changes and the working code is now live. I have confirmed that it is working. |
Can someone help me out... what do I need to do to view the log.debug stuff that an app outputs? I don't see any of it in the log (even using log.error) and it's making my work on subscriptions really difficult. |
just for example: if you uncomment line 168 and 172 of the smartapp and publish you should begin to see every device query made in the Live Logging IDE https://graph.api.smartthings.com/ide/logs |
@tonesto7 Is that even running it from the IDE in simulation? |
Not unless the simulated device was being polled by homebridge (if that's possible to-do)... I always forget about the Simulator because it rarely ever worked for me in the past. |
I just uncommented line 168 and 172 as you suggested and I'm not getting any events in the logs when polling. |
I updated everything and I was able to go to the next screen and selected all the devices. I am not home so I cannot check things out. I assume now I would be able to control things by talking to siri? Be it setting the alarm or routines?
|
I've noticed lately that the logger has a lot of issues with certain exceptions not even being output even if they are handled appropriately. |
@Jarretpayne Now you need to go to your server where you installed homebridge (https://github.com/nfarina/homebridge/) and create/edit the config.json file. After that, you start homebridge on the server and add homebridge to your homekit on your phone. |
@tonesto7 I attached the groovy app I'm using to test this. When I turn on light number 1, it turns on light number 2 but doesn't log anything. I'll look up how to contact smartthings about it. |
let me take a look at it... I noticed that i'm not getting any logs coming in from the Json app so not sure what that is about. I seeing logs from other apps just fine. |
@pdlove I just ran the app and it's outputting the evt.value like it should. I recommend that you close out all instances of your browser and if you can reboot you computer. |
@tonesto7 I just got an email back from support that some accounts are affected by an ongoing issue. sigh I'm the odd man out. |
I am sorry to bug you again, before i get home to do that, I am unclear on the create/edit of the config.json file. Can you dumb that down for me? I appreciate your patience.
|
Are you using linux or ? for your homebridge server? I assume you've already installed homebridge on your server..right? |
I have a mac.
|
Ok- well you need to get homebridge installed. I think this may help you. https://www.reddit.com/r/homeautomation/comments/3ysgbb/homebridge_how_to_on_mac/ Then, you have to create the config.json file in the .homebridge folder. Something like:
|
There is a button at the bottom of the SmartApp that creates the file. Just use the share function of iOS to share it. It will share as a direct link to download the file. |
@tonesto7 it doesn't create the full config.json file required. You need the bridge part, otherwise it won't work. |
removed |
I just updated my smart app and it looks like it is broken, I wasn't able to open the app and it is creating multiple instances. I deleted it and now I am using old version.
The text was updated successfully, but these errors were encountered: