Plugin is design as a universal value extractor from a meters using OBIS codes.
https://github.com/MFxMF/Domoticz-OBIS-Codes-Extractor
Value are save in the domoticz as a TEXT devices.
You have to do your own script for present data as a chart using the dummy devices.
Plugin should work with any Meter (electric, heat, gas, water), supporting OBIS codes via RS485 or RS232
Tested on the Energy Meter Elster A1500
Example LUA CODE:
Code: Select all
commandArray = {}
print ("P1 Meter");
SYSTEM_MULTIPLIER=1600
-- 1-1:1.7.0(0.467*kW)
POWER=otherdevices_svalues['A1500.Obis.Codes - 1-1:1.7.0']
POWER=POWER*SYSTEM_MULTIPLIER*1000
-- Obis 1-1:1.8.0(03388.522*kWh)
USAGE=otherdevices_svalues['A1500.Obis.Codes - 1-1:1.8.0']
USAGE=USAGE*SYSTEM_MULTIPLIER*1000
-- commandArray['UpdateDevice']= not working with influx
-- commandArray['UpdateDevice']='211|0|'..USAGE..';0;0;0;'..POWER..';0'
URLJSON="/usr/bin/curl -m 2 'http://127.0.0.1:8080/json.htm?type=command¶m=udevice&idx=211&nvalue=0&svalue="..USAGE..";0;0;0;"..POWER..";0'"
os.execute(URLJSON);
return commandArray