Author Topic: Adding power variables to Device/Advanced tab  (Read 971 times)

Offline MaKons

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Adding power variables to Device/Advanced tab
« on: December 13, 2013, 10:38:02 am »
I wonder whether it's possible to display power consumption values on Advanced tab of Device properties.

I tried to add hour_total and day_total variables for Fibaro wall plug. But unfortunately values of this variables are always null.
However i see values in LuaUPnP.log

Code: [Select]
50      12/13/13 19:34:17.990   luup_log:11: Device info payload: <?xml version="1.0"?><devices><device>
<device_id>10</device_id><urn>micasaverde-com</urn><service>EnergyMetering1</service><variable>Watts</variable>
<hour_avg>228.8571</hour_avg><day_avg>216.4490</day_avg><week_avg>216.4490</week_avg>
<month_avg>216.4490</month_avg><year_avg>220.9376</year_avg><life_avg>220.9376</life_avg></device><device>
<device_id>10</device_id><urn>micasaverde-com</urn><service>EnergyMetering1</service><variable>KWH</variable>
<hour_total>0.1100</hour_total><day_total>0.3300</day_total><week_total>0.3300</week_total>
<month_total>0.3300</month_total><year_total>0.3300</year_total><life_total>0.3300</life_total></device></devices>
<0x2bcd3680>

Maybe i do something wrong?
« Last Edit: December 13, 2013, 10:53:04 am by MaKons »