Python Plugin: Obis Code Extractor Meters over IP

Python and python framework

Moderator: leecollings

Post Reply
MFxMF
Posts: 7
Joined: Monday 02 April 2018 13:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Python Plugin: Obis Code Extractor Meters over IP

Post by MFxMF »

Hi,
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.

Devices.png
Devices.png (164.54 KiB) Viewed 561 times
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&param=udevice&idx=211&nvalue=0&svalue="..USAGE..";0;0;0;"..POWER..";0'"
os.execute(URLJSON);

return commandArray
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest