PHPackages                             do-while/contao-mqtt-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. do-while/contao-mqtt-bundle

ActiveContao-bundle

do-while/contao-mqtt-bundle
===========================

InsertTags for MQTT topics

1.0.0(3y ago)03LGPL-3.0-or-laterPHPPHP ^7.4 || ^8.0

Since Apr 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/do-while/contao-mqtt-bundle)[ Packagist](https://packagist.org/packages/do-while/contao-mqtt-bundle)[ Docs](https://www.softleister.de)[ RSS](/packages/do-while-contao-mqtt-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Contao MQTT Bundle
==================

[](#contao-mqtt-bundle)

**InsertTags für MQTT-Topics**

Die Erweiterung verhält sich als MQTT-Client und unterstützt MQTT-Publish und MQTT-Subscribe für einzelne Topics

Die zu lesenden Daten müssen im MQTT-Broker als "Retained Message" vorliegen, damit der Broker sofort beim Subscribe den letzten Wert "Last known good" senden kann. Die Sensoren, die den Wert zum Broker publishen, müssen dazu "retain" setzen (ist meist einstellbar).

### Publish

[](#publish)

`{{sendmqtt::topic::value}}`
Einen Wert oder String an den MQTT-Broker published. Der Topic kann mehrstufig mit `/` getrennt sein.

Beispiel: `{{sendmqtt::foo/bar::5}}` setzt den Topic "Contao/domain.tld/foo/bar" auf den Wert 5

### Subscribe

[](#subscribe)

`{{mqtt::topic::JSON-Variable}}`
Ruft den Wert des angegebenen Topic vom Broker ab. Der Topic kann mehrstufig mit `/` getrennt sein. Teilweise findet man in dem Topic einen String im JSON-Format. Mit der JSON-Variable (optional) kann ein Wert aus einem Rückgabe-Array herausgelöst werden.

Beispiel: `{{mqtt::Tasmota/Abstand/tele/SENSOR::SR04/Distance}}` ruft den Topic "Tasmota/Abstand/tele/SENSOR" ab. Das Ergebnis ist ein Array mit mehreren Werten, daraus soll dann die Distance ausgelesen werden: `arrErgebnis['SR04']['Distance']`

---

Installation
------------

[](#installation)

---

Installieren Sie die Erweiterung einfach mit dem **Contao Manager** oder auf der Kommandozeile mit dem **Composer**:

```
composer require do-while/contao-mqtt-bundle

```

Zugangsdaten zum MQTT-Broker eintragen
--------------------------------------

[](#zugangsdaten-zum-mqtt-broker-eintragen)

Die Zugangsdaten für den MQTT-Broker werden in der Datei `config/config.yml` eingetragen:

```
contao:
    localconfig:
        mqtt_host:
        mqtt_port: 1883
        mqtt_clientid: 'contao'
        mqtt_user:
        mqtt_pass:

```

Einrücken jeweils mit 4 Leerzeichen, wenn die Struktur bereits vorhanden ist, können die neuen Einträge einfach ergänzt werden. **Nach dem Speichern unbedingt den Symfony-Cache neu aufbauen!**

---

Version
-------

[](#version)

---

- 1.0.0
    Freigabedatum: 2023-04-24
    Version für Contao 4 ab Version 4.13 LTS

Support
-------

[](#support)

Softleister - Hagen Klemp,

---

Stand: 2023-04-24

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1111d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/090f27ffbef754ccf5c44c9f66a266f6e5f6345b36255d1e3d412b86dd11cb31?d=identicon)[do-while](/maintainers/do-while)

---

Top Contributors

[![do-while](https://avatars.githubusercontent.com/u/1299776?v=4)](https://github.com/do-while "do-while (4 commits)")

---

Tags

contaomqttinserttag

### Embed Badge

![Health badge](/badges/do-while-contao-mqtt-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/do-while-contao-mqtt-bundle/health.svg)](https://phpackages.com/packages/do-while-contao-mqtt-bundle)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[madeyourday/contao-rocksolid-custom-elements

Create your own, nestable content elements using a modular system. End the WYSIWYG chaos with your own content elements.

50341.9k12](/packages/madeyourday-contao-rocksolid-custom-elements)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[terminal42/contao-node

Node bundle for Contao Open Source CMS

3172.5k4](/packages/terminal42-contao-node)[terminal42/contao-folderpage

Provides a new page type for Contao that allows you to group pages into folders.

18147.9k9](/packages/terminal42-contao-folderpage)[terminal42/dcawizard

dcaWizard extension for Contao Open Source CMS

10370.7k15](/packages/terminal42-dcawizard)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
