• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Help turning relay on or off in an operation

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 2 Posters 2.7k Views 2 Watching
    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.
    • R Offline
      rjad
      last edited by

      Seems like a really basic question, but I couldn't work this out.

      I have a node with two relays. I just want to be able to turn either one on or off by a rule. I can toggle them on or off via a widget, or from the action board, but I can't work out how to do it from an operation.
      Could someone please point out the steps of doing this. I assumed it was go to operation -> add operation -> send payload -> sensor variable (select relay sensor status) and send payload. But I couldn't get this to work.

      What am I missing?

      jkandasaJ 1 Reply Last reply Reply Quote 1
      • jkandasaJ Offline
        jkandasa @rjad
        last edited by jkandasa

        @rjad Can you add your operation page screenshot?

        To toggle on the payload you have to add Toggle

        1 Reply Last reply Reply Quote 0
        • R Offline
          rjad
          last edited by

          Here's a summary of my sensors:
          alt text

          And here is the operation I'm trying to set up:
          alt text

          so I can have a rule like:
          alt text

          So basically want to turn the relay off when the temperature drops below say 18, and turn it on when it goes above say 20.

          jkandasaJ 1 Reply Last reply Reply Quote 0
          • jkandasaJ Offline
            jkandasa @rjad
            last edited by

            @rjad To turn OFF this is enough. To turn ON back when you reach 20, you have to configure one more operation(send payload, 0) and a rule to check >20.

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              rjad @jkandasa
              last edited by

              @jkandasa
              Yes! I think the thing was setting the payload to 0 and 1 not On or Off, or ON or OFF.
              I already have the off operation,

              R 1 Reply Last reply Reply Quote 0
              • R Offline
                rjad @rjad
                last edited by

                @rjad said:

                @jkandasa
                Yes! I think the thing was setting the payload to 0 and 1 not On or Off, or ON or OFF.
                I already have the off operation,

                I mean I already have the on operation.

                jkandasaJ 1 Reply Last reply Reply Quote 0
                • jkandasaJ Offline
                  jkandasa @rjad
                  last edited by

                  @rjad If you set payload as Toggle on an operation when you execute that operation will be toggled. If you set any delay on the operation, you have to wait until that second.

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

                  1

                  Online

                  589

                  Users

                  529

                  Topics

                  3.4k

                  Posts
                  Copyright © 2015-2025 MyController.org | Contributors | Localization