Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Please move the states to 0_userdata.0.*

    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

    Please move the states to 0_userdata.0.*

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dougstar @Homoran last edited by Homoran

      @homoran

      warn: mqtt.0 (490735) Alias alias.0.kind1.kind1_Nachtlicht.SET has no target 12
      2023-04-24 10:39:15.041 - warn: javascript.0 (490318) Could not add alias subscription: Alias alias.0.kind1.kind1_Nachtlicht.SET has no target 12
      
      Homoran 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @dougstar last edited by

        @dougstar sagte in Please move the states to 0_userdata.0.*:

        @homoran

        warn: mqtt.0 (490735) Alias alias.0.kind1.kind1_Nachtlicht.SET has no target 12
        2023-04-24 10:39:15.041 - warn: javascript.0 (490318) Could not add alias subscription: Alias alias.0.kind1.kind1_Nachtlicht.SET has no target 12
        

        und was ist daran "das selbe" Problem?

        da steht nichts von
        move the states to 0_userdata.0

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

          @homoran Mein Fehler. Am Handy ging es schief.

          2023-04-24 05:30:00.010 - info: javascript.0 (490318) script.js.PV_hourly: Own states (javascript.0.scriptEnabled.telegram.Graph_PV) should not be used in javascript.X.scriptEnabled.*! Please move the states to 0_userdata.0.*
          
          

          Das ist der besagte Fehler.
          f155b195-e5cf-4240-aea5-676341ec8f44-image.png

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

            @dougstar dann zeig mal die Objekte

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

              @homoran

              {
                "_id": "javascript.0.scriptEnabled.PV_hourly",
                "common": {
                  "name": "scriptEnabled.PV_hourly",
                  "desc": "controls script activity",
                  "type": "boolean",
                  "write": true,
                  "read": true,
                  "role": "switch.active"
                },
                "native": {
                  "script": "script.js.PV_hourly"
                },
                "type": "state",
                "from": "system.adapter.javascript.0",
                "user": "system.user.admin",
                "ts": 1681754209752,
                "acl": {
                  "object": 1636,
                  "state": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator"
                }
              }
              
              Homoran 1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @dougstar last edited by

                @dougstar nee, nicht die Objektdaten.
                die Liste der Objekte.

                scriptEnabled gehört in javascript.0

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

                  @homoran sagte in Please move the states to 0_userdata.0.*:

                  @dougstar nee, nicht die Objektdaten.
                  die Liste der Objekte.

                  scriptEnabled gehört in javascript.0

                  aber javascript.0.scriptEnabled.PV_hourly ist nicht das Skript mit ...telegram... aus deinem Screenshot

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

                    Danke, ich habe den Fehler gefunden.
                    Es hat geholfen sich nochmal mit dem Thema zu befassen 😉

                    1 Reply Last reply Reply Quote 0
                    • P
                      peschu last edited by

                      Hallo,

                      ich bekomme auch die Meldung:
                      script.js.Scripte.Akku_LG: Own states (javascript.0.scriptEnabled.Scripte.Akku-Ladesteuerung) should not be used in javascript.X.scriptEnabled.! Please move the states to 0_userdata.0.

                      So sieht mein Objektbaum aus:

                      60999b8b-b473-46df-a519-e7684cf84cdc-image.png

                      Jetzt die Anfängerfragen:
                      Wie bekomme ich den Status zu Userdata usw. Mir geht es nur darum das Script ein- bzw. auszuschalten.

                      Schon mal Danke

                      Peschu21

                      apollon77 1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 @peschu last edited by

                        @peschu Dann ist aber hier was komisch. Dein Skript Scripte.Akku_LG scheint einen State dort anlegen zu wollen ... das darf es nicht. Zeig doch mal das Skript

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          peschu @apollon77 last edited by

                          @apollon77

                          Da ist der Ausschnitt:

                          9408bfd9-9feb-4a3f-bede-6ebac3292c84-image.png

                          oder muss ich da aktualisiere nehmen?

                          apollon77 Homoran 2 Replies Last reply Reply Quote 0
                          • apollon77
                            apollon77 @peschu last edited by

                            @peschu Das kanns aber jicht sein weil die meldung nur kommt wenn du states anlegst! (createState) ... keine ahnung was blockyly da tut

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

                              @peschu sagte in Please move the states to 0_userdata.0.*:

                              Da ist der Ausschnitt:

                              Ausschnitte helfen selten!

                              wie kommt der Datenpunkt in das Verzeichnis?

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

                                @apollon77 sagte in Please move the states to 0_userdata.0.*:

                                weil die meldung nur kommt wenn du states anlegst! (

                                sicher?
                                nicht auch wenn ein DP in dem Verzeichnis angesprochen wird?

                                @peschu hat sich erledigt. Dein Skript heisst so?

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

                                  @homoran
                                  Jetzt stehe ich auf dem Schlauch. der Datenpunkt dürfte vom Script kommen, weil das so heißt und sich auch in dem entsprechenden Ordner befindet.

                                  Das ist das gesamte Script:

                                  100eeabe-4fbb-4a0a-8348-a03aff4d5196-image.png

                                  R 1 Reply Last reply Reply Quote 0
                                  • R
                                    RaBu60 @peschu last edited by RaBu60

                                    Ich habe auch dieses Problem 🙁

                                    Hier die Struktur unter Javascript:
                                    Screenshot 2023-06-24 141914.png

                                    Wenn ich nun folgendes JS starte (ist wirklich nur ein Einzeiler)

                                    setState("javascript.0.scriptEnabled.Hydrawise.Hydrawise", false, true);
                                    

                                    erhalte ich
                                    Screenshot 2023-06-24 142210 a.png

                                    Den Datenpunkt unter javascript.0... habe ich nicht selbst angelegt.

                                    Wie kann ich diesen Log-Eintrag unterdrücken?
                                    Die Version des JS-Adapters ist 7.0.3

                                    Thomas Braun apollon77 2 Replies Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @RaBu60 last edited by

                                      @rabu60 sagte in Please move the states to 0_userdata.0.*:

                                      Wie kann ich diesen Log-Eintrag unterdrücken?

                                      Du willst das nicht unterdrücken sondern die Ursache beseitigen. Kann sonst ggfs . in künftigen Versionen zu einem Fehler führen.

                                      R 1 Reply Last reply Reply Quote 0
                                      • R
                                        RaBu60 @Thomas Braun last edited by

                                        @thomas-braun sagte in Please move the states to 0_userdata.0.*:

                                        Du willst das nicht unterdrücken sondern die Ursache beseitigen. Kann sonst ggfs . in künftigen Versionen zu einem Fehler führen.

                                        Klar, unterdrücken wäre wirklich suboptimal 😉

                                        Aber es sollte doch möglich sein, diesen Datenpunkt per Script zu ändern ohne diesen Log-Eintrag zu erhalten
                                        Mache ich irgendetwas falsch?

                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @RaBu60 last edited by

                                          @rabu60 sagte in Please move the states to 0_userdata.0.*:

                                          Aber es sollte doch möglich sein, diesen Datenpunkt per Script zu ändern

                                          Wenn es im dafür vorgesehenen Verzeichnis passiert erscheint auch keine Meldung.

                                          R 1 Reply Last reply Reply Quote 0
                                          • R
                                            RaBu60 @Thomas Braun last edited by

                                            @thomas-braun sagte in Please move the states to 0_userdata.0.*:

                                            @rabu60 sagte in Please move the states to 0_userdata.0.*:

                                            Aber es sollte doch möglich sein, diesen Datenpunkt per Script zu ändern

                                            Wenn es im dafür vorgesehenen Verzeichnis passiert erscheint auch keine Meldung.

                                            Nun, ich möchte per Script ein anderes Script (in diesem Falle "Hydrawise") stoppen
                                            und ggfs. wieder starten.

                                            Welcher DP bzw. Verzeichnis wäre das Richtige?

                                            DJMarc75 T 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            851
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            14
                                            56
                                            3638
                                            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