Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. String in einzelne Datenpunkte teilen MQTT

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    String in einzelne Datenpunkte teilen MQTT

    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xxxspxxx last edited by xxxspxxx

      Guten Morgen,

      ich habe einen MQTT Datenpunkt der als String (Zeichenkette) als Variable in den IoBroker gelegt wird.

        "_id": "mqtt.0.solar.inverter.11001xxxx",
        "common": {
          "name": "solar/inverter/11001xxxx",
          "write": true,
          "read": true,
          "role": "variable",
          "desc": "mqtt server variable",
          "type": "string"
      

      die Werte sehen so aus

      {"sn":11001xxxx"time":1664517853,"values":{"Iac":307,"Uac":228,"Fac":49.969998883083463,"Pac":70,"Zac":0.512000024318695,"Riso":10000,"dI":4,"Upv-Ist":330,"PPV":62,"E-Total":54739.336599978851,"h-Total":55488.681601827382,"h-On":60981.563699233026,"Netz-Ein":12674,"Seriennummer":11001xxxx"E-Total DC":53784.908797813579,"Status":"Mpp","Fehler":"-------"}}
      

      Jetzt würde ich diese gerne spitten in EInzelne Datenpunkte (Objekte). Wie könnte man das ggf. am geschicktesten machen?

      Vielen Dank

      arteck 1 Reply Last reply Reply Quote 0
      • arteck
        arteck Developer Most Active @xxxspxxx last edited by

        @xxxspxxx mit javascript oder mit blockly... schon mal nach gesucht ?

        X 1 Reply Last reply Reply Quote 0
        • X
          xxxspxxx @arteck last edited by

          @arteck

          ich habe es soeben mit Blockly gebaut.

          55227081-0fe9-4bcd-b76f-187748adb7e3-image.png

          Denke das müsste so passen.

          paul53 1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @xxxspxxx last edited by paul53

            @xxxspxxx sagte: das müsste so passen.

            Ja, es geht aber einfacher, da weder "nach Zahl" noch "JSON nach Objekt" benötigt werden.

            Bild_2022-09-30_143602486.png

            Die Variable value muss genau so geschrieben werden.

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

            Support us

            ioBroker
            Community Adapters
            Donate

            1.2k
            Online

            31.7k
            Users

            79.7k
            Topics

            1.3m
            Posts

            3
            4
            280
            Loading More Posts
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes
            Reply
            • Reply as topic
            Log in to reply
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
            The ioBroker Community 2014-2023
            logo