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

    Unipi 1.1 - how to set relay output in NODERED

    Scheduled Pinned Locked Moved Node-RED
    5 Posts 2 Posters 1.9k Views
    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áčekM 1 Reply Last reply
        Reply Quote 0
        • Martin KudláčekM
          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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post