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

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.7
File Size Uploaded Provenance Actions
mqtt_alerts-0.4.7.tar.gz 36.9 kB With provenance Details for mqtt_alerts-0.4.7.tar.gz

Built distribution (wheel)

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

Total release size: 64.3 kB

Release files / mqtt_alerts-0.4.7.tar.gz

Download URL mqtt_alerts-0.4.7.tar.gz
Size 36.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b17c54c0cac19b95b0154bab8cd1ea3d638518d674f6458bc24f6b96b78e9708
BLAKE2b-256 checksum
How to use checksums
1948dfa5accc6ae71c7ee959c4c23f6b4a6b335c50358aff0755c67b945fdad4
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.7-py3-none-any.whl

Download URL mqtt_alerts-0.4.7-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad1265813659e2bc26329688dd0e18b3663871c308df8ce2dca3fdefdb59c4c3
BLAKE2b-256 checksum
How to use checksums
51be80309b5b74e810d40149ad25b553a7f67db5ebc712beb6db343c87347996
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.7

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