[userModule] SmartEnergyLogging

Tips, Tricks and Scripts to enhance your home automation and workaround known device bugs, limitations and incompatibilities
Post Reply
Erasmuz
Posts: 29
Joined: 01 Dec 2014 23:23

[userModule] SmartEnergyLogging

Post by Erasmuz »

Description
This module is a re-write of the datalogging module but sends data to smartenergygroups.com for collection.
(I'm in no way affiliated with them, or their services, but find it very useful). It is setup to be able to log on/off switches (as 0 or 1), dimmers, etc., but is really useful for home energy monitors.

To use the module you must first create an account at http://smartenergygroups.com (free), create a site, create a device for that site, and finally create a data holder for the device. You can skip the part about scanning for their devices and just setup your own.

Field Details
  • Field 1 : Site Token - This value can be found in the site info near the bottom left after a site has been created
  • Field 2 : Node Name - This value can be found on the device details screen (you must name it yourself).
  • Field 3 : Stream Name - This value can be found on the stream details that was created for the device (also named yourself)
Widgets
Widgets
widgets.png (61.35 KiB) Viewed 7913 times
Overview
Overview
Overview.png (52.05 KiB) Viewed 7913 times
SmartEnergyLogging.zip
The module
(1.6 KiB) Downloaded 424 times
Last edited by Erasmuz on 10 Dec 2014 20:40, edited 1 time in total.
Erasmuz
Posts: 29
Joined: 01 Dec 2014 23:23

Re: [userModule] SmartEnergyLogging

Post by Erasmuz »

Plotting
Plotting
plotting.png (64.89 KiB) Viewed 7912 times
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: [userModule] SmartEnergyLogging

Post by PoltoS »

Nice work! You can make a pull request in our develop branch and we will include it in next release. I woul also suggest to add some icon (it will appear in next release I believe)
baekka
Posts: 1
Joined: 22 Jan 2015 15:48

Re: [userModule] SmartEnergyLogging

Post by baekka »

Hello, being pretty new to Z-way i just want to add for noobs, like myself, that you need to unzip the file into:
/opt/z-way-server/automation/userModule/SmartEnergyLogging

Then restart the server and access http://IP:8083/z-way-ha/, klick your way to Preferences -> Modules -> Datalogging -> SmartEnergyLogging and hit the select button, then enter the "Field Details" described in the first post. The third field is missing its label, "Stream name". Watt can be found at ID-0-50-2 on your HEM.

At smartenergygroups.com it is possible to add more streams, besides power, from your Aeon Labs HEM into the same node. Just create another logging in the HA UI with the same token and node name but different stream name. For exampel I added the kWh reading too, found at ID-0-50-0 on your HEM.

I have only tried the module with the Aeon Labs Home Energy Meter 2nd, but it really works great! I have been looking for a tool to make graphs off the powerconsumption but never found a tool that work until now, so thanks!!
Post Reply