My Neurio Device

The Unofficial SmartThings Blog
Jump to: navigation, search

Neurio-product-Medium.jpg

Brand:Neurio

Model:Home Intelligent Monitor

Type: Smart Power & Energy Monitor

Protocol:Wi-Fi

Link to Neur.io website [1]

Device Type Author:Yves Racine

ST Community handle http://community.smartthings.com/users/yvesracine/activity

Company Link: http://www.ecomatiqhomes.com#!home/mainPage



Notes to MyNeurio Device Users - Contribution is now required

MyNeurio device has required a lot of development & testing efforts to build, so in order to get some support, a mandatory contribution is now required.


Support packages are available at my store:

http://www.ecomatiqhomes.com/store


If you want to contribute more, here is the paypal link below.

https://paypal.me/ecomatiqhomes


Prerequisites

  • Home Intelligent or Home Energy Monitor installed and connected to Neurio.
  • Please note that you cannot expose any appliances to ST if you have the Home Energy Monitor.
  • SmartThings hub fully operational

Information

Functionality:


The Neurio Intelligent Home Monitor has all the great features as the Home Energy Monitor, but layers on additional peace-of-mind features, allowing you to live more safely, comfortably and efficiently.

Here is the list of commands available:

   command "getCurrentUserInfo"
   command "getSampleStats"
   command "getLastLiveSamples"
   command "generateSampleStats"
   command "getApplianceData"
   command "getApplianceList"
   command "generateAppliancesStats"
   command "generateAppliancesEvents"

UI look and feel

MyNeurio P1.jpg NeurioP1-Med.jpg

MyNeurio Graph.jpg MyNeurio Graph P2.jpg


The button is used to change the "view window" (past week Vs. last 24h hrs).

Fields

  • Current power consumption
  • Current energy value
  • Yesterday's energy consumption
  • Yesterday's energy generation
  • 2 days ago's energy consumption
  • 2 days ago's energy generation
  • Weekly's energy consumption
  • Weekly's energy generation
  • Monthly's energy consumption
  • Monthly's energy generation


Device Type: http://github.com/yracine/device-type.myneurio

Instructions for My Neurio Device installation (readme): http://github.com/yracine/device-type.myneurio/blob/master/README.md

Known issues

.................................................................................................................................

1. Neurio partially supports wildcard URL redirection -not since last platform update related to getApiServerUrl()

.................................................................................................................................

Since the following platform update:

http://community.smartthings.com/t/developer-impact-infrastructure-changes/21249

The Neurio URL redirection to SmartThings does not work with getApiServerUrl(), so the current version of MyNeurioServiceMgr is still using the hard coded URL redirect.

Neurio is aware of the issue as they need to update their Oauth URL redirect, but there is no ETA.

There is a workaround described in the README at the github (see prerequisites).

https://github.com/yracine/device-type.myneurio

.................................................................................................................................

2. Some Neurio fields are not populated in its database

.................................................................................................................................

You may then encounter some appliances' error messages in the IDE live logging such as

poll>applianceId = XXXXXXXXXXXXXX, missing usagePourcentage stats value

poll>applianceId = XXXXXXXXXXXXXX, missing timeOn stats value

poll>applianceId = XXXXXXXXXXXXXX, missing eventCount stats value

Troubleshooting

Here are some typical troubleshooting cases explained below. For your specific use cases, you may want to contact the author (there may be some support fees applied).

.................................................................................................................................

1. I don't know how to create a custom device

.................................................................................................................................

See the explanations of a fellow community member here:

http://community.smartthings.com/t/faq-an-overview-of-using-custom-code-in-smartthings/16772

.................................................................................................................................

2. I created the device handler and MyNeurioServiceMgr in the IDE, but I don't know where to execute it

.................................................................................................................................


For the initial setup, under the ST app, click on the Marketspace item in the bottom menu, and then, on the smartapps link and finally, MyApps (last item in the list).

If you still do not see your smartapp, please make sure that you have published it in the IDE!

For any subsequent execution, under the ST app, click on the "hamburger" menu in the upper rigth section and then, Smartapps. You should see the smartapp in the list.'


.................................................................................................................................

3. I executed MyNeurioServiceMgr smartapp, but the 3rd page (after doing the login, and pressing Next) is blank

.................................................................................................................................

If you get a blank screen after pressing 'Next or you get the following error: " Error - bad state. Unable to complete page configuration", you'd need to enable oAuth as specified in step 3f) in the readme.

There may be also an issue with the shard used by the user.

Refer to README's prerequisites for more details http://github.com/yracine/device-type.myneurio/blob/master/README.md

.................................................................................................................................

4. My Neurio device is off by 'x' KWh with the Neur.io portal

.................................................................................................................................

First try to refresh the UI by pressing the 'refresh' tile. The ST UI does not allow automatic refresh at the moment.

.................................................................................................................................

5. I want to disable any notifications from MyNeurioServiceMgr

.................................................................................................................................

Go to the smartapp's last page, and answer 'no' to the following question:

Send a push notification?"''

Be aware that you won't be notified of any connection issues.

.................................................................................................................................

6. I'm trying to uninstall MyNeurioServiceMgr or trying to migrate MyNeurio objects to the HubV2, and I'm getting the "An unexpected error has occurred" or 'deleteObserver onError: %s' messages in MyNeurioServiceMgr when I press 'Uninstall'

.................................................................................................................................


There are 2 ways now to correct this ST issue. The 1st way is the traditional way:

1) You need first to remove your Neurio objects from all the smartapps (like any ST connected device) as MyNeurioServiceMgr will not uninstall w/o doing this step. MyNeurioServiceMgr is the Service Manager for MyNeurio objects, so uninstalling the smartapp means that the Neurio objects will be deleted.

2) You can also 'force' delete any smartapp:

Go to https://graph.api.smartthings.com/location/list

> Click on «smartapps» for your location and then «Edit»

You should now have an uninstall option for your smartapps. This is a recent ST addition


.................................................................................................................................

7. I want to get more tracing in the IDE

.................................................................................................................................

Just update the device preferences, and edit the trace parameter, see step 8 in the readme

http://github.com/yracine/device-type.myneurio/blob/master/README.md

Do not forget to remove the trace (set it back to false) after your debugging session as this setting may impact performance.

P.S. You can also edit the device's preferences under the ST app by clicking on its 'gear' button.

.................................................................................................................................

8. I want to upgrade the code but I don't know how.

.................................................................................................................................

Most of the time (unless specified otherwise), you just need to copy and paste the My Neurio's code from the zip file, and save & publish.

The same approach should be used for the smartapps.

For more details, please follow the instructions provided at:

http://github.com/yracine/device-type.myneurio/blob/master/README.md


.................................................................................................................................

9. I have the following error message in the IDE/live logging: java.util.concurrent.TimeoutException: Execution time exceeded 'x' app execution seconds

.................................................................................................................................

ST has introduced some generic rate limiting rules for all smartapps and device handlers.

For cloud-to-cloud integration, these rate limiting constraints are sometimes too low (due to network latency, servers involved, etc.), and this exception can be raised from time to time. There are some threads about it in the ST community forum:

http://community.smartthings.com/t/rate-limiting-too-restrictive-max-execution-time-exceptions/17985

http://community.smartthings.com/t/execution-times-increasing/19979

http://community.smartthings.com/t/unschedule-api-execution-time-too-long/11232