Skip to main content

Simplifying IoT Solutions with MQTT Integration

Project description

iot2mqtt: Simplifying IoT Solutions with MQTT Integration

"Less is More"

Introduction

iot2mqtt is a versatile Python library built upon the Paho™ MQTT client. It is designed to simplify IoT application development by providing a programmatic alternative to traditional home automation platforms, without the overpromises of no-code solutions.

Landscape

Description

iot2mqtt offers a robust and flexible solution for integrating various IoT devices using the MQTT protocol. Whether you are looking to connect directly with devices or through gateways, iot2mqtt provides the tools you need to build reliable and scalable IoT applications.

Key Features

  • Programmatic Alternative: Provides more flexibility and control compared to traditional home automation platforms like openHAB, Home Assistant, and Jeedom.
  • Reliable Communication: Leverages the MQTT protocol to ensure reliable data transfer between devices.
  • Protocol-Agnostic: Supports both direct device integration over MQTT (e.g., Shelly, Tasmota) and gateway integration (e.g., Zigbee2MQTT, ring to MQTT, miflora to MQTT).
  • Abstract Devices: Comprehensive support for creating and managing abstract devices, simplifying the integration between different device models, providers, and protocols.

Documentation

You can access the full documentation at slassabe.github.io/iot2mqtt

Getting Started

To get started with iot2mqtt, follow these steps:

Prerequisites

  • Python 3.x
  • IoT bridges if required (e.g., Zigbee2MQTT, ring to MQTT, miflora to MQTT)

Installation

The latest stable version is available in the Python Package Index (PyPi) and can be installed using

pip3 install iot2mqtt

or with virtualenv:

python3 -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`
pip3 install iot2mqtt

Installation from Github

To obtain the code, you can clone the Github repository:

  1. Clone the repository:

    git clone https://github.com/slassabe/iot2mqtt.git
    
  2. Navigate to the project directory:

    cd iot2mqtt
    
  3. (Optional) Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
    
  4. Install the required dependencies:

    sudo pip3 install -r requirements.txt
    

Test installation

To verify that the installation was successful, you can use the cli_iot2mqtt command. This command will help you ensure that everything is set up correctly.

  1. Open your terminal.

  2. Run the following command:

    cli_iot2mqtt
    

You should see output similar to the screenshot below, indicating that the command is working as expected.

cli_iot2mqtt

Related projects

  • paho-mqtt : Eclipse Paho™ MQTT Python Client
  • miflora-mqtt-daemon : Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon
  • ring-mqtt : Ring devices to MQTT Bridge
  • zigbee2mqtt : Allows you to use your Zigbee devices without the vendor's bridge or gateway.

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

iot2mqtt-0.9.4.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

iot2mqtt-0.9.4-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

Details for the file iot2mqtt-0.9.4.tar.gz.

File metadata

  • Download URL: iot2mqtt-0.9.4.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for iot2mqtt-0.9.4.tar.gz
Algorithm Hash digest
SHA256 e6510b99efcda4a08cfc1e96c99d6d3c1d71f46abf496b25c7b32e94198d5c48
MD5 4c6b4bcf947503f4c4288e07574a2b5e
BLAKE2b-256 a71eb2765e8defab32cd532a04a82be9f8d28ea9f809b572189504fc2f815e98

See more details on using hashes here.

File details

Details for the file iot2mqtt-0.9.4-py3-none-any.whl.

File metadata

  • Download URL: iot2mqtt-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 33.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for iot2mqtt-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b7c43a2c31f7f4d8a64deeeb9a698d08716fb0a03fcfbfe642920c64ee1654f6
MD5 9c1fa56a0f1d155450e9ff9d50c7a151
BLAKE2b-256 4b7c7f03307bf22ec8245ebdc2ac5a9523cfba3207d9ec5b7d74f9d077ce94e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page