Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. [gelöst] existsObject nur für Datenpunkte unter 0_userdata?

    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

    [gelöst] existsObject nur für Datenpunkte unter 0_userdata?

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Haxe last edited by Haxe

      Hallo zusammen

      Mit folgender Funktion gelingt mir die Prüfung auf vorhandene Datenpunkte unter 0_userdata. Sprich - es kommt eine entsprechende Ausgabe im Log.

      function checkDp(id) {
          if(existsObject(id)) log('Datenpunkt ' + id + ' existiert bereits');
      };
      
      checkDp('javascript.0.TestScript.PV.PV_xy');
      

      Unter javascript.0. wird mir nur angezeigt:

      info: javascript.0 (4653) script.js.common.ScriptDev.Datenpunkt_pruefen: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions

      Der Datenpunkt ist aber da. Kann nur auf 0_userdata geprüft werden? Ich möchte auch DP unter javascript.0. prüfen.

      Lieben Dank

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

        @haxe

        nee - kann auf alles geprüft werden

        Image 024.png

        evtl mal die javascript neu starten

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

        Support us

        ioBroker
        Community Adapters
        Donate

        809
        Online

        31.9k
        Users

        80.1k
        Topics

        1.3m
        Posts

        2
        2
        141
        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