Skip to main content

A Python module for interfacing with several energy meters

Project description

Energymeter Python Module

This is a Python module that implements the communication to several electricity meters and related equipment.

At the moment, the following meters are supported:

  • ABB B21, B23, A43 and similar ABB meters (Modbus Serial)
  • SMA SunnyBoy (Modbus TCP)
  • MultiCube meters

Some base classes are also provided for you to implement new meter variants.


git clone
cd python-energymeter
pip3 install .


To read all registers from a meter:

from energymeter import ABBMeter

meter = ABBMeter(port="/dev/ttyUSB0", baudrate=38400, slaveaddress=1, model="B23")
data =

This returns a dictionary with all key-value pairs of data.

To read a single register:

data ='current_l1')

This returns just the value (usualy a float or int).

To read multiple registers:

data =['current_l1', 'voltage_l1_n'])

This returns a dictionary with the requested keys and values.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

energymeter-1.3.0.tar.gz (11.2 kB view hashes)

Uploaded source

Built Distribution

energymeter-1.3.0-py3-none-any.whl (11.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page