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] Objektdaten ändern

    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] Objektdaten ändern

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

      Hallo,

      ich möchte gerne per JavaScript Objektdaten ändern.

      Ausgangslage:

      {
        "common": {
          "type": "mixed",
          "role": "state",
          "name": "Add new list item",
          "read": true,
          "write": true
        },
      

      Per Skript soll der "type" von "mixed" in "string" geändert werden:

      {
        "common": {
          "type": "string",
          "role": "state",
          "name": "Add new list item",
          "read": true,
          "write": true
        },
      

      Schon mal einen Dank für Eure Hilfe.

      Ro75.

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

        @ro75 sagte: Per Skript soll der "type" von "mixed" in "string" geändert werden:

        extendObject(id, {common: {type: 'string'}});
        
        Ro75 1 Reply Last reply Reply Quote 1
        • Ro75
          Ro75 @paul53 last edited by

          @paul53 sagte in Objektdaten ändern:

          extendObject(id, {common: {type: 'string'}});

          Danke @paul53 , das war/ist ja einfach.

          Ro75.

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

          Support us

          ioBroker
          Community Adapters
          Donate

          866
          Online

          31.9k
          Users

          80.1k
          Topics

          1.3m
          Posts

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