Page 9 of 11

Re: Energy EAGLE Discussion

PostPosted: Tue Dec 10, 2013 6:43 pm
by nsheldon
Thanks for the XML. I need the log up to and includeing the point where you see the error message though so I can determine at which point in the XML it's failing.

Re: Energy EAGLE Discussion

PostPosted: Tue Dec 10, 2013 10:25 pm
by GRWilde
Here is the log from plugin startup until just after the error message. The new software Rainforest installed in my Eagle is GUI 2.0. It seems to be quite an improvememt and works fine with Bidgely.

Started plugin "Energy EAGLE 0.9.13"
Energy EAGLE Debug Starting device: Rainforest Automation Eagle
Energy EAGLE Debug Device outdated. Updating device state list.
Energy EAGLE Debug Starting runConcurrentThread.
Energy EAGLE Debug eagleDeviceData called. Device: Rainforest Automation Eagle
Energy EAGLE Debug sendCommand called.
Energy EAGLE Debug connect called.
Energy EAGLE Debug Attempt # 1 to connect to EAGLE.
Energy EAGLE Debug Sending command
<LocalCommand>
<Name>get_device_data</Name>
<MacId>0x00158d00001aba57</MacId>
</LocalCommand>

to "Rainforest Automation Eagle".
Energy EAGLE Debug Reading data from "Rainforest Automation Eagle".
Energy EAGLE Debug disconnect called.
Energy EAGLE Debug Data returned:
<NetworkInfo>
<DeviceMacId>0x00158d00001aba57</DeviceMacId>
<Status>Connected</Status>
<CoordMacId>0x00078100005d1a87</CoordMacId>
<ExtPanId>0x7fffffffffffffff</ExtPanId>
<ShortAddr>0xffff</ShortAddr>
<Channel>15</Channel>
<LinkStrength>0x64</LinkStrength>
</NetworkInfo>
<DeviceInfo>
<DeviceMacId>0x00158d00001aba57</DeviceMacId>
<InstallCode>0xdaf8a8da2a53095b</InstallCode>
<LinkKeyHigh>0x6885150105bfc341</LinkKeyHigh>
<LinkKeyLow>0xc1cbfadbfca670b9</LinkKeyLow>
<FWVersion>1.4.21 (5017)</FWVersion>
<HWVersion>3.2.1</HWVersion>
<Manufacturer>Rainforest Automation, Inc.</Manufacturer>
<ModelId>RFA-Z109 EAGLE</ModelId>
<DateCode>20120112CAFEBABE</DateCode>
<ImageType>0x1001</ImageType>
</DeviceInfo>
<InstantaneousDemand>
<DeviceMacId>0x00158d00001aba57</DeviceMacId>
<MeterMacId>0x00078100005d1a87</MeterMacId>
<TimeStamp>0x1a3aa2c9</TimeStamp>
<Demand>0x000697</Demand>
<Multiplier>0x00000001</Multiplier>
<Divisor>0x000003e8</Divisor>
<DigitsRight>0x03</DigitsRight>
<DigitsLeft>0x06</DigitsLeft>
<SuppressLeadingZero>Y</SuppressLeadingZero>
</InstantaneousDemand>
<CurrentSummation>
<DeviceMacId>0x00158d00001aba57</DeviceMacId>
<MeterMacId>0x00078100005d1a87</MeterMacId>
<TimeStamp>0x1a3aa1fd</TimeStamp>
<SummationDelivered>0x01b737ad</SummationDelivered>
<SummationReceived>0x00000000</SummationReceived>
<Multiplier>0x00000001</Multiplier>
<Divisor>0x000003e8</Divisor>
<DigitsRight>0x01</DigitsRight>
<DigitsLeft>0x06</DigitsLeft>
<SuppressLeadingZero>Y</SuppressLeadingZero>
</CurrentSummation>
<PriceCluster>
<DeviceMacId>0x00158d00001aba57</DeviceMacId>
<MeterMacId>0x00078100005d1a87</MeterMacId>
<Price>0x00000000</Price>
<Currency>0x0348</Currency>
<TrailingDigits>0x00</TrailingDigits>
<Tier>0</Tier>
<RateLabel></RateLabel>
</PriceCluster>
<MessageCluster>
<DeviceMacId>0x00158d00001aba57</DeviceMacId>
<MeterMacId>0x00078100005d1a87</MeterMacId>
<TimeStamp>0x00000000</TimeStamp>
<Id>0x00000000</Id>
<Priority>Low</Priority>
<Text></Text>
<ConfirmationRequired>N</ConfirmationRequired>
<Confirmed>N</Confirmed>
<Read>Y</Read>
<Queue>active</Queue>
</MessageCluster>
<MeterInfo>
<DeviceMacId>0x00158d00001aba57</DeviceMacId>
<MeterMacId>0x00078100005d1a87</MeterMacId>
<NickName></NickName>
<Account></Account>
<Auth></Auth>
<Host></Host>
<Enabled>Y</Enabled>
</MeterInfo>


