Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [ gelöst ] JSON aufteilen in DP

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [ gelöst ] JSON aufteilen in DP

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @mickym last edited by

      @mickym Ist sehr interessant (vielleicht werd ich deswegen mit jsonata nicht warm), aber könnten wir das bitte aus diesem Thread erst mal herauslassen.

      ich fürchte wir verlieren @ioBrokerMike sonst.

      mickym 1 Reply Last reply Reply Quote 0
      • mickym
        mickym Most Active @ioBrokerMike last edited by

        @iobrokermike Ja entweder konvertierst Du die Anzahl in eine Zahl oder den Datenpunkt in String/Zeichenkette.

        I 1 Reply Last reply Reply Quote 0
        • mickym
          mickym Most Active @Homoran last edited by

          @homoran Ja ist OK - ich habs selbst gecheckt - Du kannst den Post auch löschen.

          1 Reply Last reply Reply Quote 1
          • I
            ioBrokerMike @mickym last edited by

            @mickym sagte in JSON aufteilen in DP:

            die Anzahl in eine Zahl oder den Datenpunkt in String/Zeichenkette.

            Schon gemacht

            1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @ioBrokerMike last edited by Homoran

              @iobrokermike sagte in JSON aufteilen in DP:

              So jetzt die Filterung von Javascript:

              und in dem Zeitbereich (4 Sekunden!) hast du das Testskript refreshed?

              @iobrokermike sagte in JSON aufteilen in DP:

                                      2024-11-29 20:59:12.004	warn	(COMPACT)
              

              läuft der Adapter bei dir im compact mode?
              warum?

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

                @homoran sagte in JSON aufteilen in DP:

                nd in dem Zeitbereich (4 Sekunden!) hast du das Testskript refres

                Nein das hatte ich nicht getan.

                läuft der Adapter bei dir im compact mode?
                warum?

                Das kann ich nicht sagen.
                Habe den harken im Host raus gemacht.

                Was mir eben auffiel ist :
                Wenn ich den Javascript Adapter auf debug stelle läuft das Testscript warum auch immer.
                Blockly 7.png

                Homoran 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @ioBrokerMike last edited by

                  @iobrokermike sagte in JSON aufteilen in DP:

                  läuft das Testscript warum auch immer.

                  dann jetzt zum echten Skript!

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

                    @homoran sagte in JSON aufteilen in DP:

                    t zum echten Skript!

                    Blockly 8.png

                    Vielen Dank an euch und eure Geduld . 👍

                    Homoran 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @ioBrokerMike last edited by

                      @iobrokermike sagte in [ gelöst ] JSON aufteilen in DP:

                      Vielen Dank an euch und eure Geduld .

                      heisst das, dass es jetzt läuft?

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

                        @homoran

                        Richtig !!!
                        Es läuft.

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @ioBrokerMike last edited by

                          @iobrokermike sagte in [ gelöst ] JSON aufteilen in DP:

                          @homoran

                          Richtig !!!
                          Es läuft.

                          Super!
                          so muss es sein!

                          dann kann @mickym jetzt mit @paul53 weiter über die Wandlung des json zum Objekt philosophieren

                          mickym 1 Reply Last reply Reply Quote 0
                          • mickym
                            mickym Most Active @Homoran last edited by

                            @homoran Nicht mehr nötig - ich konnte es mir ja selbst erklären.

                            Homoran 1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @mickym last edited by

                              @mickym sagte in [ gelöst ] JSON aufteilen in DP:

                              @homoran Nicht mehr nötig - ich konnte es mir ja selbst erklären.

                              ok, du hast wieder heimlich editiert 😉
                              ist aber nur eine Arbeitshypothese, oder?

                              mickym 1 Reply Last reply Reply Quote 0
                              • mickym
                                mickym Most Active @Homoran last edited by

                                @homoran Nein ich habe nichts editiert. Ich habe nur folgendes verstanden:

                                1. Wenn Du über einen JSON String ein Attribut extrahierst, wird temporär in ein Objekt gewandelt, um das Attribut zu extrahieren. Es bleibt aber ein JSON, also Text und wird nicht in ein Objekt gewandelt.
                                2. Um also den JSON als Objekt weiter zu verarbeiten musst du den JSON permanent in ein Objekt wandeln.

                                Das ganze hat also nichts mit JSONATA zu tun.

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                955
                                Online

                                31.6k
                                Users

                                79.6k
                                Topics

                                1.3m
                                Posts

                                5
                                48
                                1869
                                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