Skip to content
View modbus2mqtt's full-sized avatar

Block or report modbus2mqtt

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
modbus2mqtt/README.md

modbus2mqtt

A bridge that exposes Modbus (RTU/TCP) devices over MQTT, with native support for Home Assistant auto-discovery. Map registers to MQTT topics once via reusable device specifications and let any smart-home system consume the data.

Features

  • Modbus RTU (serial) and Modbus TCP support
  • MQTT publishing with Home Assistant MQTT auto-discovery
  • Web UI to browse buses, slaves, and specifications
  • Device specifications — reusable register-to-MQTT mappings that can be contributed back to the community
  • Runs as a Home Assistant add-on, Docker container, Proxmox LXC, or standalone Node.js process
  • OIDC authentication (OpenID Connect) for standalone deployments; supervisor-token auth inside Home Assistant
  • Optional HTTPS with auto-detected certificates

Quick start

Pick the deployment target that matches your environment:

Target Guide
Home Assistant add-on docs/installation-homeassistant.md
Docker docs/installation-docker.md
Proxmox LXC docs/installation-proxmox.md
Standalone / development docs/getting-started.md

After the server is running, the first steps — configuring MQTT, adding a bus, assigning specifications to slaves — are covered in the getting-started guide.

Authentication

modbus2mqtt has three authentication modes, chosen automatically at startup:

  1. Home Assistant add-on — supervisor token + IP whitelist, no user login.
  2. Standalone with OIDC — configure OIDC_* environment variables; users log in through your identity provider (Keycloak, Zitadel, Auth0, …).
  3. Standalone without OIDC — open access; intended for development or trusted networks.

Full setup instructions and troubleshooting are in docs/authentication.md.

Documentation

Contributing

Specifications, bug fixes, and features are welcome. See docs/contributing.md for the workflow, coding standards, and how to submit a specification pull request.

License

See LICENSE.

Popular repositories Loading

  1. modbus2mqtt modbus2mqtt Public

    server for modbus2mqtt for REST API of configuration and publishing modbus values to mqtt

    TypeScript 20 5

  2. hassio-addon-repository hassio-addon-repository Public

    Repository for Home Assistant Addon Modbus <=> MQTT

    Python 9 2

  3. modbus2mqtt.config modbus2mqtt.config Public

    configuration files for modbus2mqtt

    10

  4. node-red-contrib-dyn-pwr-price-opt node-red-contrib-dyn-pwr-price-opt Public

    Dynamic Power Price Optimization

    TypeScript 1

  5. node-red-contrib-mysql2-ts node-red-contrib-mysql2-ts Public

    Node Red node to access MYSQL Databases

    TypeScript 1

  6. modbus2mqtt.config.test modbus2mqtt.config.test Public

    Integration Test for specification validation