Energy EAGLE Debug Energy EAGLE version: 0.9.13
Energy EAGLE Debug eagleDeviceData received XML from sendCommand:
Class: <type 'str'>
Data:
<Data> <NetworkInfo> <DeviceMacId>0x00158d00001aba57</DeviceMacId> <Status>Connected</Status> <CoordMacId>0x00078100005d1a87</CoordMacId> <ExtPanId>0x7fffffffffffffff</ExtPanId> <ShortAddr>0xffff</ShortAddr> <Channel>15</Channel> <LinkStrength>0x64</LinkStrength> </NetworkInfo> <DeviceInfo> <DeviceMacId>0x00158d00001aba57</DeviceMacId> <InstallCode>0xdaf8a8da2a53095b</InstallCode> <LinkKeyHigh>0x6885150105bfc341</LinkKeyHigh> <LinkKeyLow>0xc1cbfadbfca670b9</LinkKeyLow> <FWVersion>1.4.21 (5017)</FWVersion> <HWVersion>3.2.1</HWVersion> <Manufacturer>Rainforest Automation, Inc.</Manufacturer> <ModelId>RFA-Z109 EAGLE</ModelId> <DateCode>20120112CAFEBABE</DateCode> <ImageType>0x1001</ImageType> </DeviceInfo> <InstantaneousDemand> <DeviceMacId>0x00158d00001aba57</DeviceMacId> <MeterMacId>0x00078100005d1a87</MeterMacId> <TimeStamp>0x1a3aa2c9</TimeStamp> <Demand>0x000697</Demand> <Multiplier>0x00000001</Multiplier> <Divisor>0x000003e8</Divisor> <DigitsRight>0x03</DigitsRight> <DigitsLeft>0x06</DigitsLeft> <SuppressLeadingZero>Y</SuppressLeadingZero> </InstantaneousDemand> <CurrentSummation> <DeviceMacId>0x00158d00001aba57</DeviceMacId> <MeterMacId>0x00078100005d1a87</MeterMacId> <TimeStamp>0x1a3aa1fd</TimeStamp> <SummationDelivered>0x01b737ad</SummationDelivered> <SummationReceived>0x00000000</SummationReceived> <Multiplier>0x00000001</Multiplier> <Divisor>0x000003e8</Divisor> <DigitsRight>0x01</DigitsRight> <DigitsLeft>0x06</DigitsLeft> <SuppressLeadingZero>Y</SuppressLeadingZero> </CurrentSummation> <PriceCluster> <DeviceMacId>0x00158d00001aba57</DeviceMacId> <MeterMacId>0x00078100005d1a87</MeterMacId> <Price>0x00000000</Price> <Currency>0x0348</Currency> <TrailingDigits>0x00</TrailingDigits> <Tier>0</Tier> <RateLabel></RateLabel> </PriceCluster> <MessageCluster> <DeviceMacId>0x00158d00001aba57</DeviceMacId> <MeterMacId>0x00078100005d1a87</MeterMacId> <TimeStamp>0x00000000</TimeStamp> <Id>0x00000000</Id> <Priority>Low</Priority> <Text></Text> <ConfirmationRequired>N</ConfirmationRequired> <Confirmed>N</Confirmed> <Read>Y</Read> <Queue>active</Queue> </MessageCluster> <MeterInfo> <DeviceMacId>0x00158d00001aba57</DeviceMacId> <MeterMacId>0x00078100005d1a87</MeterMacId> <NickName></NickName> <Account></Account> <Auth></Auth> <Host></Host> <Enabled>Y</Enabled> </MeterInfo></Data>
Energy EAGLE Debug Parsing Device Data XML from "Rainforest Automation Eagle".
Energy EAGLE Debug Parsed data:
<?xml version="1.0" ?>
<Data>

