Skip to main content

Python script to make OpenRGB lights available in MQTT

Project description

RGB2MQTT

GitHub Code style: black Imports: isort

This is a Python script that will act as a brige between an OpenRGB server and an MQTT broker (like Mosquitto). Useful for if you want to control your PC RGB lights via Home Assistant for example.

This script is inspired by the original script from ghomasHudson and the fork from buttercheetah. This script is licensed under the MIT license, so feel free to try or change it yourself!

Installation

Use pip install -e . to install the required packages. If you are running an older Python version (<3.11) than you also need to install tomli: pip install tomli

Configuration

Configuration is stored in a config.toml file, see the config.toml.example file.

To generate a configuration file run the rgb2mqtt-config script after installing.

Be aware that in the device map section, you need to list the name of the OpenRGB device exactly as key. To figure out which devices are supported by OpenRGB, see the notebooks/tryout_openrgb_sdk.ipynb file.

Usage

The run the script, use python src/rgb2mqtt/rgb2mqtt.py, or use rgb2mqtt-run after installing.

If you want this script to autostart when your PC turns on (on Windows), use the rgb2mqtt-autostart command.

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

rgb2mqtt-1.0.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

rgb2mqtt-1.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file rgb2mqtt-1.0.0.tar.gz.

File metadata

  • Download URL: rgb2mqtt-1.0.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for rgb2mqtt-1.0.0.tar.gz
Algorithm Hash digest
SHA256 abb49e852c8e88680b4695bbe594af116d398c9b3c9ce2de039b3c5858a5d25c
MD5 8bce91cf78a7050d8d864adcd5f1e8cf
BLAKE2b-256 fcc0636fae6fa850d3ef4c499127651bc84f0e18e92c0d226bdd8d97ac195c5f

See more details on using hashes here.

File details

Details for the file rgb2mqtt-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rgb2mqtt-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for rgb2mqtt-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c550bc9648e2cb39f6c69b8629879df50292bd4231a3108764d9afe21be3e29c
MD5 8f11dbe7819100bab160caec7d519e2e
BLAKE2b-256 0ed0785d1151d40f59cc349f6443007683fe99ba1a073c8c76ea8a04f136ea7c

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