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.
    • T
      teguruma @paul53 last edited by

      @paul53
      ja, da stehen exakt meine datenpunkte ... leider

      bahnuhr Homoran 2 Replies Last reply Reply Quote 0
      • bahnuhr
        bahnuhr Forum Testing Most Active @teguruma last edited by bahnuhr

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

        @paul53
        ja, da stehen exakt meine datenpunkte ... leider

        wie vermutet, das musst du ändern auf:
        javascript.0
        oder
        userdata

        wie oben im Bild dargestellt.

        T 1 Reply Last reply Reply Quote 0
        • T
          teguruma @bahnuhr last edited by

          @bahnuhr
          alles klar, dann ist der Nachmittag gerettet :=)
          Danke an alle für die Hinweise!

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

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

            @paul53
            ja, da stehen exakt meine datenpunkte ... leider

            da ist die Meldung ja auch berechtigt.
            Dann bin ich beruhigt

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

              Genau, wir haben vernommen das User (why ever) in diesem eigentlich Systemordner eigene Objekte angelegt haben. Das kann - und hat bereits - zu problemen geführt, wodurch wir entschieden haben das zu deprecaten und zu "warnen"

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

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

                why ever

                ich glaube mich ganz dunkel daran erinnern zu können, dass in der ioBroker Steinzeit tatsächlich dort mit create State Datenpunkte erstellt wurden.

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

                  @homoran sagte: in der ioBroker Steinzeit tatsächlich dort mit create State Datenpunkte erstellt wurden.

                  Nach meiner Erinnerung wurden mit createState() Datenpunkte ausschließlich unter "javascript.N" erstellt.

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

                    @paul53 Du weisst, dass ich nicht viel von js verstehe, früher erst recht noch viel weniger.
                    Aber auch bei mir tauchten unter Script enabled einige DP auf, die von c&p scripts stammten.

                    in späteren Installationen tauchten die selben DPs mit den selben Scripten nicht mehr dort auf.

                    Ich musste annehmen, dass es an irgendwelchen "äußeren Einflüssen" gelegen haben muss.

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

                      @homoran Was @paul53 sagt 🙂 ich denke einfach das User dort die Struktur von Ihren Skripten gefunden haben und deshalb gedacht haben es wäre schlau dort. All fine. Müssen wir jetzt aufräumen

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

                        Hallo, ich habe auch dieses Problem, da ich aus einem Script ein weiteres aktiviere. Wie umgehe ich dann das Problem, damit ich keine weitere Meldungen bekomme?

                        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.*:

                          ich habe auch dieses Problem

                          welches?

                          bitte exakte individuelle Informationen

                          D 1 Reply Last reply Reply Quote 0
                          • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            853
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

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