<NetworkInfo>

<DeviceMacId>
0x00158d00001aba57
</DeviceMacId>

<Status>
Connected
</Status>

<CoordMacId>
0x00078100005d1a87
</CoordMacId>

<ExtPanId>
0x7fffffffffffffff
</ExtPanId>

<ShortAddr>
0xffff
</ShortAddr>

<Channel>
15
</Channel>

<LinkStrength>
0x64
</LinkStrength>

</NetworkInfo>

<DeviceInfo>

<DeviceMacId>
0x00158d00001aba57
</DeviceMacId>

<InstallCode>
0xdaf8a8da2a53095b
</InstallCode>

<LinkKeyHigh>
0x6885150105bfc341
</LinkKeyHigh>

<LinkKeyLow>
0xc1cbfadbfca670b9
</LinkKeyLow>

<FWVersion>
1.4.21 (5017)
</FWVersion>

<HWVersion>
3.2.1
</HWVersion>

<Manufacturer>
Rainforest Automation, Inc.
</Manufacturer>

<ModelId>
RFA-Z109 EAGLE
</ModelId>

<DateCode>
20120112CAFEBABE
</DateCode>

<ImageType>
0x1001
</ImageType>

</DeviceInfo>

<InstantaneousDemand>

<DeviceMacId>
0x00158d00001aba57
</DeviceMacId>

<MeterMacId>
0x00078100005d1a87
</MeterMacId>

<TimeStamp>
0x1a3aa2c9
</TimeStamp>

<Demand>
0x000697
</Demand>

<Multiplier>
0x00000001
</Multiplier>

<Divisor>
0x000003e8
</Divisor>

<DigitsRight>
0x03
</DigitsRight>

<DigitsLeft>
0x06
</DigitsLeft>

<SuppressLeadingZero>
Y
</SuppressLeadingZero>

</InstantaneousDemand>

<CurrentSummation>

<DeviceMacId>
0x00158d00001aba57
</DeviceMacId>

<MeterMacId>
0x00078100005d1a87
</MeterMacId>

<TimeStamp>
0x1a3aa1fd
</TimeStamp>

<SummationDelivered>
0x01b737ad
</SummationDelivered>

<SummationReceived>
0x00000000
</SummationReceived>

<Multiplier>
0x00000001
</Multiplier>

<Divisor>
0x000003e8
</Divisor>

<DigitsRight>
0x01
</DigitsRight>

<DigitsLeft>
0x06
</DigitsLeft>

<SuppressLeadingZero>
Y
</SuppressLeadingZero>

</CurrentSummation>

<PriceCluster>

<DeviceMacId>
0x00158d00001aba57
</DeviceMacId>

<MeterMacId>
0x00078100005d1a87
</MeterMacId>

<Price>
0x00000000
</Price>

<Currency>
0x0348
</Currency>

<TrailingDigits>
0x00
</TrailingDigits>

<Tier>
0
</Tier>

<RateLabel/>

</PriceCluster>

<MessageCluster>

<DeviceMacId>
0x00158d00001aba57
</DeviceMacId>

<MeterMacId>
0x00078100005d1a87
</MeterMacId>

<TimeStamp>
0x00000000
</TimeStamp>

<Id>
0x00000000
</Id>

<Priority>
Low
</Priority>

<Text/>

<ConfirmationRequired>
N
</ConfirmationRequired>

<Confirmed>
N
</Confirmed>

<Read>
Y
</Read>

<Queue>
active
</Queue>

</MessageCluster>

<MeterInfo>

<DeviceMacId>
0x00158d00001aba57
</DeviceMacId>

<MeterMacId>
0x00078100005d1a87
</MeterMacId>

<NickName/>

<Account/>

<Auth/>

<Host/>

<Enabled>
Y
</Enabled>

</MeterInfo>
</Data>


Energy EAGLE Debug updateDeviceState called.
Energy EAGLE Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 651, in runConcurrentThread
File "plugin.py", line 1105, in eagleDeviceData
<type 'exceptions.IndexError'>: list index out of range

