Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] Variable in einem "IDs vom Selektor"-Array

    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] Variable in einem "IDs vom Selektor"-Array

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

      Hallo zusammen,
      ich brauche die "etage" als Variable in einem "IDs vom Selektor"-Array.
      mein Syntax funktioniert nicht. Was mache ich falsch?

      cb2478b8-e5d9-41dd-b22c-b055af78a423-image.png

      channel[state.id=0_userdata.0.'+etage+'*](functions=lights)
      

      Folgendes funktioniert:

      channel[state.id=0_userdata.0.KG*](functions=lights)
      

      ...aber dann ist "KG" ja keine Variable...

      Vielen Dank jetzt schon.

      paul53 2 Replies Last reply Reply Quote 0
      • paul53
        paul53 @ptr last edited by

        @ptr sagte: ich brauche die "etage" als Variable in einem "IDs vom Selektor"-Array.

        Wozu?

        1 Reply Last reply Reply Quote 0
        • P
          ptr last edited by

          @paul53 später wird die Etage automatisch ausgelesen. Dafür wird das dann benötigt. das "setzen" ist nur Zwischenlösung.

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

            @ptr sagte: mein Syntax funktioniert nicht.

            Blockly verwendet Anführungszeichen - keine Hochkommata.

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

              @paul53 So einfach kann es sein. Danke!!

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

              Support us

              ioBroker
              Community Adapters
              Donate

              950
              Online

              31.9k
              Users

              80.2k
              Topics

              1.3m
              Posts

              2
              5
              236
              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