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. Entwicklung
  4. Eintrag unter Instanzen bei Objekt vom type "folder"

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    16
    1
    221

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

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

Eintrag unter Instanzen bei Objekt vom type "folder"

Scheduled Pinned Locked Moved Entwicklung
setobjectnotexistsinstanzenadapter entwicklung
2 Posts 1 Posters 231 Views 1 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.
  • D Offline
    D Offline
    dg-services
    wrote on last edited by dg-services
    #1

    Hallo zusammen,

    ich habe wiedermal ein Problem dass ich mir nicht wirklich erklären kann.

    Wenn ich ein neues Objekt vom Type "folder" anlege erhalte ich in der Instanzenüberischt einen Eintrag den ich so nicht brauchen kann.

    Kommentiere ich die Zeile aus und lösche die Objekte, wird der Eintrag nach dem Neustart nicht wieder angelegt. Kommentiere ich die Zeilen wieder ein erscheint auch der Eintrag wieder :-( .

    				apiLocationID = myData.data[0].id;
    				locationID = apiLocationID;
    				locationName = myData.data[0].attributes.name;
    				const locationType = myData.data[0].type;
    			
    				//adapter.log.debug('Response: ' + JSON.stringify(myData));	
    				thisAdapter.log.debug('Location ID: ' + locationID);
    				thisAdapter.log.debug('Location Type: ' + locationType);
    				thisAdapter.log.debug('Location Name: ' + locationName);
    				
    				thisAdapter.log.error('Adapter Name: ' + thisAdapter.name);
    				thisAdapter.log.debug('Adapter Instance: ' + thisAdapter.instance);
    
    				// create Channel locationID
    				thisAdapter.setObjectNotExists(thisAdapter.name + '.' + thisAdapter.instance + '.' + locationID, {
    					type: 'folder',
    					common: {
    						name: `Location: ${locationName}`,  desc: `Location: ${locationName}`
    					},
    					native: {}
    				});		
    				
    

    Der komplette Code liegt auch bei gihtub

    Instanzübersicht.jpg

    Wenn ich auf den Eintrag klicke bekomme ich folgende Ansicht:
    Fehler.jpg

    Was mache ich da falsch?

    Schon im Vorfeld vielen Dank für eure Rückmeldungen.
    Dominik

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dg-services
      wrote on last edited by
      #2

      Hat sich erledigt.
      Nach dem Reboot der Maschine war das Phänomen weg.

      Gruß
      Dominik

      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

      575

      Online

      32.7k

      Users

      82.4k

      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