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] Blocky Datenpunkt auslesen geht nicht?

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [gelöst] Blocky Datenpunkt auslesen geht nicht?

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Moby Dick last edited by 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!

      Ocrim M 4 Replies Last reply Reply Quote 0
      • Ocrim
        Ocrim @Moby Dick last edited by

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

        M 1 Reply Last reply Reply Quote 0
        • M
          Moby Dick @Ocrim last edited by

          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 Reply Quote 0
          • N
            Nordischerjung @Moby Dick last edited by

            @Moby-Dick

            du musst auch Wert vom ObjektID nehmen

            M 1 Reply Last reply Reply Quote 0
            • M
              Moby Dick @Nordischerjung last edited by

              @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 Reply Quote 0
              • A
                Ahnungsbefreit @Moby Dick last edited by

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

                M 1 Reply Last reply Reply Quote 0
                • M
                  Moby Dick @Ahnungsbefreit last edited by

                  @Ahnungsbefreit blocky2.jpg

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    Ahnungsbefreit @Moby Dick last edited by

                    @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 1 Reply Last reply Reply Quote 0
                    • M
                      Moby Dick @Ahnungsbefreit last edited by

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

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        Moby Dick @Moby Dick last edited by

                        @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 Reply Quote 1
                        • A
                          Ahnungsbefreit @Moby Dick last edited by

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

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            Moby Dick @Ahnungsbefreit last edited by

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

                            A 1 Reply Last reply Reply Quote 0
                            • A
                              Ahnungsbefreit @Moby Dick last edited by

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

                              1 Reply Last reply Reply Quote 0
                              • M
                                Moby Dick @Moby Dick last edited by

                                @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 Reply Quote 0
                                • M
                                  Moby Dick @Moby Dick last edited by

                                  @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 Reply Quote 0
                                  • M
                                    Moby Dick @Moby Dick last edited by

                                    @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 Reply Quote 0
                                    • M
                                      Moby Dick @Moby Dick last edited by

                                      @Moby-Dick Wird nicht angezeigt??

                                      A M 2 Replies Last reply Reply Quote 0
                                      • A
                                        Ahnungsbefreit @Moby Dick last edited by Ahnungsbefreit

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

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          MCU @Moby Dick last edited by

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

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

                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          1.1k
                                          Online

                                          31.7k
                                          Users

                                          79.7k
                                          Topics

                                          1.3m
                                          Posts

                                          5
                                          19
                                          775
                                          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