Energy EAGLE Discussion

Posted on
Wed Nov 13, 2013 10:25 pm
berkinet offline
User avatar
Posts: 3297
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Energy EAGLE Discussion

BTW, There is a new option buried in the settings to Allow Remote Management. Yeah, I was expecting a file or a link too.

Posted on
Thu Nov 14, 2013 2:08 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Energy EAGLE Discussion

Version 0.9.13 Posted

(See main Energy EAGLE announcement thread for download link).

Changes from 0.9.12:
  • Fixed a bug that could cause the plugin to crash if a connection to the EAGLE was not established when requesting data from it.
  • Worked around differences between EAGLE firmware 1.x and 2.0 beta that could cause the plugin to crash when trying to read the data.

Posted on
Thu Nov 14, 2013 2:16 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Energy EAGLE Discussion

I believe I've got both the connection failure bug fixed (i.e. if the EAGLE disconnects suddenly, the plugin should no longer crash) and the XML "list index out of range" and, by extension, the "referenced before assignment" errors fixed. Give version 0.9.13 a try.

Posted on
Thu Nov 14, 2013 2:25 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Energy EAGLE Discussion

Oh, and regarding the remote "phone home" access, it's always been possible to disable that. In my non-2.0 beta EAGLE, that feature can be disabled in the Advanced Setup by setting both VPN and SSH access to "Disabled".

Posted on
Thu Nov 14, 2013 9:25 am
automaton offline
Posts: 88
Joined: May 23, 2008

Re: Energy EAGLE Discussion

Nathan,
Thanks, that seems to have quieted down the errors. I'll monitor it and let you know how it works over the next 24 hours.

Posted on
Thu Nov 14, 2013 11:03 am
berkinet offline
User avatar
Posts: 3297
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Energy EAGLE Discussion

nsheldon wrote:
Version 0.9.13 Posted
… ...Changes from 0.9.12:
… ...
[*] Worked around differences between EAGLE firmware 1.x and 2.0 beta that could cause the plugin to crash when trying to read the data.[/list]
Thanks for the quick response. Works a treat, as they say in the UK.

and later, nsheldon wrote:
Oh, and regarding the remote "phone home" access, it's always been possible to disable that. In my non-2.0 beta EAGLE, that feature can be disabled in the Advanced Setup by setting both VPN and SSH access to "Disabled".
There ought to be a 'smiley' for DOH. I guess they merged the two functions into one control. Makes sense actually. I'd love to know how to actually ssh into the box, but they are tight lipped about that.

BTW, Still no word on the Upload to any URL - make your own server! feature. I'll ask them again.

And… I got my first Energy Alert From PG&E indicating I have crossed a billing tier boundary. Now to parse it out and drive a pricing update.

Posted on
Thu Nov 14, 2013 11:34 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Energy EAGLE Discussion

berkinet wrote:
Thanks for the quick response. Works a treat, as they say in the UK.

Great!
berkinet wrote:
There ought to be a 'smiley' for DOH. I guess they merged the two functions into one control. Makes sense actually. I'd love to know how to actually ssh into the box, but they are tight lipped about that.

BTW, Still no word on the Upload to any URL - make your own server! feature. I'll ask them again.

And… I got my first Energy Alert From PG&E indicating I have crossed a billing tier boundary. Now to parse it out and drive a pricing update.

Yea, I was always curious about the SSH feature. I'm sure the email trigger will work for you.

Posted on
Thu Nov 14, 2013 4:23 pm
automaton offline
Posts: 88
Joined: May 23, 2008

Re: Energy EAGLE Discussion

Nathan,
I got a reply from Rainforest regarding the API. They say:

"The API has not changed, per say, although if the [Energy Eagle] XML tag parser is case sensitive, then it might find the "Timestamp" to "TimeStamp" change or vice-versa."

Posted on
Thu Nov 14, 2013 4:40 pm
berkinet offline
User avatar
Posts: 3297
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Energy EAGLE Discussion

