The Vera Community forums have moved!

General => Power Management => Topic started by: JohnVS on September 30, 2015, 04:08:07 pm

Title: Luup_variable_get issue GAS meter
Post by: JohnVS 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
 
Title: Re: Luup_variable_get issue GAS meter
Post by: reneboer 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
Title: Re: Luup_variable_get issue GAS meter
Post by: JohnVS on October 02, 2015, 01:07:26 am
Thanks Rene,
Well appreciated!

Cheers,

John