Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Admin5: Ich kann keine Objekte mehr manuell anlegen

    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

    Admin5: Ich kann keine Objekte mehr manuell anlegen

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @apollon77 last edited by

      @apollon77

      vielleicht bin ich noch nicht wach - aber ich habe ein problem :

      nach dem anlegen eines datenpunktes wollte ich einen smartname im iot adapter anlegen - als fehler bekomme ich, dass der native teil im dp fehlt

      beispiel1

      Image 2.png Image 5.png

      beispiel2

      Image 4.png Image 3.png

      was mach ich da falsch ?

      apollon77 1 Reply Last reply Reply Quote 0
      • apollon77
        apollon77 @liv-in-sky last edited by

        @liv-in-sky Also mal mindestens ist die role "Switch" falsch ... muss "switch" sein ... ists das vllt schon?

        liv-in-sky 2 Replies Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @apollon77 last edited by

          @apollon77 nee - hatte auch switch versucht

          apollon77 1 Reply Last reply Reply Quote 0
          • apollon77
            apollon77 @liv-in-sky last edited by

            @liv-in-sky common.name muss ein String und keine Zahl sein ... (oberer screenshot name: 505)

            sonst keine ahnung was ihm nicht gefällt

            liv-in-sky 2 Replies Last reply Reply Quote 0
            • liv-in-sky
              liv-in-sky @apollon77 last edited by

              @apollon77 habe es nochmal mit #"switch" versucht - selbe fehler

              Image 6.png

              1 Reply Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @apollon77 last edited by

                @apollon77

                ich habe erst gestern einen "alten" dp vom typ number als smartdevice angelegt - mit einem neu angelegten funktioniert es nicht -

                es ist egal - weder string, number oder boolean funktionieren - warum wird kein native part im object angelegt ?

                apollon77 1 Reply Last reply Reply Quote 0
                • liv-in-sky
                  liv-in-sky @apollon77 last edited by

                  @apollon77

                  es funktioniert nur, wenn ich die admin 4 gui benutze

                  1 Reply Last reply Reply Quote 0
                  • apollon77
                    apollon77 @liv-in-sky last edited by

                    @liv-in-sky Das native ist ja da - dsieht mn ja in deinem screenshot. Bitte Admin Issue

                    liv-in-sky 1 Reply Last reply Reply Quote 0
                    • liv-in-sky
                      liv-in-sky last edited by

                      vielleicht hat noch jmd lust, mall einen dp anzulegen und dann in iot ein smart-device -zum test, ob das nur bei mir ist

                      1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @apollon77 last edited by

                        @apollon77 issue kann ich machen

                        aber hier nochmal ein frisch angelegter dp

                        kein native !

                        Image 7.png

                        crunchip 1 Reply Last reply Reply Quote 0
                        • crunchip
                          crunchip Forum Testing Most Active @liv-in-sky last edited by

                          @liv-in-sky so ist es, hab auch gerade mal einen test DP angelegt

                          liv-in-sky 1 Reply Last reply Reply Quote 0
                          • liv-in-sky
                            liv-in-sky @crunchip last edited by

                            @crunchip danke - wenn es bei dir auch nicht funktioniert - ist es wohl ein bug

                            crunchip 1 Reply Last reply Reply Quote 0
                            • crunchip
                              crunchip Forum Testing Most Active @liv-in-sky last edited by

                              @liv-in-sky hab auch gerade versucht den DP automatisch über intelligente Aufzählung im iot anzulegen, der taucht aber gar nicht auf, somit auch keine Fehlermeldung, zwecks native part

                              liv-in-sky 1 Reply Last reply Reply Quote 0
                              • liv-in-sky
                                liv-in-sky @crunchip last edited by

                                @crunchip dann schreib ich mal ein issue

                                Xsev 1 Reply Last reply Reply Quote 1
                                • Xsev
                                  Xsev @liv-in-sky last edited by

                                  Ich hab meine Datenpunkte fast alle unter javascript.0 stehen. Bekomm ich da Probleme nach dem Update auf Admin 5?

                                  liv-in-sky Pedder007 2 Replies Last reply Reply Quote 0
                                  • liv-in-sky
                                    liv-in-sky @Xsev last edited by

                                    @xsev nein

                                    Xsev 1 Reply Last reply Reply Quote 1
                                    • Xsev
                                      Xsev @liv-in-sky last edited by

                                      @liv-in-sky Danke für die Info!

                                      1 Reply Last reply Reply Quote 0
                                      • Pedder007
                                        Pedder007 @Xsev last edited by

                                        @xsev ich hatte/habe das bei mir auch und wg. mangelnder tiefergehender Skills auch komplette Sorgen.

                                        Hat aber alles super funktioniert und läuft weiter 🙂

                                        1 Reply Last reply Reply Quote 1
                                        • R
                                          Rushmed Most Active last edited by Rushmed

                                          Hallo,

                                          ich gebe zu den Thread nicht komplett gelesen und vor allem verstanden zu haben.

                                          Ich kann in Eigene_Datenpunkte.0 und in Wettertation.0 keine neuen Datenpunkte anlegen, vermutlich weil diese keine Folder sind.
                                          cd7b8137-17d6-4f01-bb0e-0853aca3781f-grafik.png
                                          f5680723-3014-46d5-967d-e31556272d32-grafik.png

                                          Ich kann leider auch im Expertenmodus nichts ändern, da jeweils der Stift zur Bearbeitung fehlt (siehe Bilder oben).

                                          Das obe gepostete Script habe ich in verschiedenen Varianten erfolglos ausprobiert:

                                          /**
                                          * Zweck:       Korrigiert übergeordnete Ordnerstrukturen eines Datenpunkts
                                          * Datum:      07.08.2021
                                          * Autor:       @fastfoot
                                          */
                                           
                                          //              In den Settings der Javascript-Instanz muss setObject erlaubt sein!!!
                                          
                                          let arr = [],
                                             id = ''; 
                                          
                                          const ids = $('Wetterstation.0*');
                                          ids.each(idTmp => {
                                             arr=idTmp.split('.');
                                             arr.splice(arr.length-1);
                                             id=arr.join('.');
                                             if(arr[0] === '0_userdata' || arr[0] === 'javascript'){
                                                 correctObject(id, arr);
                                             }
                                          })
                                          
                                           function correctObject(id,arr){
                                             if(arr.length === 2) return;
                                             if(!existsObject(id)){
                                                 let obj = {};
                                                 obj = {
                                                     type: 'folder',
                                                     common:{
                                                         name: arr[arr.length - 1]
                                                     }
                                                 }
                                                 extendObject(id, obj, e => {
                                                     if (e) log('Fehler beim Schreiben des Objektes: '+ id + ' ' + e);
                                                 })
                                             }
                                             arr.splice(arr.length - 1);
                                             id = arr.join('.');
                                             correctObject(id, arr);
                                          }
                                          

                                          In Zeile 12 das 0_userdata gegen meine Objekte getauscht.
                                          In Zeile 17 meine Objekte angefügt oder die vorhandenen durch meine Objekte ersetzt.
                                          Hat alles nicht gebracht.

                                          Was mache ich falsch und was kann ich noch tun?

                                          F 1 Reply Last reply Reply Quote 0
                                          • F
                                            fastfoot @Rushmed last edited by

                                            @rushmed sagte in Admin5: Ich kann keine Objekte mehr manuell anlegen:

                                            Was mache ich falsch und was kann ich noch tun?

                                            z.B. den Text zum Skript lesen und verstehen 🙂 in Zeile 17 wird auf userdata und javascript begrenzt, was dann Wetterstation ausschliesst. Du solltest deine DP nach 0_userdata verschieben! Wenn dir das nicht möglich scheint kannst du Zeile 17 entsprechend erweitern mit || arr[0] === Wetterstation

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            473
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            36
                                            466
                                            70179
                                            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