Skip to main content

mqtt-alerts

CI Docker Trivy PyPI version Python 3.10-3.13 License: MIT

mqtt-alerts logo

mqtt-alerts is a general-purpose MQTT alerting service. It subscribes to MQTT topics, evaluates threshold rules with hold times and hysteresis, persists alert state, and sends notifications through pluggable backends.

It works with mtr2mqtt, but it is not tied to mtr2mqtt. Any publisher that sends JSON payloads to MQTT can use this service.

Key Features

  • Multiple independent rules per sensor topic
  • Rule hold durations (for) and hysteresis support
  • Persistent alert lifecycle: pending, firing, acknowledged, resolved
  • SQLite-backed state and restart-safe acknowledgement tracking
  • Pluggable notification backends: telegram, ntfy, pushover
  • Automatic recovery notifications
  • Outbound-only acknowledgement polling (no public webhook required)

Supported Backends

  • telegram: push notifications with acknowledgement buttons (polled via Bot API)
  • ntfy: outbound push notifications
  • pushover: push notifications with emergency receipt acknowledgement support

Documentation

Quick Start

Install:

pip install mqtt-alerts

Run:

mqtt-alerts --config sample_config.yml

Container:

docker run --rm \
  -v "$(pwd)/sample_config.yml:/config/config.yml:ro" \
  -v "$(pwd)/state:/state" \
  tvallas/mqtt-alerts:latest \
  --config /config/config.yml

Metadata

Release files for mqtt-alerts 0.4.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mqtt-alerts 0.4.6
File Size Uploaded Provenance Actions
mqtt_alerts-0.4.6.tar.gz 36.9 kB With provenance Details for mqtt_alerts-0.4.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mqtt-alerts 0.4.6
File Interpreter ABI Platform Actions
mqtt_alerts-0.4.6-py3-none-any.whl Python 3 none any Details for mqtt_alerts-0.4.6-py3-none-any.whl

Total release size: 64.3 kB

Release files / mqtt_alerts-0.4.6.tar.gz

Download URL mqtt_alerts-0.4.6.tar.gz
Size 36.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d38077332ba8f643434c434c4137a81510c50345f04acd31ea7c69e759e71abc
BLAKE2b-256 checksum
How to use checksums
92b1a345bbba8a34f7f94cb85baa2f0a3e8c11241f4362c79fee5c8aaf23780b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.

Transparency log

Release files / mqtt_alerts-0.4.6-py3-none-any.whl

Download URL mqtt_alerts-0.4.6-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c91f50dbac1fa01be883afd8974a50760e7f9d3847345cab26e455db5a255e9
BLAKE2b-256 checksum
How to use checksums
d825cf1d81a89857430c417acf426557da28607769eddb4a78513c7d32ba9ebd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.

Transparency log

Security for mqtt-alerts 0.4.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mqtt_alerts-0.4.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page