The Vera Community forums have moved!

General => Power Management => Topic started by: Timon on March 15, 2013, 02:03:49 pm

Title: Edison Smart Meter Support (ZigBee)
Post by: Timon 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.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: strangely 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.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: futzle 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.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: Timon 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?


Title: Re: Edison Smart Meter Support (ZigBee)
Post by: strangely 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.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: robertmm 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.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: futzle 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.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: robertmm 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.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: futzle 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.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: robertmm 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
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: futzle 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.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: robertmm 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?
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: futzle 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.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: strangely 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.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: robertmm 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

Title: Re: Edison Smart Meter Support (ZigBee)
Post by: strangely on May 09, 2013, 12:55:00 am
I'm thinking Eagle maybe the way to go then as the smart phone app looks like it would meet my needs
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: Brientim on May 09, 2013, 12:56:49 am

I'm thinking Eagle maybe the way to go then as the smart phone app looks like it would meet my needs

Smart choice... And flexibility.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: strangely on May 09, 2013, 01:07:49 am
Yes but also maybe overkill and a little bit redundant given I also have a Brultech GEM :)

The main thing I was interested in was just to see at a glance what my net energy usage was given I also have solar. My power company provides this, its just its normally 1 to 2 days behind.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: robertmm on May 09, 2013, 01:10:56 am
I started a new thread for the plugin at http://forum.micasaverde.com/index.php/topic,14767.0.html

Title: Re: Edison Smart Meter Support (ZigBee)
Post by: Brientim on May 09, 2013, 01:24:04 am
I can get 2 hourly usage online but it does not report solar which I was looking for.  In may last place I had solar monitored locally but not here and found this from outside this forum.
I have been waiting for the AU version which had been out of stock for ages but now available. By the way down here (Victoria) is looking at other Rules for appliances and usage similar to what has been
Implemented in California e.g remote switch off air conditioners so this may drive more reporting devices being implemented down here too.
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: futzle on May 09, 2013, 01:37:29 am
Speaking to the audience while responding to Brientim's comments: These devices can measure only what the electricity meter attached to your home can report. Here in Victoria, your solar is connected to your home's wiring on the home side of the meter, so the meter doesn't even know that you've got solar, and happily reports the net usage, which might be negative.

If you need to know how much power your solar panels are pushing out, you really have to ask the inverter. For which no plugins exist, yet.

Edit: in my supplier area (United Energy), the meter isn't reporting cost per kWh to the RAVEn. If they are going to start spot pricing it will likely involve reprogramming all the meters to start providing cost to the RAVEn, which already has an API call for that (get_current_price).
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: Brientim on May 09, 2013, 02:43:40 am
@futzle, I probably did not explain myself very well. I was the actually after "to grid" and the meter does capture "feed in" or "to grid". I do not every get negative net usage and maybe because we use more but the split reporting "from grid" and "to grid" will provide an accurate reporting mechanism. I was not actual solar production which as you state "If you need to know how much power your solar panels are pushing out, you really have to ask the inverter" and every inverter introduces their own protocols and API. I have this and just need to set it up again but work and other things have taken too, too much time. I believe this will be the incentive for my family to switch thing off and not how much it is costing... a bit of reverse physiology here.
I was previously liaising with the good people here at fastnetwork.com.au and was going to be part of a trail here for Powercor but due to delays in moving, I have not heard anymore recently.

The implementation they are implying will go further and requires smart switches and embedded remote device control for various product similar to California and yes, spot pricing was mentioned as well.

 

 

 
Title: Re: Edison Smart Meter Support (ZigBee)
Post by: strangely on May 13, 2013, 12:50:42 am

If you need to know how much power your solar panels are pushing out, you really have to ask the inverter. For which no plugins exist, yet.


Correct in regard to a single Inverter but if you are talking "Inverters" then that's not correct ;)