🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    MQTT Daten vom Iobroker auf M5Stack Core darstellen.

    Deutsches Forum
    2
    4
    4.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      juergschwarz
      last edited by

      Hallo alle

      Ich versuche verzweifelt ein paar Daten von meinem Iobroker per MQTT zu beziehen und diese auf dem M5Stack Core darzustellen. Ich möchte das mit der UIFlow erledigen. Ich weiss, dass es mit einem Python Script funktioniert. (Habe mir per chatPGT ein solche erstellen lassen aber leider komm ich da mit der Darstellung und mehreren Datenpunkte nicht klar.

      Also ich will das per Blockly haben in der UIFLOW Cloud.

      Meine Datenpunkte sind:

      Boilertemp: mqtt.0.ESP_Easy.Boiler.temperature
      Kesseltemp: mqtt.0.ESP_Easy.KesselTemp.temperature
      Vorlauftemp: mqtt.0.ESP_Easy.Vorlauf1.temperature

      Welche Elemente benötige ich im Blockly für diese Abfragen?

      In Python sieht das z.B. so aus:

      // Subscribe to first data point
      client.subscribe("mqtt.0.ESP_Easy.Boiler.temperature");
      while (!client.available()) {
      delay(1000);
      }

      Hab scho einiges mit dem Subscripe Element versucht. Leider ohne Erfolg.

      Danke schonmal.

      1 Reply Last reply Reply Quote 0
      • robskiR
        robski
        last edited by

        @juergschwarz said in MQTT Daten vom Iobroker auf M5Stack Core darstellen.:

        Hallo alle
        Ich versuche verzweifelt ein paar Daten von meinem Iobroker per MQTT zu beziehen und diese auf dem M5Stack Core darzustellen. Ich möchte das mit der UIFlow erledigen. Ich weiss, dass es mit einem Python Script funktioniert. (Habe mir per chatPGT ein solche erstellen lassen aber leider komm ich da mit der Darstellung und mehreren Datenpunkte nicht klar.
        Also ich will das per Blockly haben in der UIFLOW Cloud.
        Meine Datenpunkte sind:
        Boilertemp: mqtt.0.ESP_Easy.Boiler.temperature
        Kesseltemp: mqtt.0.ESP_Easy.KesselTemp.temperature
        Vorlauftemp: mqtt.0.ESP_Easy.Vorlauf1.temperature
        Welche Elemente benötige ich im Blockly für diese Abfragen?
        In Python sieht das z.B. so aus:
        // Subscribe to first data point
        client.subscribe("mqtt.0.ESP_Easy.Boiler.temperature");
        while (!client.available()) {
        delay(1000);
        }
        Hab scho einiges mit dem Subscripe Element versucht. Leider ohne Erfolg.
        Danke schonmal.

        Hi @juergschwarz , see below in blockly ...worked for me. My Setup was few esp-easy sending mqtt data to local mqtt server on raspberryPi, then M5 Core as data display subscribing to local mqtt.
        Regards.
        Rob.
        0_1675846129447_m5coremqtt0.jpg

        M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ

        1 Reply Last reply Reply Quote 0
        • J
          juergschwarz
          last edited by

          Thank you verry much. I only had to remove the trailing slash bevor the ESP_Easy..

          So what are you doing with this ctu0 and the hiding of label 0 and 1??

          robskiR 1 Reply Last reply Reply Quote 0
          • robskiR
            robski @juergschwarz
            last edited by

            @juergschwarz oh this ctu_0 or hiding labels is just additional project related stuff I needed at the time, not required for you to just display values subscribed by mqtt.

            M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ

            1 Reply Last reply Reply Quote 0
            • First post
              Last post