• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    Help turning relay on or off in an operation

    scheduled pinned locked moved General Discussion
    7 posts 2 posters 3.1k views 2 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • R offline
      rjad
      global: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 one-reply-to-this-post last-reply-time reply quote 1
      • jkandasaJ offline
        jkandasa @rjad
        global:last-edited-by, jkandasa

        @rjad Can you add your operation page screenshot?

        To toggle on the payload you have to add Toggle

        one-reply-to-this-post last-reply-time reply quote 0
        • R offline
          rjad
          global: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 one-reply-to-this-post last-reply-time reply quote 0
          • jkandasaJ offline
            jkandasa @rjad
            global: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 one-reply-to-this-post last-reply-time reply quote 0
            • R offline
              rjad @jkandasa
              global: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 one-reply-to-this-post last-reply-time reply quote 0
              • R offline
                rjad @rjad
                global: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 one-reply-to-this-post last-reply-time reply quote 0
                • jkandasaJ offline
                  jkandasa @rjad
                  global: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.

                  one-reply-to-this-post last-reply-time reply quote 0
                  • first-post
                    last-post

                  0

                  online

                  644

                  users

                  532

                  topics

                  3.4k

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