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

Adding Relay tutorial

Scheduled Pinned Locked Moved General Discussion
7 Posts 2 Posters 1.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.
  • S Offline
    skywatch
    last edited by 8 Nov 2017, 11:38

    Is there a tutorial on how to add a relay for power on/power off anywhere? I just wasted 3 hours bumbling around rules/custom widget butons/operations etc but can't find a way to do it.

    I just want a button to toggle a relaly node (or could be 2 buttons with on and off). The relay node shows up, but no sensors (guess it's not really a sensor though is it?). I tried to add manually, but still didn't work....

    What is the correct way with easy steps please?

    T 1 Reply Last reply 8 Nov 2017, 13:17 Reply Quote 0
    • T Offline
      Tag MOD @skywatch
      last edited by Tag 11 Aug 2017, 18:59 8 Nov 2017, 13:17

      @skywatch

      I did some testing, and this one works great for me!

      just make sure you use the correct pins for your relays, and the count of relays....
      You can setup on/off switches in your dashboard to control the relays
      0_1510147646189_8157205e-a41d-4002-aa99-8e764fdd5b9c-image.png
      (i modified this sketch to make a 433MHZ gateway to control remote switches)

      1 Reply Last reply Reply Quote 0
      • S Offline
        skywatch
        last edited by 8 Nov 2017, 13:47

        @Tag

        Hardware is built and communicating with gw. What I can't see is how to set it up in myc.
        Where do you add the buttons to control the relay?
        the node shows in MYC, but not the relay itself? How to add it?
        This is where I am stuck! 😞

        T 1 Reply Last reply 8 Nov 2017, 14:10 Reply Quote 0
        • T Offline
          Tag MOD @skywatch
          last edited by Tag 11 Aug 2017, 19:41 8 Nov 2017, 14:10

          @skywatch
          If you look at Resources --> Nodes --> the relaynode

          How many sensors show up here:

          0_1510150191878_54e336fb-b451-4f5d-9407-6753d91cc291-image.png

          if you click the number you should see the presented sensors.
          0_1510150242340_c177e7fc-27c2-4ce3-ae33-36df5452f0fa-image.png

          This is where we need to start,
          if there are no sensors, your sketch is most probably not working correctly

          1 Reply Last reply Reply Quote 0
          • S Offline
            skywatch
            last edited by 8 Nov 2017, 14:18

            @Tag

            All working - THANK YOU SO MUCH!!! 🙂 🙂 🙂

            It was missing 'status' in the variable type....now i can build more!!! 😉

            If you come to the UK I will buy you a beer! 🙂

            T 1 Reply Last reply 8 Nov 2017, 14:41 Reply Quote 0
            • T Offline
              Tag MOD @skywatch
              last edited by 8 Nov 2017, 14:41

              @skywatch

              Might keep you to that one 😉
              🍻 virtual one for now

              1 Reply Last reply Reply Quote 0
              • S Offline
                skywatch
                last edited by 8 Nov 2017, 15:13

                Cheers!

                It was sooooo simple in the end. But I never would have guessed that 'status' would have been the variable type. I was looking for binary,0,1, even on,off...but status? Where does that come from?

                Tested the 'local override switch' and that works - switches realy and updates myc dashboard.

                Finally I feel like I might be getting somewhere with all this! 🙂

                1 Reply Last reply Reply Quote 0
                6 out of 7
                • First post
                  6/7
                  Last post

                0

                Online

                619

                Users

                531

                Topics

                3.4k

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