Luup_variable_get issue GAS meter

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

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

Thanks Rene,
Well appreciated!

Cheers,

John