Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. PV-System über JSON als Datenpunkte eintragen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    UNSOLVED PV-System über JSON als Datenpunkte eintragen

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

      Hallo zusammen,

      ich habe ein PV-System von Solplanet, welches ich per JSON abfragen kann:

      4e9a151b-06bc-40ff-9e9a-b8441a313c9d-grafik.png

      pac= Power AC
      eto= Energy Total /10
      etd= Energy Today /10
      usw...

      Ich möchte nun diese JSON Abfrage in Datenpunkte umwandeln, allerdings habe ich noch nie mit JSON gearbeitet.
      Wie kann ich (bervorzugt mit Blockly) aus der JSON Abfrage, nun Objekte / Datenpunkte anlegen und aktualisieren?

      Danke vorab

      Homoran paul53 2 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Pinguino last edited by

        @daniel-hefele sagte in PV-System über JSON als Datenpunkte eintragen:

        welches ich per JSON abfragen kann:

        dann stell das JSON hier mal als Text in code-tags ein

        Pinguino 1 Reply Last reply Reply Quote 0
        • Pinguino
          Pinguino @Homoran last edited by

          @homoran

          JSON Rohdaten:

          {"flg":1,"tim":"20240301122647","tmp":377,"fac":4998,"pac":1285,"sac":1285,"qac":0,"eto":22,"etd":22,"hto":2,"pf":100,"err":0,"vac":[2326,2331,2326],"iac":[21,20,17],"vpv":[5535,2589,0],"ipv":[160,163,0],"str":[],"stu":1,"pac1":439,"qac1":0,"pac2":457,"qac2":0,"pac3":383,"qac3":0}
          
          Homoran 1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @Pinguino last edited by

            @daniel-hefele

            Screenshot_20240301-124444_Firefox.jpg

            Beispiel für pac

            Eigenen Datenpunkt unter 0_userdata.0 anlegen

            Blockly auf Änderung des Json Datenpunktes triggern

            Wenn Änderung
            dann aktualisiere PacDP mit Attribut pac vom JSON DP

            Pinguino 1 Reply Last reply Reply Quote 0
            • Pinguino
              Pinguino @Homoran last edited by

              @homoran

              Datenpunkte sind bereits angelegt. Allerdings scheitert es am JSON Datenpunkt triggern.
              Wie kann ich den JSON Datenpunkt triggern? (evtl. löst sich damit auch direkt die folgefrage bzgl. aktualisieren ;_)

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

                @pinguino sagte: aus der JSON Abfrage, nun Objekte / Datenpunkte anlegen und aktualisieren?

                Ganz ohne Skript mit Alias-Datenpunkten vom Typ "Zahl", Rolle "value" und mit Lesekonvertierung. Beispiel Leistung:

                JSON.parse(val).pac
                

                Beispiel Energie total:

                JSON.parse(val).eto / 10
                
                1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @Pinguino last edited by

                  @pinguino sagte: Wie kann ich den JSON Datenpunkt triggern?

                  Du hast das JSON bereits in einem Datenpunkt?

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

                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  477
                  Online

                  31.9k
                  Users

                  80.1k
                  Topics

                  1.3m
                  Posts

                  3
                  7
                  285
                  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