🤖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.

    Scheduled Pinned Locked Moved Deutsches Forum
    4 Posts 2 Posters 6.6k Views
    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 Offline
      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 Offline
        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, M5Tab, M5CardputerAdv, M5StackChan

        1 Reply Last reply Reply Quote 0
        • J Offline
          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 Offline
            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, M5Tab, M5CardputerAdv, M5StackChan

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post