Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. setObjectNotExistsAsync -> common.states mit Sprache

    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

    setObjectNotExistsAsync -> common.states mit Sprache

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

      Hallo zusammen,

      bei der Erstellung eines Objektes kann die Benennung gemäss der eingestellten Systemsprache gewählt werden:

      await this.setObjectNotExistsAsync('test.test', {
          type: 'state',
          common: {
              name: {
                  en: 'name',
                  de: 'Name',
                  ru: 'название',
                  pt: 'nome',
                  nl: 'naam',
                  fr: 'Nom',
                  it: 'nome',
                  es: 'nombre',
                  pl: 'nazwać',
                  'zh-cn': '姓名'
              },
              type: 'string',
              role: 'indicator',
              read: true,
              write: false
          },
          native: {}
      });
      

      ist die Systemsprache für common.states auch vorgesehen, und wenn ja: wie ist der entsprechende Syntax?

      states: {'UNKNOWN': 'unbekannt', 'DEMO': 'Demo', 'HOME': 'nach Hause'},
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      395
      Online

      31.8k
      Users

      80.0k
      Topics

      1.3m
      Posts

      1
      1
      249
      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