• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Unipi 1.1 - how to set relay output in NODERED

    Node-RED
    2
    5
    108
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wizro_pl last edited by wizro_pl

      HI!
      What should I write in configuration to set relay output for Relay 1 ?
      Unfortunately, I tryied many combination without result.

      this workaround in first diagram works,
      where I sent in Function

      msg.headers = {};
      msg.headers={ 
          'Content-Type': 'application/x-www-form-urlencoded'
      };
      
      msg.payload = {};
      msg.payload={ 
          'value': '1'
      };
      return msg;
      

      as HTTP request POST for url. http://(myadresip_evok)/rest/relay/1

      but second base on UNIPI Output doesn't work

      4f3cf36a-e0b0-46a8-9ef0-acb9d211d2f7-image.png

      Can you help me with that?

      W 1 Reply Last reply Reply Quote 0
      • W
        wizro_pl @wizro_pl last edited by

        @wizro_pl up?

        Martin Kudláček 1 Reply Last reply Reply Quote 0
        • Martin Kudláček
          Martin Kudláček @wizro_pl last edited by

          Hi @wizro_pl,
          you need to write a boolean value: true or false.

          Best regards,
          Martin

          1 Reply Last reply Reply Quote 0
          • W
            wizro_pl last edited by

            Sorry,
            it doesn't work
            fbc8d64b-5870-4cc1-82ab-d562719835d8-image.png

            for Uni Pi 1.1 - realy no 2 should be configured like that: ?

            8a228fc9-088b-4d14-b4f9-06796f3ba471-image.png

            1 Reply Last reply Reply Quote 0
            • W
              wizro_pl last edited by wizro_pl

              ok, I solved the problem.
              it is logic but a little strange because UniPi Output only prepare the JSON message, but to send it you still need websocket ( I thought that UniPi Output node handle all of it).

              it works
              9545cb0a-eee5-46f4-bb5e-ff719019f1eb-image.png

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