Skip to main content

A sml (Smart Message Language) energy meter to MQTT bridge. Can read from serial ports or http (e.g. Tibber Pulse).

Project description

sml2mqtt

Tests Status PyPI - Python Version PyPI Downloads Docker Image Version (latest by date) Docker Pulls

A simple yet extremely flexible sml to mqtt bridge

sml2mqtt is a asyncio application that can read multiple sml (Smart Message Language) streams from energy meters and report the values through mqtt. The meters can be read through serial ports or through http(s) (e.g. Tibber devices)

To read from the serial port an IR to USB reader for energy meter is required.

Documentation

The documentation can be found at here

Changelog

3.6 (2026-03-17)

  • Try logging error on invalid config file
  • Updated dependencies

3.5 (2025-11-03)

  • Updated dependencies

3.4 (2024-12-03)

  • Allow rounding to the multiple of a value
  • Updated dependencies

3.3 (2024-11-26)

  • Updated dependencies and docs
  • Allow rounding to the tenth

3.2 (2024-11-05)

  • Automatically select CRC e.g. for Holley DTZ541

3.1 (2024-08-05)

  • Updated dependencies
  • Added some small log messages

3.0 (2024-04-24)

BREAKING CHANGE

  • Almost complete rewrite, requires at least Python 3.10
  • Extensive value processing which can be configured -> Config file changed
  • Support for tibber pulse out of the box
  • The analyze flag can also be set through an environment variable which makes it easier for docker users

2.2 (2023-03-31)

  • Small config improvements

2.1 (2023-03-27)

  • Additional obis id for serial number matching
  • Improved serial reading a bit

2.0.0 (2023-03-22)

  • Release rework

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

sml2mqtt-3.6.0.tar.gz (48.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sml2mqtt-3.6.0-py3-none-any.whl (61.5 kB view details)

Uploaded Python 3

File details

Details for the file sml2mqtt-3.6.0.tar.gz.

File metadata

  • Download URL: sml2mqtt-3.6.0.tar.gz
  • Upload date:
  • Size: 48.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sml2mqtt-3.6.0.tar.gz
Algorithm Hash digest
SHA256 dcf3781b1bdf0dc81529ca124d449ff98960dccddab203651094b6c23f8ef955
MD5 7ad4d6934e57113eef666781afa2a3c9
BLAKE2b-256 29525b21c85340aa0eef320ae681ea3ef41ec825329ad9e6945598d2215c824f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sml2mqtt-3.6.0.tar.gz:

Publisher: publish-pypi.yml on spacemanspiff2007/sml2mqtt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sml2mqtt-3.6.0-py3-none-any.whl.

File metadata

  • Download URL: sml2mqtt-3.6.0-py3-none-any.whl
  • Upload date:
  • Size: 61.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sml2mqtt-3.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0268e796e20e8b0c3bcf4b6d5a51cd5e5866509bc457c775f2430f53ce3303bb
MD5 16e3c87075d0d686819f40c0330cf4a9
BLAKE2b-256 a286bf1f489d6848601bb36b06a596aa9b46c3e0162cbc8b0845c7b88580964e

See more details on using hashes here.

Provenance

The following attestation bundles were made for sml2mqtt-3.6.0-py3-none-any.whl:

Publisher: publish-pypi.yml on spacemanspiff2007/sml2mqtt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page