Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. io-package.json instanceObjects types unterstützt

    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

    io-package.json instanceObjects types unterstützt

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

      In meinem neuen test-Adapter möchte ich in der io-package.json in den instanceObjects ein Object eintragen, das ein "Array" von String Werten enthält. Wenn ich sowas wie

              {
                  "_id": "atHome",
                  "type": "state",
                  "common": {
                      "name": "atHome",
                      "type": "string",
                      "role": "state",
                      "read": true,
                      "write": false,
                      "def": [],
                      "desc": "Present persons"
                  },
                  "native": {}
              },
      

      mache, wird kein "leeres" array als default object wert eingetragen, sondern (wahrscheinlich) ein String der Länge = 0. Ich kann das im programm abfangen , aber ich wüsste gerne, ob das schon richtig definierbar ist?

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

        @hlwerschner sagte: ein "Array" von String Werten

        common.type: "array"
        common.role: "list"

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

          @paul53 Vielen Dank, teste ich gleich!

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

          Support us

          ioBroker
          Community Adapters
          Donate

          732
          Online

          31.9k
          Users

          80.1k
          Topics

          1.3m
          Posts

          2
          3
          132
          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