Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Javascript 0_userdata.0.xxx.als veränderbare Variable.01

    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

    Javascript 0_userdata.0.xxx.als veränderbare Variable.01

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

      Das hatte ich auch schon versucht, da kommt dann immer "null" als Ergebnis.

      Blockly2.PNG

      Ergebnis.PNG

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

        @stefan-w sagte: da kommt dann immer "null" als Ergebnis.

        Die Datenpunkt-ID passt zu einem vorhandenen Datenpunkt, der auch einen Wert hat? Evtl. führende "0" beim Monat?

        Log passt nicht zum Skript: Im Skript "2022.3"; im Log "3.2022".

        1 Reply Last reply Reply Quote 0
        • S
          Stefan W last edited by

          Hatte das geändert, da ich Monat und Jahr vertauscht hatte.

          Blockly3.PNG

          Ergebnis1.PNG

          Variable1.PNG

          1 Reply Last reply Reply Quote 0
          • S
            Stefan W last edited by

            Vielen lieben Dank. So geht es jetzt. 😊

            Blockly4.PNG

            1 Reply Last reply Reply Quote 0
            • S
              Stefan W last edited by

              Hallöchen,

              ich schon wieder 🙄

              Kann mir einer sagen, warum ich aus diesem Link einen Wert erhalte

              0_userdata.0.Verbrauchswerte.Zaehlerstaende.Strom.Haus.
              

              23:31:54.387 info javascript.0 (1085) script.js.Energie.Haus.Verbrauch: 10618

              und aus diesem nicht

              0_userdata.0.Verbrauchswerte.Zaehlerstaende.Wasser.aussen.
              

              23:31:54.387 info javascript.0 (1085) script.js.Energie.Haus.Verbrauch: null

              Ich verstehe das nicht, warum der eine geht und der andere nicht 😵

              Viele Grüße
              Stefan

              crunchip 1 Reply Last reply Reply Quote 0
              • crunchip
                crunchip Forum Testing Most Active @Stefan W last edited by

                @stefan-w sagte in Javascript 0_userdata.0.xxx.als veränderbare Variable.01:

                warum der eine geht und der andere nicht

                freche Antwort: weil Wasser und nicht Strom😁

                S 1 Reply Last reply Reply Quote 0
                • S
                  Stefan W @crunchip last edited by

                  @crunchip 😜

                  crunchip 1 Reply Last reply Reply Quote 0
                  • crunchip
                    crunchip Forum Testing Most Active @Stefan W last edited by

                    @stefan-w vergleich doch einfach die Datenpunkte

                    1 Reply Last reply Reply Quote 0
                    • S
                      Stefan W last edited by

                      Ich habe den Pfad aus Objekte kopiert, das kann nicht falsch sein.

                      crunchip 1 Reply Last reply Reply Quote 0
                      • crunchip
                        crunchip Forum Testing Most Active @Stefan W last edited by

                        @stefan-w den Datenpunkt selbst, nicht den Pfad

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          Stefan W @crunchip last edited by

                          @crunchip wie meinst du das?

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          660
                          Online

                          31.8k
                          Users

                          80.0k
                          Topics

                          1.3m
                          Posts

                          4
                          22
                          1598
                          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