I found a really nice looking service called emoncms.org to visualise energy consumption measured in Vera. It's free and open source. You can use emoncms.org or setup your own server at home. You can also use it to log arbitrary numerical variables in vera, such as battery level, light, temperature etc. You can create custom dashboards and export to CSV.

Here is how I did it:

Setup Vera (instructions for UI7)

Register for an account at emoncms.org

Look up your write API key on your profile page

Download the attached EnergyMonitor.lua

Edit the file, enter your emoncms API key and setup your devices in VARIABLES according to the sample code already there

Please note that the energy can be fetched in two ways. The first way is directly from the Watts variable of your device. The second way is to use a lua function to calculate the energy. The second option is useful if you don't control the device directly from Vera. I use it to measure if my computer is on using a PingSensor, and send the power based on the sensor reading. I also have an 'Other' where I enter the average power of external devices such as Washmachines etc.

Setup emoncms inputs and feedsYou will immediately find your data here: http://emoncms.org/input/viewThe inputs are by default not stored. Therefore, you will need to setup what is known as "feeds". Feeds is where the data is stored.

Feeds and inputs are very flexible, and therefore not very intuitive in the beginning. There are some guides at the bottom of this page which explains how to create feeds from your inputs:http://openenergymonitor.org/emon/guide

Setup emoncms energy appNow for the fun part, setting up the dashboard.

Click Apps > My Electric

Click the Spanner icon at the top right

Choose feeds as follows:

Power feed (Watts): Total W

Bar graph feed: Total kWh

Wh or kWh feed?: kWh elapsed

Set currency and unit cost if you wish.

Click Save.

Enjoy your energy dashboard!

The resultAttached is the code and examples of the two dashboards. My Electric displays current and historic energy consumption. I played around with My Solar to visualize how much energy I could save if I would switch to LED instead of halogen lights.You can also design your own dashboard. I recommend that you watch the YouTube introduction before designing.

This code could be made into a Vera app. If anyone feels like taking the time to make an app, feel free to use my code as a base - just mention my name somewhere

I found an error in the code and just uploaded a fixed file (deviceId was missing from VARIABLES).

I also made "Total" exclude any variables but Watts. That means that you can easily do arbitrary logging of switches, light level, battery level etc.I included an example for a switch also:Set up the feed as in my first post (first feed), that is, use the "Log to feed" processing. You can simply check on your feed by clicking on the "eye"-icon in the feed list. Attached is a sample of how my switch looks really zoomed in (zoom in by click and select in the graph). Not sure if that fits your needs. You can always export the feed data as CSV.

@amg0, ALTUI looks like a great piece of work, I might try that sometime. I looked through the documentation but I didn't find any mention of emoncms. Did I miss something, or would you please shed a little light on the level of integration?

@amg0, ALTUI looks like a great piece of work, I might try that sometime. I looked through the documentation but I didn't find any mention of emoncms. Did I miss something, or would you please shed a little light on the level of integration?

yes it is integrated. From a variable you can configure a data push to emoncns.

I am guessing it only pushes to one of thingspeak, economy or datayours?

out of the box, it pushes any variable value to either thingspeak or DataYours2; but it also provides an web interface to integrate some other data push destination. that requires though that a piece of code is calling a web service into ALTUI to register then it will receive, again as a web service, the value of the variables that the user has chosen to save; that piece of code can then do the push to whatever data storage they want.more info here: http://forum.micasaverde.com/index.php/topic,35860.0.html

UPDATE: Nevermind, figured out the device was urn:micasaverde-com:serviceId:EnergyMetering1

Having a bit of problem reading my energy monitor. The script seems to be communicating with Emoncms, but not reading the watts. Here's the code I put in. I've also attached the device config. I've tried modifiying the key name to only use a number and not include any spaces, but it doesn't seem to make a difference. Any ideas? Thanks!

Awesome info Wezzix! I ended up writing a python script to pull SolarEdge data from their API and post to emoncms too. The code runs on a Synology NAS that I can detail if anyone wants more info. I have my HEM collecting usage data based on your script with the two being correlated on the My Solar app.

Awesome info Wezzix! I ended up writing a python script to pull SolarEdge data from their API and post to emoncms too. The code runs on a Synology NAS that I can detail if anyone wants more info. I have my HEM collecting usage data based on your script with the two being correlated on the My Solar app.

Hi mmd,

I'd love any more info you might have on pulling your SolarEdge data with the python script. I tried playing around with the script in your post, but kept getting urlopen error 3 for some reason