Skip to content

Domoticz Plugin to extracting OBIS CODES values from Power Meters

Notifications You must be signed in to change notification settings

MFxMF/Domoticz-OBIS-Codes-Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Domoticz-OBIS-Codes-Extractor

Domoticz Plugin to extracting OBIS CODES values from Power Meters

This plugin only helping to extracting data from Power meters
All new device are creating as a text.
You have to make your on lua script, use value from obis text device and update the dummy device to make charts.


Obis codes descriptions -> https://www.promotic.eu/en/pmdoc/Subsystems/Comm/PmDrivers/IEC62056_OBIS.htm

Installation:
cd ~/domoticz/plugins
git clone https://github.com/MFxMF/Domoticz-OBIS-Codes-Extractor
sudo pip3 install telnetlib3

Restart your domoticz server.

Used python modules:
telnetlib3 -> https://telnetlib3.readthedocs.io


Tested on domoticz 4.10717



SETUP

Connection RS485 to LAN conventer to the Power Meter Screenshot



Setup RS485 to Lan Conventer


Conventer Home page -> https://www.usriot.com/products/modbus-serial-to-ethernet-converters.html

Screenshot



Connection TEST


To do connection test you have to telnet to RS485 conventer and after the connection
input initial code.
In my case is: /?!
Sometime device serial numer is neccesary
Example Below:

