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
-
Mosquitto MQTT message broker installed and accessible from the deployment machine.
-
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.
-
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0721c657690d0a9036b8284c9d816f54eeaccf0b6202489a189ce66602137d7f
|
|
| MD5 |
c6a66af675e7ec6e7c51526d4dba10d6
|
|
| BLAKE2b-256 |
ceb409aa78f8cee63f21a80d7863da74e2fd76c48abea80c0b464c7d56a6d811
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b10ae4804d4d3f7d15b1a3286529b948bc4562a1cef5a7908613fc0d4435bda7
|
|
| MD5 |
2980f9703e53983b6c59f481b25ea78e
|
|
| BLAKE2b-256 |
45a2a0cec731441d826aef9e2fd3ae047367be43c1d415425cc0fc47fafb3f4f
|