Works great! Thanks for the quick response, this is certainly worth my support.
Is there any way to edit which tiles show up for the Neurio device? I don’t generate any power. Also, what is ENERGY supposed to represent? Is that the total calculated since the Neurio was installed?
Is there an Android version, and if not, what’s holding it back, errors in the Android app interface?
Is there a quick description about how this works anywhere? I’ll keep searching, and clearly there is the Neur.io site I’m combing, but I’m curious what the appliances are, do they come from Neur.io, or are they energy monitors/switches in ST? Sorry for any obvious questions.
ST has been aware of this issue since the Android V1.7 upgrade mess…The ticket has been open since May 9th. I’ve done many representations to ST about this UI issue, but the Android Engineering team seems to be too busy to fix it.
The issue is sproadic: not all the Neur.io appliance objects are affected. For instance, at my home, only the Dryer is crashing the Android UI.
BTW, the UI issue does not affect the main Neur.io power & energy meter exposed to ST, just some appliances detected by the device.
Hello @Tyler, I have some issues with Android 1.7.2.
As previously discussed, I created a Neurio Service Manager for instantiating some Neurio Device and Neurio Appliance objects into ST.
See my device type code at github:
The service manager is under
The Service Manager works only on iOS for the moment (as there is an ongoing support ticket with the login page not loading properly on Android), but that’s not the issue I want to expose here.
The objects that I instantiated with the Neurio Service Manager can be properly loaded into the Things shortcut on the iOS dashboard, but not on Android.
It looks like an object created under iOS cannot be loaded in the Android UI? I would have thought that an object is UI & OS independent, but it doesn’t look like it in my use case.
Please advise.
They come from Neur.io which can infer the appliances by looking at their power consumption signature. The appliance detection is far from perfect (especially in a ‘busy’ house), but it works for big items such as dryers, air conditioners, water heaters, etc.
Nuer.io is exactly that, a one-off company where you don’t own the data. I have one and use @yvesracine’s integration method for Android devices. I can’t say I use the integration really for anything other than getting the usage data into my own DB for tracking purposes.
I am brand new to smart things, but have had Neurio for a while. Right now I have followed the instructions for your SmartApp and DeviceType install with ST.
However, on my “things” screen (latest smart things app), I see only my 3 devices, not any “Neurio” “thing.” The same is true here, I have 3 appliances, but no actual base Neurio: https://graph.api.smartthings.com/device/list
You may want to activate the live logging in the IDE when executing MyNerurioServiceMgr and PM me
the logs for the device itself and the smartapp (by filtering at the top).
There could be some ST or Neur.io platform changes that may affect you.
Ok let me do it once more with live logging active. Can you tell me how to safely remove, everything? Just go to the API Graph for ST and delete anything related to the My Neurio including the Devie Objects, DeviceType and SmartApps?
You are correct, I do not see the Neurio device in the IDE at all, only the appliances.
I’ve got live logging running and see these errors:
418c90fc-9853-427e-a152-01c5114123b4 10:10:07 AM: debug MyNeurioServiceMgr>too many exceptions/errors or unauthorized exception, (19 errors), need to re-login at Neurio...
418c90fc-9853-427e-a152-01c5114123b4 10:10:07 AM: error MyNeurioServiceMgr>too many exceptions/errors or unauthorized exception, (19 errors), need to re-login at Neurio...
418c90fc-9853-427e-a152-01c5114123b4 10:10:07 AM: error MyNeurioServiceMgr>exception java.lang.NullPointerException: Cannot invoke method poll() on null object while trying to poll the device null, exceptionCount= 19
I decided to re-run the SmartApp for Neurio based on your suggestion, and wala, it shows up. Must have been a temporary issue with the login/handshake from Neurio’s cloud to ST. Works like a champ now.
I had the same thing occur after updating to the latest and greatest the other day. I ended up having to blow everything out and when I went to re-create, only my 1 appliance came through. I then had to run setup a second time for the main Neurio device to show up. I didn’t think much of it until I read that you had the same thing happen.
@yvesracine I cannot get your app to work. after clicking on the auth link, it just returns the json {"error": true, "type": "AccessDenied","message:"This request is not authorized by the specified access token"}
If anyone has any issues with this app, check what shard you are on. This is what I had to do to fix it.
edit the bottom of the MyNeurioServiceMgr and change this:
//Not able to use getApiServerUrl: need to contact Neurio support about it
//def getServerUrl() { return getApiServerUrl() }
def getServerUrl() { return "https://graph.api.smartthings.com" }
to this:
//Not able to use getApiServerUrl: need to contact Neurio support about it
def getServerUrl() { return getApiServerUrl() }
// def getServerUrl() { return "https://graph.api.smartthings.com" }
and if you are on the graph-na02 shard like me the redirect url in neurio is now wrong, you will need to change these values to your own neurio oauth values.
Go and register a new app at my.nerio, make sure the callback url is set to https://graph-na02-useast1.api.smartthings.com
def getSmartThingsClientId() { <redacted> } // <-- change to your Neurio Application Client ID
def getSmartThingsPrivateKey() { <redacted> } // <-- change to your Neurio Application Client Secret