help control a function block by command

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Gast

    #1

    help control a function block by command

    I put them in context, I have 2 rooms, in each room I have a function block with the name "main_light", the problem comes from using the following command:



    This command does not work for me, I realized that it is because I have 2 blocks with the same name, because if I rename one of the blocks the command works perfectly.

    Time is where my question comes from, is there a way to solve this without changing the name of the block? I do not know if there is a way to position myself in the room inside the url so that the command knows which room to interact with.

    I hope you can help me.
  • Christian Fenzl
    Lebende Foren Legende
    • 31.08.2015
    • 11250

    #2
    Don’t know why you cannot rename the blocks, but you also can use the input number (if it’s an input, e.g. VI34 - look at the properties of the block), or the UID from the config xml.
    Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

    Kommentar

    • Gast

      #3
      Zitat von Christian Fenzl
      Don’t know why you cannot rename the blocks, but you also can use the input number (if it’s an input, e.g. VI34 - look at the properties of the block), or the UID from the config xml.
      hello thanks for answering, I can not change the name of the block because it is intended to establish a standard between rooms, for example, in each room there are "main lights", having the rooms section each has that switch but to be able to control the " main light "of a specific room per command from the url can not? I tried and it was that I realized that having several blocks with the same name could not make the command work, but I thought there was a way to include the room within the command or some other solution

      Kommentar

      • Christian Fenzl
        Lebende Foren Legende
        • 31.08.2015
        • 11250

        #4
        For every block, you have a "Name" and a "Description" field.
        If you fill the "Description" field, this one is used in the visu, and you can use any "Name" you like. Make all names unique, and use the description to label your blocks for the visu.
        Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

        Kommentar

        • Gast

          #5
          Zitat von Christian Fenzl
          For every block, you have a "Name" and a "Description" field.
          If you fill the "Description" field, this one is used in the visu, and you can use any "Name" you like. Make all names unique, and use the description to label your blocks for the visu.
          Oh! excellent, that data I did not know, I thought the description was something more informative for me and not in the section of web / mobile visualization

          Kommentar

          Lädt...