We have moved at community.getvera.com

Author Topic: Edison Smart Meter Support (ZigBee)  (Read 11224 times)

Offline Timon

  • Full Member
  • ***
  • Posts: 164
  • Karma: +3/-9
Edison Smart Meter Support (ZigBee)
« on: March 15, 2013, 02:03:49 pm »
Anyone know what's being done so Vera can monitor Edison Smart Meters?

Are there monitoring devices that currently work with the meters that connect to Ethernet that Vera could then connect to without having to support ZigBee in Vera?

Thanks in advance.

Offline strangely

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3722
  • Karma: +34/-2
  • Vera 1,3 & V light
Re: Edison Smart Meter Support (ZigBee)
« Reply #1 on: March 15, 2013, 02:38:37 pm »
There are Ethernet based gateways, and also USB based solutions that could be used if somebody wrote a plugin:

https://rainforestautomation.com/current_products

There are also compatible ethernet/zigbee products from Digi too that could be used.

I've been considering buying the one of the rainforest ones, but hadn't decided on which one yet.
Kwickset locks, HA01C, HA14C, HA02C, HA03C, HA05C, HA04C, HA07C, HA09C, Aeon HEM, GE 45604, 45606, 45609, ZDP100, VRF01-1LZ, WDTC-20, HA18WD, WDHA-12R, HRDS1, HM-TS001, AC1-ZW, TV-IP110, BL-C210A, LUUP control- EtherRain8, DSC Alarm, HDMI matrix, HR24-200, Panasonic TV, SQblaster

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Edison Smart Meter Support (ZigBee)
« Reply #2 on: March 16, 2013, 05:08:45 am »
I've got a Rainforest Raven. One of these days I will write a plugin for it, unless strangely beats me to it.

Offline Timon

  • Full Member
  • ***
  • Posts: 164
  • Karma: +3/-9
Re: Edison Smart Meter Support (ZigBee)
« Reply #3 on: March 16, 2013, 10:51:55 am »
Ok, I've done some more research and find that Digi and Rainforest Automation seem to be the top of the pack.

Rain first has both USB and a ethernet gateway but are out of stock on the gateway. Digi only has a ethernet gateway.

Digi has a cloud product which will talk to  their gateways and you can receive data on your smart phone. I don't know if you can run that at the same time as accessing the gateway from Vera. If you can you have a great combination until the Vera apps reached a higher level that Digi.

I keep thinking that even though it costs $50 more the ethernet gateway is the better way to go over USB.

Thoughts?



Offline strangely

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3722
  • Karma: +34/-2
  • Vera 1,3 & V light
Re: Edison Smart Meter Support (ZigBee)
« Reply #4 on: March 17, 2013, 02:00:18 pm »
Ideally, I'd like one with a display, so I'm siding with the RainForest EMU2 currently...

Other than the type of serial port driver used (FTDI versus Prolific), it seems the Raven and the EMU2 have the same XML based output.
Kwickset locks, HA01C, HA14C, HA02C, HA03C, HA05C, HA04C, HA07C, HA09C, Aeon HEM, GE 45604, 45606, 45609, ZDP100, VRF01-1LZ, WDTC-20, HA18WD, WDHA-12R, HRDS1, HM-TS001, AC1-ZW, TV-IP110, BL-C210A, LUUP control- EtherRain8, DSC Alarm, HDMI matrix, HR24-200, Panasonic TV, SQblaster

Offline robertmm

  • Sr. Newbie
  • *
  • Posts: 28
  • Karma: +1/-0
Re: Edison Smart Meter Support (ZigBee)
« Reply #5 on: May 05, 2013, 01:13:27 am »
I created a crude lua script that reads the Rainforest Eagle into a Variable Container. I'm in Texas so not all of the smart meter functions are available.

