Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. [gelöst] Blocky Datenpunkt auslesen geht nicht?

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    17
    1
    613

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    5.6k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

[gelöst] Blocky Datenpunkt auslesen geht nicht?

Scheduled Pinned Locked Moved Blockly
19 Posts 5 Posters 1.5k Views 4 Watching
  • 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.
  • M Moby Dick

    Hallo zusammen!!
    Ich fange gerade neu mit iobroker Blocky an und habe auch gleich die ersten Probleme.
    Ich möchte für Blocky ein Datenpunkt erstellen, beschreiben und wieder auslesen!
    Ein Datenpunkt erstellen und beschreiben habe ich hinbekommen.
    Mein Problem ist jetzt:
    Wenn ich den Datenpunkt auslesen möchte bekomme ich folgende Fehlermeldung.

    9.12.2020, 09:49:15.021 [info ]: javascript.0 (16643) Stop script script.js.common.abc
    9.12.2020, 09:49:15.168 [info ]: javascript.0 (16643) Start javascript script.js.common.abc
    9.12.2020, 09:49:15.187 [info ]: javascript.0 (16643) script.js.common.abc: subscribe: {"pattern":{"id":"ds18b20.0.sensors.10-00080269db5f","change":"any","q":0},"name":"script.js.common.abc"}
    9.12.2020, 09:49:15.190 [info ]: javascript.0 (16643) script.js.common.abc: javascript.0._Eigener_Wert.Temperatur1
    9.12.2020, 09:49:15.191 [info ]: javascript.0 (16643) script.js.common.abc: registered 1 subscription and 0 schedules
    9.12.2020, 09:49:15.621 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
    9.12.2020, 09:49:15.622 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
    9.12.2020, 09:49:15.628 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)
    9.12.2020, 09:49:26.501 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
    9.12.2020, 09:49:26.502 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
    9.12.2020, 09:49:26.507 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)

    Was habe ich nicht Richtig gemacht?
    Danke für die Antwort!

    OcrimO Offline
    OcrimO Offline
    Ocrim
    wrote on last edited by
    #2

    @Moby-Dick
    Grüß dich,
    Poste am besten mal das dazugehörige Skript

    M 1 Reply Last reply
    0
    • OcrimO Ocrim

      @Moby-Dick
      Grüß dich,
      Poste am besten mal das dazugehörige Skript

      M Offline
      M Offline
      Moby Dick
      wrote on last edited by
      #3

      blocky.jpg

      Ich habe das kleine Skript noch mal gelöscht und neu geschrieben.
      Jetzt bekomme ich keine Fehlermeldung mehr.
      Aber als Ausgabe nicht den Inhalt sondern den Datenpunkt Namen als Ausgabe.

      N 1 Reply Last reply
      0
      • M Moby Dick

        blocky.jpg

        Ich habe das kleine Skript noch mal gelöscht und neu geschrieben.
        Jetzt bekomme ich keine Fehlermeldung mehr.
        Aber als Ausgabe nicht den Inhalt sondern den Datenpunkt Namen als Ausgabe.

        N Offline
        N Offline
        Nordischerjung
        wrote on last edited by
        #4

        @Moby-Dick

        du musst auch Wert vom ObjektID nehmen

        Gruß Nordischerjung

        sonnige Grüße von der Ostsee

        M 1 Reply Last reply
        0
        • N Nordischerjung

          @Moby-Dick

          du musst auch Wert vom ObjektID nehmen

          M Offline
          M Offline
          Moby Dick
          wrote on last edited by
          #5

          @Nordischerjung habe ich auch schön versucht. Dann bekomme ich wieder die Fehlermeldung
          9.12.2020, 11:12:01.289 [info ]: javascript.0 (16643) Stop script script.js.common.abc
          9.12.2020, 11:12:01.418 [info ]: javascript.0 (16643) Start javascript script.js.common.abc
          9.12.2020, 11:12:01.435 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
          9.12.2020, 11:12:01.436 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.TestText", (err, state) => { ... });
          9.12.2020, 11:12:01.450 [error]: javascript.0 (16643) script.js.common.abc: script.js.common.abc:1
          9.12.2020, 11:12:01.453 [error]: javascript.0 (16643) at script.js.common.abc:1:61

          Dankeschön für Helfen

          A 1 Reply Last reply
          0
          • M Moby Dick

            @Nordischerjung habe ich auch schön versucht. Dann bekomme ich wieder die Fehlermeldung
            9.12.2020, 11:12:01.289 [info ]: javascript.0 (16643) Stop script script.js.common.abc
            9.12.2020, 11:12:01.418 [info ]: javascript.0 (16643) Start javascript script.js.common.abc
            9.12.2020, 11:12:01.435 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
            9.12.2020, 11:12:01.436 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.TestText", (err, state) => { ... });
            9.12.2020, 11:12:01.450 [error]: javascript.0 (16643) script.js.common.abc: script.js.common.abc:1
            9.12.2020, 11:12:01.453 [error]: javascript.0 (16643) at script.js.common.abc:1:61

            Dankeschön für Helfen

            A Offline
            A Offline
            Ahnungsbefreit
            wrote on last edited by
            #6

            @Moby-Dick Zeig nochmal die Version bitte, das sollte gehen!

            Wenn meine Antwort hilfreich war, dürft Ihr das gerne durch einen "Upvote" (der kleine "^" unten rechts) zum Ausdruck bringen.

            M 1 Reply Last reply
            0
            • A Ahnungsbefreit

              @Moby-Dick Zeig nochmal die Version bitte, das sollte gehen!

              M Offline
              M Offline
              Moby Dick
              wrote on last edited by
              #7

              @Ahnungsbefreit blocky2.jpg

              A 1 Reply Last reply
              0
              • M Moby Dick

                @Ahnungsbefreit blocky2.jpg

                A Offline
                A Offline
                Ahnungsbefreit
                wrote on last edited by
                #8

                @Moby-Dick Guck mal in die Einstellungen vom javascript-Adapter. Die folgende Checkbox darf nicht gesetzt sein:

                6f51eca4-0e79-4222-853a-96fa72bf1587-image.png

                Wenn meine Antwort hilfreich war, dürft Ihr das gerne durch einen "Upvote" (der kleine "^" unten rechts) zum Ausdruck bringen.

                M 1 Reply Last reply
                0
                • A Ahnungsbefreit

                  @Moby-Dick Guck mal in die Einstellungen vom javascript-Adapter. Die folgende Checkbox darf nicht gesetzt sein:

                  6f51eca4-0e79-4222-853a-96fa72bf1587-image.png

                  M Offline
                  M Offline
                  Moby Dick
                  wrote on last edited by
                  #9

                  @Ahnungsbefreit Wo finde ich die Einstellung, habe ich noch nicht gefunden

                  M 1 Reply Last reply
                  0
                  • M Moby Dick

                    @Ahnungsbefreit Wo finde ich die Einstellung, habe ich noch nicht gefunden

                    M Offline
                    M Offline
                    Moby Dick
                    wrote on last edited by
                    #10

                    @Moby-Dick Du bist ein Schatz LOL das war der Grund!! Note 1+
                    Vielen Danke für die schnell und richtige Hilfe!!!

                    A 1 Reply Last reply
                    1
                    • M Moby Dick

                      @Moby-Dick Du bist ein Schatz LOL das war der Grund!! Note 1+
                      Vielen Danke für die schnell und richtige Hilfe!!!

                      A Offline
                      A Offline
                      Ahnungsbefreit
                      wrote on last edited by
                      #11

                      @Moby-Dick Setzt das bitte noch auf "[Gelöst]"

                      Wenn meine Antwort hilfreich war, dürft Ihr das gerne durch einen "Upvote" (der kleine "^" unten rechts) zum Ausdruck bringen.

                      M 1 Reply Last reply
                      0
                      • A Ahnungsbefreit

                        @Moby-Dick Setzt das bitte noch auf "[Gelöst]"

                        M Offline
                        M Offline
                        Moby Dick
                        wrote on last edited by
                        #12

                        @Ahnungsbefreit Brauche noch mal deine Hilfe Grins ... wo mache ich das?

                        A 1 Reply Last reply
                        0
                        • M Moby Dick

                          @Ahnungsbefreit Brauche noch mal deine Hilfe Grins ... wo mache ich das?

                          A Offline
                          A Offline
                          Ahnungsbefreit
                          wrote on last edited by
                          #13

                          @Moby-Dick Deinen ursprünglichen, ersten Post editieren, dann kannst Du die Überschrift bearbeiten!

                          Wenn meine Antwort hilfreich war, dürft Ihr das gerne durch einen "Upvote" (der kleine "^" unten rechts) zum Ausdruck bringen.

                          1 Reply Last reply
                          0
                          • M Moby Dick

                            Hallo zusammen!!
                            Ich fange gerade neu mit iobroker Blocky an und habe auch gleich die ersten Probleme.
                            Ich möchte für Blocky ein Datenpunkt erstellen, beschreiben und wieder auslesen!
                            Ein Datenpunkt erstellen und beschreiben habe ich hinbekommen.
                            Mein Problem ist jetzt:
                            Wenn ich den Datenpunkt auslesen möchte bekomme ich folgende Fehlermeldung.

                            9.12.2020, 09:49:15.021 [info ]: javascript.0 (16643) Stop script script.js.common.abc
                            9.12.2020, 09:49:15.168 [info ]: javascript.0 (16643) Start javascript script.js.common.abc
                            9.12.2020, 09:49:15.187 [info ]: javascript.0 (16643) script.js.common.abc: subscribe: {"pattern":{"id":"ds18b20.0.sensors.10-00080269db5f","change":"any","q":0},"name":"script.js.common.abc"}
                            9.12.2020, 09:49:15.190 [info ]: javascript.0 (16643) script.js.common.abc: javascript.0._Eigener_Wert.Temperatur1
                            9.12.2020, 09:49:15.191 [info ]: javascript.0 (16643) script.js.common.abc: registered 1 subscription and 0 schedules
                            9.12.2020, 09:49:15.621 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                            9.12.2020, 09:49:15.622 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                            9.12.2020, 09:49:15.628 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)
                            9.12.2020, 09:49:26.501 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                            9.12.2020, 09:49:26.502 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                            9.12.2020, 09:49:26.507 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)

                            Was habe ich nicht Richtig gemacht?
                            Danke für die Antwort!

                            M Offline
                            M Offline
                            Moby Dick
                            wrote on last edited by
                            #14

                            @Moby-Dick

                            @Moby-Dick said in Blocky Datenpunkt auslesen geht nicht?[Gelöst]:

                            Hallo zusammen!!
                            Ich fange gerade neu mit iobroker Blocky an und habe auch gleich die ersten Probleme.
                            Ich möchte für Blocky ein Datenpunkt erstellen, beschreiben und wieder auslesen!
                            Ein Datenpunkt erstellen und beschreiben habe ich hinbekommen.
                            Mein Problem ist jetzt:
                            Wenn ich den Datenpunkt auslesen möchte bekomme ich folgende Fehlermeldung.

                            9.12.2020, 09:49:15.021 [info ]: javascript.0 (16643) Stop script script.js.common.abc
                            9.12.2020, 09:49:15.168 [info ]: javascript.0 (16643) Start javascript script.js.common.abc
                            9.12.2020, 09:49:15.187 [info ]: javascript.0 (16643) script.js.common.abc: subscribe: {"pattern":{"id":"ds18b20.0.sensors.10-00080269db5f","change":"any","q":0},"name":"script.js.common.abc"}
                            9.12.2020, 09:49:15.190 [info ]: javascript.0 (16643) script.js.common.abc: javascript.0._Eigener_Wert.Temperatur1
                            9.12.2020, 09:49:15.191 [info ]: javascript.0 (16643) script.js.common.abc: registered 1 subscription and 0 schedules
                            9.12.2020, 09:49:15.621 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                            9.12.2020, 09:49:15.622 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                            9.12.2020, 09:49:15.628 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)
                            9.12.2020, 09:49:26.501 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                            9.12.2020, 09:49:26.502 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                            9.12.2020, 09:49:26.507 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)

                            Was habe ich nicht Richtig gemacht?
                            Danke für die Antwort!

                            1 Reply Last reply
                            0
                            • M Moby Dick

                              Hallo zusammen!!
                              Ich fange gerade neu mit iobroker Blocky an und habe auch gleich die ersten Probleme.
                              Ich möchte für Blocky ein Datenpunkt erstellen, beschreiben und wieder auslesen!
                              Ein Datenpunkt erstellen und beschreiben habe ich hinbekommen.
                              Mein Problem ist jetzt:
                              Wenn ich den Datenpunkt auslesen möchte bekomme ich folgende Fehlermeldung.

                              9.12.2020, 09:49:15.021 [info ]: javascript.0 (16643) Stop script script.js.common.abc
                              9.12.2020, 09:49:15.168 [info ]: javascript.0 (16643) Start javascript script.js.common.abc
                              9.12.2020, 09:49:15.187 [info ]: javascript.0 (16643) script.js.common.abc: subscribe: {"pattern":{"id":"ds18b20.0.sensors.10-00080269db5f","change":"any","q":0},"name":"script.js.common.abc"}
                              9.12.2020, 09:49:15.190 [info ]: javascript.0 (16643) script.js.common.abc: javascript.0._Eigener_Wert.Temperatur1
                              9.12.2020, 09:49:15.191 [info ]: javascript.0 (16643) script.js.common.abc: registered 1 subscription and 0 schedules
                              9.12.2020, 09:49:15.621 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                              9.12.2020, 09:49:15.622 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                              9.12.2020, 09:49:15.628 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)
                              9.12.2020, 09:49:26.501 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                              9.12.2020, 09:49:26.502 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                              9.12.2020, 09:49:26.507 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)

                              Was habe ich nicht Richtig gemacht?
                              Danke für die Antwort!

                              M Offline
                              M Offline
                              Moby Dick
                              wrote on last edited by
                              #15

                              @Moby-Dick said in Blocky Datenpunkt auslesen geht nicht?[Gelöst]:

                              Hallo zusammen!!
                              Ich fange gerade neu mit iobroker Blocky an und habe auch gleich die ersten Probleme.
                              Ich möchte für Blocky ein Datenpunkt erstellen, beschreiben und wieder auslesen!
                              Ein Datenpunkt erstellen und beschreiben habe ich hinbekommen.
                              Mein Problem ist jetzt:
                              Wenn ich den Datenpunkt auslesen möchte bekomme ich folgende Fehlermeldung.

                              9.12.2020, 09:49:15.021 [info ]: javascript.0 (16643) Stop script script.js.common.abc
                              9.12.2020, 09:49:15.168 [info ]: javascript.0 (16643) Start javascript script.js.common.abc
                              9.12.2020, 09:49:15.187 [info ]: javascript.0 (16643) script.js.common.abc: subscribe: {"pattern":{"id":"ds18b20.0.sensors.10-00080269db5f","change":"any","q":0},"name":"script.js.common.abc"}
                              9.12.2020, 09:49:15.190 [info ]: javascript.0 (16643) script.js.common.abc: javascript.0._Eigener_Wert.Temperatur1
                              9.12.2020, 09:49:15.191 [info ]: javascript.0 (16643) script.js.common.abc: registered 1 subscription and 0 schedules
                              9.12.2020, 09:49:15.621 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                              9.12.2020, 09:49:15.622 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                              9.12.2020, 09:49:15.628 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)
                              9.12.2020, 09:49:26.501 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                              9.12.2020, 09:49:26.502 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                              9.12.2020, 09:49:26.507 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)

                              Was habe ich nicht Richtig gemacht?
                              Danke für die Antwort!

                              1 Reply Last reply
                              0
                              • M Moby Dick

                                Hallo zusammen!!
                                Ich fange gerade neu mit iobroker Blocky an und habe auch gleich die ersten Probleme.
                                Ich möchte für Blocky ein Datenpunkt erstellen, beschreiben und wieder auslesen!
                                Ein Datenpunkt erstellen und beschreiben habe ich hinbekommen.
                                Mein Problem ist jetzt:
                                Wenn ich den Datenpunkt auslesen möchte bekomme ich folgende Fehlermeldung.

                                9.12.2020, 09:49:15.021 [info ]: javascript.0 (16643) Stop script script.js.common.abc
                                9.12.2020, 09:49:15.168 [info ]: javascript.0 (16643) Start javascript script.js.common.abc
                                9.12.2020, 09:49:15.187 [info ]: javascript.0 (16643) script.js.common.abc: subscribe: {"pattern":{"id":"ds18b20.0.sensors.10-00080269db5f","change":"any","q":0},"name":"script.js.common.abc"}
                                9.12.2020, 09:49:15.190 [info ]: javascript.0 (16643) script.js.common.abc: javascript.0._Eigener_Wert.Temperatur1
                                9.12.2020, 09:49:15.191 [info ]: javascript.0 (16643) script.js.common.abc: registered 1 subscription and 0 schedules
                                9.12.2020, 09:49:15.621 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                                9.12.2020, 09:49:15.622 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                                9.12.2020, 09:49:15.628 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)
                                9.12.2020, 09:49:26.501 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                                9.12.2020, 09:49:26.502 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                                9.12.2020, 09:49:26.507 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)

                                Was habe ich nicht Richtig gemacht?
                                Danke für die Antwort!

                                M Offline
                                M Offline
                                Moby Dick
                                wrote on last edited by
                                #16

                                @Moby-Dick
                                @Moby-Dick said in [Gelöst] Datenpunkt auslesen geht nicht?:

                                Hallo zusammen!!
                                Ich fange gerade neu mit iobroker Blocky an und habe auch gleich die ersten Probleme.
                                Ich möchte für Blocky ein Datenpunkt erstellen, beschreiben und wieder auslesen!
                                Ein Datenpunkt erstellen und beschreiben habe ich hinbekommen.
                                Mein Problem ist jetzt:
                                Wenn ich den Datenpunkt auslesen möchte bekomme ich folgende Fehlermeldung.

                                9.12.2020, 09:49:15.021 [info ]: javascript.0 (16643) Stop script script.js.common.abc
                                9.12.2020, 09:49:15.168 [info ]: javascript.0 (16643) Start javascript script.js.common.abc
                                9.12.2020, 09:49:15.187 [info ]: javascript.0 (16643) script.js.common.abc: subscribe: {"pattern":{"id":"ds18b20.0.sensors.10-00080269db5f","change":"any","q":0},"name":"script.js.common.abc"}
                                9.12.2020, 09:49:15.190 [info ]: javascript.0 (16643) script.js.common.abc: javascript.0._Eigener_Wert.Temperatur1
                                9.12.2020, 09:49:15.191 [info ]: javascript.0 (16643) script.js.common.abc: registered 1 subscription and 0 schedules
                                9.12.2020, 09:49:15.621 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                                9.12.2020, 09:49:15.622 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                                9.12.2020, 09:49:15.628 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)
                                9.12.2020, 09:49:26.501 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                                9.12.2020, 09:49:26.502 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                                9.12.2020, 09:49:26.507 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)

                                Was habe ich nicht Richtig gemacht?
                                Danke für die Antwort!

                                M 1 Reply Last reply
                                0
                                • M Moby Dick

                                  @Moby-Dick
                                  @Moby-Dick said in [Gelöst] Datenpunkt auslesen geht nicht?:

                                  Hallo zusammen!!
                                  Ich fange gerade neu mit iobroker Blocky an und habe auch gleich die ersten Probleme.
                                  Ich möchte für Blocky ein Datenpunkt erstellen, beschreiben und wieder auslesen!
                                  Ein Datenpunkt erstellen und beschreiben habe ich hinbekommen.
                                  Mein Problem ist jetzt:
                                  Wenn ich den Datenpunkt auslesen möchte bekomme ich folgende Fehlermeldung.

                                  9.12.2020, 09:49:15.021 [info ]: javascript.0 (16643) Stop script script.js.common.abc
                                  9.12.2020, 09:49:15.168 [info ]: javascript.0 (16643) Start javascript script.js.common.abc
                                  9.12.2020, 09:49:15.187 [info ]: javascript.0 (16643) script.js.common.abc: subscribe: {"pattern":{"id":"ds18b20.0.sensors.10-00080269db5f","change":"any","q":0},"name":"script.js.common.abc"}
                                  9.12.2020, 09:49:15.190 [info ]: javascript.0 (16643) script.js.common.abc: javascript.0._Eigener_Wert.Temperatur1
                                  9.12.2020, 09:49:15.191 [info ]: javascript.0 (16643) script.js.common.abc: registered 1 subscription and 0 schedules
                                  9.12.2020, 09:49:15.621 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                                  9.12.2020, 09:49:15.622 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                                  9.12.2020, 09:49:15.628 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)
                                  9.12.2020, 09:49:26.501 [error]: javascript.0 (16643) script.js.common.abc: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
                                  9.12.2020, 09:49:26.502 [error]: javascript.0 (16643) script.js.common.abc: Please disable that setting or use "getState" with a callback, e.g.: getState("javascript.0._Eigener_Wert.Temperatur1", (err, state) => { ... });
                                  9.12.2020, 09:49:26.507 [error]: javascript.0 (16643) at Object.<anonymous> (script.js.common.abc:7:61)

                                  Was habe ich nicht Richtig gemacht?
                                  Danke für die Antwort!

                                  M Offline
                                  M Offline
                                  Moby Dick
                                  wrote on last edited by
                                  #17

                                  @Moby-Dick Wird nicht angezeigt??

                                  A M 2 Replies Last reply
                                  0
                                  • M Moby Dick

                                    @Moby-Dick Wird nicht angezeigt??

                                    A Offline
                                    A Offline
                                    Ahnungsbefreit
                                    wrote on last edited by Ahnungsbefreit
                                    #18

                                    @Moby-Dick In der Überschrift oben!!! So wie ich es in diesem Beispiel gemacht habe:
                                    70efe2f4-95a2-4475-b70e-35823c80bb28-image.png

                                    Wenn meine Antwort hilfreich war, dürft Ihr das gerne durch einen "Upvote" (der kleine "^" unten rechts) zum Ausdruck bringen.

                                    1 Reply Last reply
                                    0
                                    • M Moby Dick

                                      @Moby-Dick Wird nicht angezeigt??

                                      M Offline
                                      M Offline
                                      MCU
                                      wrote on last edited by
                                      #19

                                      @Moby-Dick Als Hilfe hier ein Video: Video Thema als gelöst kennzeichnen.flv

                                      NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
                                      Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

                                      1 Reply Last reply
                                      0
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      Support us

                                      ioBroker
                                      Community Adapters
                                      Donate

                                      743

                                      Online

                                      32.7k

                                      Users

                                      82.6k

                                      Topics

                                      1.3m

                                      Posts
                                      Community
                                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                      ioBroker Community 2014-2025
                                      logo
                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Home
                                      • Recent
                                      • Tags
                                      • Unread 0
                                      • Categories
                                      • Unreplied
                                      • Popular
                                      • GitHub
                                      • Docu
                                      • Hilfe