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.