You need (a) The VariableContainer Plugin (b) the attached script in the LUA tab of an automation scene (edit the IP address of your Eagle and the Eagle's MAC ID, and modify the variable container ID in the script).

It should display the current demand ("Watts") and the kWh reading from the grid ("KWHReading") as well as to the grid (0 for me, not sure whether it works) plus the time it actually got the information from the meter (that time may be wrong if you're not in Texas, I haven't figured out why the Eagle thinks it's in the Pacific timezone and/or whether the meter runs on UTC -- it seems to use seconds since 1/1/2000).

Getting the Eagle to work was an adventure. http://support.greenmountain.com/greenmountainenergycompany/topics/texas_han_device
What's great is that the Eagle has a "cloud" function, and you can hook it up to bidgely.com. That service seems to be really neat (especially compared to Ergy). Bidgely supports a number of other whole house energy monitors as well.

I'm hoping to learn a little bit more about lua and turn the script into a proper plugin.

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Edison Smart Meter Support (ZigBee)
« Reply #6 on: May 05, 2013, 06:21:03 am »
That's a great start.  I wonder if you want to collaborate on a plugin that'll also work for my USB Raven, which produces exactly the same output.

Offline robertmm

  • Sr. Newbie
  • *
  • Posts: 28
  • Karma: +1/-0
Re: Edison Smart Meter Support (ZigBee)
« Reply #7 on: May 05, 2013, 09:59:13 pm »
@futzle: Certainly -- looking at their XML API for the Raven, there seems to be a bigger difference though than one would think (Eagle is billed as "Raven with Ethernet in a box" but it looks like there are more differences). Raven XML has 24 commands (submitted using <Command>, Eagle XML has only 5 (submitted using <LocalCommand> and one of them, get_instantaneous_demand, doesn't seem to work for me). So if I get the Eagle going, someone who owns a Raven would have to do quite a bit of work to modify and test it.

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Edison Smart Meter Support (ZigBee)
« Reply #8 on: May 05, 2013, 10:32:31 pm »
Oh cool, they have published API documents now. Last time I looked there were none and I had to reverse-engineer it from reading strings in the firmware.

I will have a look and see if we can combine our efforts. If we can present the information as a regular EnergyMetering1 service then all of the remote apps will get support for free.

Offline robertmm

  • Sr. Newbie
  • *
  • Posts: 28
  • Karma: +1/-0
Re: Edison Smart Meter Support (ZigBee)
« Reply #9 on: May 08, 2013, 01:23:52 am »
OK, this is my first attempt at a plugin. It relies heavily on the existing energy metering plugins and since I'm new to LUA, I'm sure it could be optimized quite a bit.

EDIT: Please go to the plugin thread at http://forum.micasaverde.com/index.php/topic,14767.0.html
« Last Edit: May 09, 2013, 01:10:10 am by robertmm »

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Edison Smart Meter Support (ZigBee)
« Reply #10 on: May 08, 2013, 06:29:16 am »
OK, this is my first attempt at a plugin.
[...]
I don't know how the net metering would work (for me, the "Received" value from the smart meter is always empty) and what one would have to set for Vera to understand it.

Well done! I can't test it right now as I'm replacing the machine that the RAVEn plugs into, but I'll give it a go soon (altering it where I need for where the EAGLE API differs).

I've got solar panels so I can verify that the SummationDelivered and SummationReceived values do operate as you'd expect.  I've been thinking about how to handle the net metering and two-way accumulation (Delivered and Received are two different kWh values).  How do you feel about doing multiple power meters, one for outgoing ("Received") and one for incoming ("Delivered")?  Child devices might be more complexity than you want, but I'm not sure how else to store two KWH variables in a way that honours the Energy Metering service.

Offline robertmm

  • Sr. Newbie
  • *
  • Posts: 28
  • Karma: +1/-0
Re: Edison Smart Meter Support (ZigBee)
« Reply #11 on: May 08, 2013, 09:38:30 am »
The question is: would the Vera know what to do with the "Received" values? Is "Demand" net already? Perhaps all that's needed is to display "Delivered", "Received" separately (using the local service) and put the net value (Delivered-Received) into the energy metering service variables?

I don't find that Vera's energy measurement support gives me anything compared to bidgely.com (and let's just be polite and not mention Ergy).

You've done a lot of work on other plugins, so I'm sure you'll pick the right options. Also, the Raven might want to be a separate plugin but you'll see how much code they could share.

The only thing I want to do to it is reduce its resource usage and more robust error handling (there are some missing "nil" checks). I'll be asking some questions over in the plugin forums when I have some more time (like: "how do I parse xml and not fake it by using string.gsub").
Perhaps we should take this whole discussion over there at this time?

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Edison Smart Meter Support (ZigBee)
« Reply #12 on: May 08, 2013, 05:15:46 pm »
I'll be asking some questions over in the plugin forums when I have some more time (like: "how do I parse xml and not fake it by using string.gsub").
Perhaps we should take this whole discussion over there at this time?

You bet.  One of the design goals of the WeMo plugin was to do XML parsing properly with the expat library, so it's still fresh in my mind.

Offline strangely

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3722
  • Karma: +34/-2
  • Vera 1,3 & V light
Re: Edison Smart Meter Support (ZigBee)
« Reply #13 on: May 08, 2013, 09:00:40 pm »
I'm still undecided about which model to go for between the Ravan, Eagle and EMU since ideally I'd also like to use some sort of service like bingley etc, but also I like the idea of having the display on the EMU.
Kwickset locks, HA01C, HA14C, HA02C, HA03C, HA05C, HA04C, HA07C, HA09C, Aeon HEM, GE 45604, 45606, 45609, ZDP100, VRF01-1LZ, WDTC-20, HA18WD, WDHA-12R, HRDS1, HM-TS001, AC1-ZW, TV-IP110, BL-C210A, LUUP control- EtherRain8, DSC Alarm, HDMI matrix, HR24-200, Panasonic TV, SQblaster

Offline robertmm

  • Sr. Newbie
  • *
  • Posts: 28
  • Karma: +1/-0
Re: Edison Smart Meter Support (ZigBee)
« Reply #14 on: May 08, 2013, 11:42:08 pm »
If you can't decide... You can have up to five ZigBee devices connected to your meter at the same time (at least in Texas).

I like the Eagle best because it is more flexible, and thanks to its web interface a dedicated display is not necessary in my opinion. There are also smartphone apps from Bidgely and from Rainforest Automation.

But you can talk to the EMU-2 as well -- according to the Rainforest Automation site:
Quote
The EMU-2? In Home Display not only functions as a stand-alone in home display, but its USB port also supports the RAVEn XML API.  NOTE:  The default behaviour of the EMU-2 is different from the RAVEn as it has to update the screens at a pre-configured rate.  Also, while the RAVEn uses an FTDI chip, the EMU-2 uses a Prolific PL2303-HXD for its USB