Skip to main content

A simple Linux-based doorbell, which plays the mp3 bell ringtone upon receiving an MQTT message.

Project description

Simple MQTT Door Bell

A simple Linux-based doorbell, which plays the mp3 bell ringtone upon receiving a MQTT message.

The main idea is to create a system service, which can play an audio file upon receiving the message from the MQTT message broker. This may be useful for configuring sound notifications or alarms in the Home Assistant automations.

Supported platforms

This solution has been tested on Ubuntu 22.04, but most likely will work on other Linux distros, with minor changes.

Prerequisites

  1. Mosquitto MQTT message broker installed and accessible from the deployment machine.

  2. MP3 player utility, which can play mp3 files from the command line, installed on the host machine. I used mpg123 but other options should work as well.

  3. Python verison >= 3.10

Installation

Configuration

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

mqtt_doorbell-0.1.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

mqtt_doorbell-0.1.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file mqtt_doorbell-0.1.0.tar.gz.

File metadata

  • Download URL: mqtt_doorbell-0.1.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.12

File hashes

Hashes for mqtt_doorbell-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0721c657690d0a9036b8284c9d816f54eeaccf0b6202489a189ce66602137d7f
MD5 c6a66af675e7ec6e7c51526d4dba10d6
BLAKE2b-256 ceb409aa78f8cee63f21a80d7863da74e2fd76c48abea80c0b464c7d56a6d811

See more details on using hashes here.

File details

Details for the file mqtt_doorbell-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mqtt_doorbell-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.12

File hashes

Hashes for mqtt_doorbell-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b10ae4804d4d3f7d15b1a3286529b948bc4562a1cef5a7908613fc0d4435bda7
MD5 2980f9703e53983b6c59f481b25ea78e
BLAKE2b-256 45a2a0cec731441d826aef9e2fd3ae047367be43c1d415425cc0fc47fafb3f4f

See more details on using hashes here.

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