automaton wrote:
Nathan,
I got a reply from Rainforest regarding the API. They say:

"The API has not changed, per say, although if the [Energy Eagle] XML tag parser is case sensitive, then it might find the "Timestamp" to "TimeStamp" change or vice-versa."

Define "changed" :roll:

I'd say altering the case of an xml tag is a change, I guess they don't agree.

Posted on
Thu Nov 14, 2013 5:17 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Energy EAGLE Discussion

Strictly speaking, because XML is a case-sensitive language, changing the case of characters in any tag is a critical change as strict XML parsers will throw an error if the case of tags don't match. So, I'd disagree with the Rainforest Automation person's assessment. That said, it's not critically important for the Energy EAGLE plugin as it's already got a workaround in place (as of 0.9.13). It may cause problems with cloud services like Bidgley and others though.

Posted on
Tue Dec 10, 2013 12:24 pm
Manuelpl offline
Posts: 7
Joined: Dec 08, 2013
Location: CA

Re: Energy EAGLE Discussion

Nathan,

Thanks for the hard work. I plan on trying something similar with Digi ZigBee Gateway , its like the Eagle, But Bidgely are giving them away , so I can't complain.

Anyways , I'm looking in ways to tap into the device, somehow, If my results don't come up with anything , I will be forced to Purchase the Eagle.

Bidgely , BTW is so unreliable, they seem to never be able to connect with the Digi. I use the SMARTLEE app for the iPhone , that gives me accurate meter reading , in real time.

What I am trying to do is the following.

Turn on my Washer Machine or Dish Washer , when my Solar Panels are creating excessive Watts.
I'm using a Grid Tie Inverter to feed back to the grid , and I am giving the energy free to my energy provider. My Idea is to take back that energy an turn on some devices when my solar is over producing.

I have Indigo 6 , Installed a ZWAVE Cooper Outlet on my Washer Machine , which I turn on MANUALLY when I notice my Electric Meter is at -400 watts.

I want to Automate this process , by a trigger set at -400 watts .

Anyways wish me luck.

Manny

Posted on
Tue Dec 10, 2013 12:29 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Energy EAGLE Discussion

Hey Manny.

Sounds like a good plan with the Digi. Good luck!

Posted on
Tue Dec 10, 2013 5:00 pm
GRWilde offline
User avatar
Posts: 173
Joined: Nov 15, 2005
Location: Los Angeles

Re: Energy EAGLE Discussion

The Energy Eagle Plugin seems to have quit working after Rainforest updated myb Eagle with their latest Beta software. I get the following error message:

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)

George Wilde

Posted on
Tue Dec 10, 2013 5:13 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Energy EAGLE Discussion

They probably changed another XML tag. :-( I'll need to see the debug log output from when you get that error. Hopefully they'll update their API soon. I'm not sure I'll be able to fix all the issues that will inevitably pop up from their "minor" changes.

Posted on
Tue Dec 10, 2013 5:59 pm
GRWilde offline
User avatar
Posts: 173
Joined: Nov 15, 2005
Location: Los Angeles

Re: Energy EAGLE Discussion

Here is the debug log

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>0x1a3a66e3</TimeStamp>
<Demand>0x000515</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>0x1a3a66ae</TimeStamp>
<SummationDelivered>0x01b71fdb</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>0x1a3a66e3</TimeStamp> <Demand>0x000515</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>0x1a3a66ae</TimeStamp> <SummationDelivered>0x01b71fdb</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>
0x1a3a66e3
</TimeStamp>

<Demand>
0x000515
</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>
0x1a3a66ae
</TimeStamp>

<SummationDelivered>
0x01b71fdb
</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.

George Wilde

Page 8 of 11 1 ... 5, 6, 7, 8, 9, 10, 11

Who is online

Users browsing this forum: No registered users and 2 guests