We have moved at community.getvera.com

Author Topic: Luup_variable_get issue GAS meter  (Read 791 times)

Offline JohnVS

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Luup_variable_get issue GAS meter
« on: September 30, 2015, 04:08:07 pm »
I just mis an ahaaah moment for the following:
I do have a smart meter and smart meter plugin. The Gas device type urn is urn:schemas-rboer-com:device:SmartMeterGAS:1
How can I fill the gas Variable with the last volume.

local gas= luup.variable_get("urn:schemas-rboer-com:serviceId:SmartMeterGAS", "Gas",  METER_DEV_ID ) or "0"
this did not work.

The electric readings did work properly, but my GAS readings are not filling the GAS variable.



Please help
 

Offline reneboer

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1574
  • Karma: +110/-31
Re: Luup_variable_get issue GAS meter
« Reply #1 on: October 01, 2015, 06:44:30 am »
Hi John,

You have to use for the per hour usage:
local gas= luup.variable_get("urn:rboer-com:serviceId:SmartMeterGAS1", "Flow",  METER_DEV_ID ) or "0"

and for the meter reading in m3.
local gas= luup.variable_get("urn:rboer-com:serviceId:SmartMeterGAS1", "GasMeter",  METER_DEV_ID ) or "0"


Also make sure to use the device ID of the Smartmeter ImportGas device and not the main Smart Meter Reader device.

Cheers Rene
2xVeraLite, VeraEdge, openLuup, ALTUI, 20 switches, 10 dimmers, 20 sensors, 10 scene controllers, 1 Harmony Hub, many plug-ins. Not enough time.

Offline JohnVS

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: Luup_variable_get issue GAS meter
« Reply #2 on: October 02, 2015, 01:07:26 am »
Thanks Rene,
Well appreciated!

Cheers,

John