Metainformationen zur Seite
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
digitales:software:homeassistant:mqtt [24.04.2025] – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | digitales:software:homeassistant:mqtt [25.04.2025] (aktuell) – ↷ Links angepasst, weil Seiten im Wiki verschoben wurden cs | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | {{tag> | ||
+ | |||
+ | ====== MQTT ====== | ||
+ | |||
+ | ===== Shelly TRV ===== | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * {{digitales: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | * [[https:// | ||
+ | * [[MQTT Set TRV target_t]] | ||
+ | |||
+ | ==== TRVs ausschalten ==== | ||
+ | |||
+ | %%Push reset button for 5-6 sek. Will see AP on screen. Then push shortly once. And device will be switched off.%% | ||
+ | |||
+ | ==== Retain Message löschen ==== | ||
+ | |||
+ | * von [[https:// | ||
+ | |||
+ | For the folks still reading this thread, I’ve been using MQTT since 2018 and have never experienced the difficulties the OP has reported. | ||
+ | |||
+ | My introduction to MQTT began when I wanted to add MQTT support to an old home automation system. In order to do that, I had to gain a sufficient understanding of MQTT’s operation to ensure success. The resulting MQTT converter has worked very reliably and predictably for nearly 3 years now. | ||
+ | |||
+ | What the OP has experienced is anomalous. In my tests, using Developer Tools > Services > MQTT: Publish, to purge a retained message, does indeed work; the topic’s payload does not reappear as a retained message. | ||
+ | |||
+ | * Using MQTT Explorer, published a retained message to a new topic. | ||
+ | * Using Developer Tools > Services > MQTT: Publish, published an empty string, as a retained message, to the topic . | ||
+ | * Disconnected/ | ||
+ | * Restarted the MQTT Mosquitto Broker Add-On. | ||
+ | * Disconnected/ | ||
+ | * Using Developer Tools > Services > MQTT: Publish, published a // | ||
+ | * In MQTT Explorer (already running) it displayed the topic and its payload (// | ||
+ | |||
+ | In short, everything worked as expected. | ||
+ | |||
+ | The OP carried out a similar procedure but reported a different outcome, one where the topic always contains a retained message despite attempts to disable it. | ||
+ | |||
+ | There have been reports of performance issues with the MQTT Mosquitto Broker Add-on version 5.1.1 and maybe (just maybe) this is one of its manifestations. I can’t say for sure because I still use version 5.1 and it runs flawlessly. | ||
+ | |||
+ | ==== TRV-Liste ==== | ||
+ | |||
+ | Liste der TRV's nach Räumen | ||
+ | |||
+ | === Wohnen === | ||
+ | |||
+ | **Zieltemperatur setzen** | ||
+ | |||
+ | * Wohnen-01-alt: | ||
+ | * Wohnen-01: '' | ||
+ | * Wohnen-02: '' | ||
+ | * Wohnen-03: '' | ||
+ | |||
+ | **Externe Temperatur senden** | ||
+ | |||
+ | * Wohnen-01: '' | ||
+ | * Wohnen-02: '' | ||
+ | * Wohnen-03: '' | ||
+ | |||
+ | |||
+ | === Schlafen === | ||
+ | |||
+ | * '' | ||
+ | |||
+ | === Flur === | ||
+ | |||
+ | **Zieltemperatur setzen** | ||
+ | |||
+ | * Flur-01: '' | ||
+ | * Flur-02: '' | ||
+ | |||
+ | **Externe Temperatur senden** | ||
+ | |||
+ | * Flur-01: '' | ||
+ | * Flur-02: '' | ||
+ | |||
+ | === Küche === | ||
+ | |||
+ | * '' | ||
+ | |||
+ | === Bad === | ||
+ | |||
+ | * '' | ||
+ | |||
+ | ==== Shellies entdecken ==== | ||
+ | |||
+ | In HA unter [[https:// | ||
+ | |||
+ | Folgendes eintragen: | ||
+ | |||
+ | * **Publish a packet:** \\ **Topic:** '' | ||
+ | * **Listen to a topic:** \\ **Topic to subscribe to:** '' | ||
+ | |||
+ | Die Ausgabe für ein Shelly TRV sieht wie folgt aus: | ||
+ | |||
+ | <code json announce> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | <code json status> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | <code json info> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== TRV Settings ==== | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | ==== Lesen ==== | ||
+ | |||
+ | <code -> | ||
+ | mqtt: | ||
+ | sensor: | ||
+ | - name: " | ||
+ | unit_of_measurement: | ||
+ | # | ||
+ | device_class: | ||
+ | icon: mdi: | ||
+ | qos: 1 | ||
+ | state_topic: | ||
+ | value_template: | ||
+ | |||
+ | - name: " | ||
+ | unit_of_measurement: | ||
+ | # | ||
+ | device_class: | ||
+ | icon: mdi: | ||
+ | qos: 1 | ||
+ | state_topic: | ||
+ | value_template: | ||
+ | |||
+ | - name: " | ||
+ | unit_of_measurement: | ||
+ | # | ||
+ | device_class: | ||
+ | icon: mdi:battery | ||
+ | qos: 1 | ||
+ | state_topic: | ||
+ | value_template: | ||
+ | </ | ||
+ | |||
+ | ==== Schreiben ==== | ||
+ | |||
+ | <code yaml> | ||
+ | service: mqtt.publish | ||
+ | data: | ||
+ | qos: " | ||
+ | retain: false | ||
+ | topic: shellies/ | ||
+ | payload_template: | ||
+ | </ | ||
+ | |||
+ | ===== Lidl-Plug ===== | ||
+ | |||
+ | Dann wählst du dein Zigbee Gerät (Lidl Steckdose) aus | ||
+ | |||
+ | Endpunkt: 1\\ Cluster-ID: OnOff\\ | ||
+ | |||
+ | Dann den Button " | ||
+ | |||
+ | Im Log erscheint eine Meldung: 2023-04-17 13: | ||
+ | |||
+ | Mit dem Befehl: | ||
+ | |||
+ | Endpunkt: 1\\ Cluster-ID: genOnOff\\ | ||
+ | |||