Jump to content

Setting variable from Aeon Labs energy meter


e40

Recommended Posts

Posted

Hello,

 

I'm trying to set a variable using a network resource pointing at my Aeon Labs Z-Wave energy meter.

 

Here is how the node shows up:

<?xml version="1.0" encoding="UTF-8"?>
<nodeInfo>
<node flag="0">
<address>ZW008_143</address>
<name>ZW 008 Energy Meter</name>
<family>4</family>
<parent type="3">54812</parent>
<type>4.33.1.0</type>
<enabled>true</enabled>
<deviceClass>0</deviceClass>
<wattage>0</wattage>
<dcPeriod>0</dcPeriod>
<startDelay>0</startDelay>
<endDelay>0</endDelay>
<pnode>ZW008_1</pnode>
<sgid>143</sgid>
<devtype>
<gen>4.33.1</gen>
<mfg>134.2.9</mfg>
<cat>143</cat>
</devtype>
<property id="ST" uom="73" formatted="2030.52 Watts" value="203052" prec="2"/>
</node>
<properties>
<property id="ST" uom="73" formatted="2030.52 Watts" value="203052" prec="2"/>
<property id="TPW" uom="33" formatted="9.63 kWh" value="963" prec="2"/>
</properties>
</nodeInfo>

And this is how I set up my network resource. 

GET /rest/vars/set/2/1/${sys.node.ZW008_143.ST.raw} HTTP/1.1
Host: 192.168.5.10:80
User-Agent: Mozilla/4.0
Connection: Close
Content-Type: application/x-www-form-urlencoded
Authorization: Basic ****************

I get a 404 when I test it...  Thanks in advance,

 

 

 

Posted

Hi e40,

 

Are you calling ISY from itself?

 

Does the same work if you replace the $variable with a static value?

 

With kind regards,

Michel


Also, you can already set variables to device states in 5.0.11B in programs.

With kind regards,
Michel
Posted

Hi Michel, 

 

Yes, this network resource & variable is on the ISY itself.  What I'm trying to do is read the value from the energy meter, place it in a variable that I can view in eKeyPad to show current power consumption.

 

As a test, I changed the path to /rest/vars/set/2/1/12345 and it populated the variable to '12345' as expected.

Posted

Hi e40,

 

Please try sending that variable through email. Maybe the address is wrong.

 

In call cases, you do NOT need these acrobatics with 5.0.11B: you can simply save the status of a device to a variable and then reuse it.

 

With kind regards,

Michel

Posted (edited)

Hello -

 

Yes, if I send myself a test email message with variable  ${sys.node.ZW008_143.ST.raw} it displays it just fine.  Interesting.

 

I'll take a look at the alpha...

Edited by e40
Posted

Hello -

 

The variable seems to work as expected in 5.0.11B, thanks.  I rolled back to 4.6.2 for now, eK Pro was showing the thermostat temps as "730" instead of 73.0 and wouldn't allow adjustments.  

  • Like 1
Guest
This topic is now closed to further replies.

×
×
  • Create New...