I just got my API keys. I put the key in the app key field, and the secret in the private key field. Iām getting a general or malformed request body error nullā¦ Error. Any ideas on what I missed?
I was really excited about neurio last year when I first stumbled upon it and then I sort of forgot about it. Recently, I remembered, which brought me to your thread.
How are you liking it so far? Would you buy it again, knowing what you know now and having used it for a little while?
@bmmiller, the Neurio device by itself works very well so far. Itās very reliable and I get my Power & Energy metrics
on a regular basis as opposed to my old TED 5000 device which was not as reliable due to technology used (communications via powerline).
Iām also very pleased with the Neurio web portal & app design so far. They have invested a lot of time & efforts in designing easy-to-use interfaces for all types of users out there.
However, the appliance detection is disappointing so far. I own a house and itās always complaining of the house being too busy.
I think that the overall appliance detection solution at the moment is more geared toward small apartments than houses.
Neurio is supposed to release a new algorithm later on that will correct the issue.
P.S. In the meantime, Iām working on exposing all the appliances detected by Neurio to SmartThings for some home automation scenarios later.
Iāve got my Neurio installed and reporting but it looks like the API key situation has changed slightly since original development. You can request yourself at:
Iāve āregisteredā an app and gotten a Client ID and Secret Key which Iāve set up in the preferences as the app key and private key, respectively. (For posterity, I attempted it both ways)
Iām still getting a Forbidden error in the logs:
11:31:53 AM: error groovyx.net.http.HttpResponseException: Forbidden @ line 424
In setting up the API app on Neur.ioās site, they ask for a Callback URL, which Iāve just supplied a dummy URL of https://ide.smartthings.com but Iām guessing thatās where the issue might lie?
Iāve also made sure OAuth is setup on the SmartApp.
@bmmiller, could you contact support@neur.io to get the API keys needed for the SmartThings integration? The current integration does not support callback & redirection.
Itās my understanding that the API keys generated on their portal are not meant to be used for the SmartThings integration yet.
Iām currently working on a cloud-to-cloud integration (Service Manager), but it needs to be tested and certified by both parties (SmartThings & Neurio) before being released.
For the moment, youād need to get the private keys provided by support and use MyNeurioInit as described in the following readme file:
I contacted their support staff and they told me that it shouldnāt matter and probably wasnāt the API key but created one for me anyway.
After this, I noticed that what they provided me appeared in the same location on their website, where I had created my own. In doing this, they just used dummy URLs of testapp.com, etc.
After seeing this, I looked a little bit harder and noticed that I mistakenly reused a Network ID that I had on another device. After changing this, everything appears to be working now.
Reporting it here so we can confirm that the API key we can generate ourselves works fine, and that the callback URL you are supposed to provide will be ignored.
P.S. For those of you who have a Neurio device running now, you still need to get new API keys at the portal. You can still use the old Neurio device till you have created all your Neurio objects with the new Service Manager.
At the end, you can delete the old Neurio Object by clicking on it at https://graph.api.smartthings.com/device/list
and hitting the ādeleteā button at the bottom of the screen. Before deleting your old Neurio device, please make sure that it is not be assigned to any of your smartapps.
Thank you @yvesracine! This looks awesome. I am running into an error though when trying to select my appliances. In the iPhone app it says failed to save page: appliancelist. I also see this in the IDE: 1:36:35 PM: error groovy.json.JsonException: A JSON payload should start with an openning curly brace ā{ā or an openning square bracket ā[ā.
Instead, ānullā was found on line: 1, column: 1 @ line 690
Also, FYI, the URL in the readme for the appliance device type is incorrect and doesnāt work. I was able to find the correct URL, but wanted to let you know so that you could update it.
I ran into some smartappās execution time constraints when trying to create the My Neurio Appliance objects myself.
You need to select few appliances (2-3 max) to avoid this issue (and not the whole bunch).
Also, please run the live logging prior to the MyNeurioServiceMgr smartappās execution, so that you can PM me the logs of any errors related to the smartapp or My Neurio device type.
There may be some rate limiting issues on the Neur.io side as well. In that case, youād have the following error in the logs:
groovyx.net.http.HttpResponseException: Too Many Requests