Nathan,
Forever ago, we were talking about how the Eagle represents negative net flow, since I have solar. You asked me for a snippet of the XML coming back from the Eagle.
The next day, SCE came out and replaced my meter, for no apparent reason, and it took 3 weeks (!) to get the meter provisioned and the Eagle to talk to it. Today, I finally had a chance to capture the data during the sunlight hours.
Here's what the Eagle is sending (for demand, summation, etc):
- Code: Select all
<InstantaneousDemand>
<DeviceMacId>0xd8d5b90000000ea3</DeviceMacId>
<MeterMacId>0x0007810000bfcf52</MeterMacId>
<Demand>0xfffff88d</Demand>
<TimeStamp>0x19d4ca0d</TimeStamp>
<Multiplier>0x00000001</Multiplier>
<Divisor>0x000003e8</Divisor>
<DigitsRight>0x00000003</DigitsRight>
<DigitsLeft>0x00000006</DigitsLeft>
<SuppressLeadingZero>0x0001</SuppressLeadingZero>
</InstantaneousDemand>
Note that the demand figure is huge:
demand = 4294965389
multiplier = 1
divisor = 1000
They've got negative numbers rolling over, so 0xffffffff = -1
Inverting it gives us what we need:
- Code: Select all
>>> print (demand | ~0xffffffff)
>>> -1907
-1907 * 1 / 1000 = -1.907 kW (which is what displays on the web viewer)
For summation, we don't have to do this, because they are both positive numbers:
- Code: Select all
<SummationDelivered>
0x00000000001341f2
</SummationDelivered>
<SummationReceived>
0x00000000000313de
</SummationReceived>
"Delivered" is energy delivered to the house from Edison (shown as "From Grid"), which I would call "Received", but whatever.
Hope this helps. Thanks!!