pi@raspberry:~$ telnet 192.168.2.221 26
Trying 192.168.2.221...
Connected to 192.168.2.221.
Escape character is '^]'.
/?!
/[email protected]
1-1:C.1.0(1312321)
1-1:0.9.1(10:43:51)
1-1:0.9.2(19-10-06)
1-1:1.8.1(00870.918kWh)
1-1:1.8.1
09(00853.841kWh)
1-1:1.8.1
08(00790.023kWh)
1-1:1.8.1
07(00732.802kWh)
1-1:1.8.1
06(00664.845kWh)
1-1:1.8.1
05(00604.491kWh)
1-1:1.8.2(00520.655
kWh)
1-1:1.8.209(00508.593kWh)
1-1:1.8.208(00478.261kWh)
1-1:1.8.207(00454.785kWh)
1-1:1.8.206(00424.815kWh)
1-1:1.8.205(00397.692kWh)
1-1:1.8.3(02127.828kWh)
1-1:1.8.3
09(02093.799kWh)
1-1:1.8.3
08(01931.960kWh)
1-1:1.8.3
07(01796.433kWh)
1-1:1.8.3
06(01628.924kWh)
1-1:1.8.3
05(01459.285kWh)
1-1:1.8.0(03519.402
kWh)
1-1:1.8.009(03456.235kWh)
1-1:1.8.008(03200.245kWh)
1-1:1.8.007(02984.021kWh)
1-1:1.8.006(02718.585kWh)
1-1:1.8.005(02461.470kWh)
1-1:5.8.1(00181.688kvarh)
1-1:5.8.1
09(00178.204kvarh)
1-1:5.8.1
08(00163.258kvarh)
1-1:5.8.1
07(00149.054kvarh)
1-1:5.8.1
06(00133.048kvarh)
1-1:5.8.1
05(00118.831kvarh)
1-1:5.8.2(00112.636
kvarh)
1-1:5.8.209(00110.163kvarh)
1-1:5.8.208(00102.996kvarh)
1-1:5.8.207(00096.784kvarh)
1-1:5.8.206(00089.491kvarh)
1-1:5.8.205(00083.043kvarh)
1-1:5.8.3(00406.531kvarh)
1-1:5.8.3
09(00401.129kvarh)
1-1:5.8.3
08(00368.797kvarh)
1-1:5.8.3
07(00339.454kvarh)
1-1:5.8.3
06(00303.322kvarh)
1-1:5.8.3
05(00263.973kvarh)
1-1:5.8.0(00700.856
kvarh)
1-1:5.8.009(00689.497kvarh)
1-1:5.8.008(00635.052kvarh)
1-1:5.8.007(00585.292kvarh)
1-1:5.8.006(00525.862kvarh)
1-1:5.8.005(00465.848kvarh)
1-1:8.8.1(00000.000kvarh)
1-1:8.8.1
09(00000.000kvarh)
1-1:8.8.1
08(00000.000kvarh)
1-1:8.8.1
07(00000.000kvarh)
1-1:8.8.1
06(00000.000kvarh)
1-1:8.8.1
05(00000.000kvarh)
1-1:8.8.2(00000.000
kvarh)
1-1:8.8.209(00000.000kvarh)
1-1:8.8.208(00000.000kvarh)
1-1:8.8.207(00000.000kvarh)
1-1:8.8.206(00000.000kvarh)
1-1:8.8.205(00000.000kvarh)
1-1:8.8.3(00000.401kvarh)
1-1:8.8.3
09(00000.390kvarh)
1-1:8.8.3
08(00000.386kvarh)
1-1:8.8.3
07(00000.351kvarh)
1-1:8.8.3
06(00000.339kvarh)
1-1:8.8.3
05(00000.339kvarh)
1-1:8.8.0(00000.401
kvarh)
1-1:8.8.009(00000.390kvarh)
1-1:8.8.008(00000.387kvarh)
1-1:8.8.007(00000.351kvarh)
1-1:8.8.006(00000.339kvarh)
1-1:8.8.005(00000.339kvarh)
1-1:1.6.0(0.552kW)(19-10-06,08:45)
1-1:1.6.0
09(0.577kW)(19-09-18,09:15)
1-1:1.6.0
08(0.586kW)(19-08-29,12:45)
1-1:1.6.0
07(0.592kW)(19-07-18,09:30)
1-1:1.6.0
06(0.603kW)(19-06-28,11:00)
1-1:1.6.0
05(0.556kW)(19-05-07,07:45)
1-1:1.2.1(008.090
kW)
1-1:1.2.109(008.090kW)
1-1:1.2.108(007.513kW)
1-1:1.2.107(006.927kW)
1-1:1.2.106(006.335kW)
1-1:1.2.105(005.732kW)
1-1:1.4.0(013)(0.474kW)
1-1:1.5.0(0.500
kW)
1-1:0.1.0(14)
1-1:0.1.209(19-10-01,00:00)
1-1:0.1.2
08(19-09-01,00:00)
1-1:0.1.207(19-08-01,00:00)
1-1:0.1.2
06(19-07-01,00:00)
1-1:0.1.205(19-06-01,00:00)
1-1:0.1.3
09(00:00)(00000000,00000000)
1-1:0.1.308(00:00)(00000000,00000000)
1-1:0.1.3
07(00:00)(00000000,00000000)
1-1:0.1.306(00:00)(00000000,00000000)
1-1:0.1.3
05(00:00)(00000000,00000000)
1-1:0.9.0(07)
1-1:C.61(19-10-01)
1-1:83.8.3(143.517kWh)
1-1:83.8.6(112802
kWh)
1-1:32.7.0(60.1V)
1-1:52.7.0(59.8
V)
1-1:72.7.0(60.3V)
1-1:31.7.0(3.068
A)
1-1:51.7.0(2.789A)
1-1:71.7.0(2.719
A)
1-1:1.7.0(0.488kW)
1-1:3.7.0(0.121
kvar)
1-1:4.7.0(0.000kvar)
1-1:13.7.0(0.97)
1-1:F.F(00000000)
1-1:F.F.1(00000000)
1-1:F.F.2(00000000)
1-1:F.F.3(00000000)
1-1:C.7.0(0001)
1-1:C.7.1(0000)
1-1:C.7.2(0002)
1-1:C.7.3(0000)
1-1:C.52(19-09-05,08:08)
1-1:C.53(08:08)
1-1:C.54(19-09-05,12:12)
1-1:C.55(12:12)
1-1:C.56(0000.04.04)
1-1:C.7.4(00)
1-1:C.77.0
01(19-09-04,08:08,19-09-04,12:12)
1-1:C.77.002(19-06-29,15:21,19-06-29,15:21)
1-1:C.77.0
03(18-08-25,15:13,18-08-25,15:13)
1-1:C.77.0*04(18-08-10,15:14,18-08-10,15:14)
1-1:C.3.0(00000000)
1-1:C.4.0(00C00088)
1-1:C.5.0(0020C0F0)
1-1:C.60(19-10-06)
1-1:C.2.0(02)
!

Domoticz Setup


Domoticz hardware
Screenshot
After setup domoticz plugin, on the Domoticz Devices, a new idx should be created
Screenshot

Example LUA Code


Make your own. Below an example.

Screenshot

About

Domoticz Plugin to extracting OBIS CODES values from Power Meters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages