Skip to content
  • 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
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Entwicklung
  4. Eintrag unter Instanzen bei Objekt vom type "folder"

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.0k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.0k

Eintrag unter Instanzen bei Objekt vom type "folder"

Eintrag unter Instanzen bei Objekt vom type "folder"

Scheduled Pinned Locked Moved Entwicklung
setobjectnotexistsinstanzenadapter entwicklung
2 Posts 1 Posters 208 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

      591

      Online

      32.4k

      Users

      81.3k

      Topics

      1.3m

      Posts
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      ioBroker Community 2014-2025
      logo
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Unread 0
      • Categories
      • Unreplied
      • Popular
      • GitHub
      • Docu
      • Hilfe