Energy EAGLE Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Energy EAGLE Debug Starting runConcurrentThread.
Energy EAGLE Debug eagleDeviceData called. Device: Rainforest Automation Eagle
Energy EAGLE Debug sendCommand called.
Energy EAGLE Debug connect called.
Energy EAGLE Debug Attempt # 1 to connect to EAGLE.
Energy EAGLE Debug Sending command
<LocalCommand>
<Name>get_device_data</Name>
<MacId>0x00158d00001aba57</MacId>
</LocalCommand>

Re: Energy EAGLE Discussion

PostPosted: Tue Dec 10, 2013 10:39 pm
by nsheldon
Perfect! Thanks. I'll try to get that fixed.

Re: Energy EAGLE Discussion

PostPosted: Wed Dec 11, 2013 1:40 am
by nsheldon
Version 0.9.14 Posted

See main Energy EAGLE announcement thread for download link.

Changes from 0.9.13:
  • Worked around more difference between EAGLE firmware 1.x and 2.0 beta versions that would cause the plugin to crash.

Re: Energy EAGLE Discussion

PostPosted: Wed Dec 11, 2013 5:32 am
by GRWilde
My Energy Eagle plugin is still crashing with 0.9.14 using the 2.0 Beta firmware.

Re: Energy EAGLE Discussion

PostPosted: Wed Dec 11, 2013 9:37 am
by automaton
Interesting. My Eagle has been stable with the beta firmware since the 9.13 plugin update.

I'm on SoCal Edison, current Eagle firmware 2.0.17

Re: Energy EAGLE Discussion

PostPosted: Wed Dec 11, 2013 10:21 am
by nsheldon
GRWilde wrote:
My Energy Eagle plugin is still crashing with 0.9.14 using the 2.0 Beta firmware.

I'm betting it's a different error. Could you paste in the error?

Re: Energy EAGLE Discussion

PostPosted: Wed Dec 11, 2013 2:05 pm
by berkinet
FWIW I had Energy EAGLE 0.9.13 on a PG&E account with no problems.
Just upgraded to 0.9.14 and still no problems.

Re: Energy EAGLE Discussion

PostPosted: Wed Dec 11, 2013 2:13 pm
by GRWilde
Here is the error message:

Starting plugin "Energy EAGLE 0.9.14" (pid 26922)
Started plugin "Energy EAGLE 0.9.14"
Energy EAGLE Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 655, in runConcurrentThread
File "plugin.py", line 1130, in eagleDeviceData
<type 'exceptions.IndexError'>: list index out of range

Energy EAGLE Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Re: Energy EAGLE Discussion

PostPosted: Wed Dec 11, 2013 2:51 pm
by nsheldon
Thanks. I'll try to track that error down as well.

Re: Energy EAGLE Discussion

PostPosted: Wed Dec 11, 2013 3:59 pm
by nsheldon
Version 0.9.15 Posted

See main Energy EAGLE announcement thread for download link.

Changes from 0.9.14:
  • More workarounds for differences between different EAGLE firmware versions.

Re: Energy EAGLE Discussion

PostPosted: Wed Dec 11, 2013 4:03 pm
by nsheldon
GRWilde wrote:
Here is the error message:

Starting plugin "Energy EAGLE 0.9.14" (pid 26922)
Started plugin "Energy EAGLE 0.9.14"
Energy EAGLE Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 655, in runConcurrentThread
File "plugin.py", line 1130, in eagleDeviceData
<type 'exceptions.IndexError'>: list index out of range

Energy EAGLE Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

It looks like (from the XML you posted previously) that the reason for the 2 errors you've reported are that your EAGLE 1) doesn't include a "Type" element in the "MeterInfo" and 2) uses the element name "NickName" instead of "Nickname" in the "MeterInfo" tree (note the difference in mixed case). Hopefully this new version will fix all of this.

Re: Energy EAGLE Discussion

PostPosted: Thu Dec 12, 2013 2:52 pm
by berkinet
nsheldon wrote:
Version 0.9.15 Posted

Well, FWIW, 0.9.15 works fine here (PG&E) with Eagle FW 2.0.17

BTW, thanks for all your work on this plugin.

Re: Energy EAGLE Discussion

PostPosted: Thu Dec 12, 2013 2:55 pm
by nsheldon
Cool! Glad to hear it's working. Thanks for the feedback! Hopefully it'll work for George too.

Re: Energy EAGLE Discussion

PostPosted: Thu Dec 12, 2013 3:37 pm
by GRWilde
The 0.9.15 plugin is now working correctly with my Energy Eagle 2 Beta firmware. Thanks!