Announcement

Collapse
No announcement yet.

How to create an event to operate the SR-201-relay network controlled relay

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to create an event to operate the SR-201-relay network controlled relay

    How to;

    These two channel network 10 amp relays are available for $19.00

    WeChat Cloud Remote Control 2-way Ethernet Relay Network Switch Delay TCPUDP Module Controller

    or SR-201-Relay

    They come set to 192.168.1.100, there is an application to change the static ip address.

    I had a need to power cycle a device, either by an event or every 24 hours.

    Downloaded sr-201-relay.py and placed as a folder in Homeseer scripts folder

    Created a bat file containing;
    (this can be located anywhere on the computer)
    CD "C:\Program Files (x86)\HomeSeer HS3\scripts\sr-201-relay"
    "Close_1_for_3 sec.bat"

    Close_1_for_3 sec.bat contains; (This has to be in the "sr-201-relay" folder containing the sr-201-relay.py program and it's required files)
    sr-201-relay.py 192.168.0.xx close:1:3

    Basic commands, where R = relay #
    close:R - Close relay R.
    close:R:T - Close relay R, then after T seconds open it.
    close:R~ - Close relay R, then in about 1/2 a second open it.
    open:R

    In Homeseer create an event, select manual trigger or at a time.
    THEN "Run another program or process"
    Select the first bat file.

    Click image for larger version

Name:	sr-201.jpg
Views:	750
Size:	139.9 KB
ID:	1455820





    #2
    This is good information. I use an Ethernet relay board with eight relays to activate the ball-valves that control flow to my outside spigots. I took a slightly different approach in that I put the commands directly into the events.Click image for larger version

Name:	wm.png
Views:	641
Size:	134.4 KB
ID:	1455834

    Comment


      #3
      While I do not specifically recommend the very common IP/Relay board peddled on Ebay and other China outlets in the $35'ish range for 8 relays and 8 digital inputs, mcsMQTT plugin does support it directly so it just looks like a device for HS logic.

      Comment


        #4
        This is the relay board I use. It's been very reliable.

        https://www.robot-electronics.co.uk/...net-relay.html

        Comment


          #5
          Originally posted by Alex_W View Post
          This is the relay board I use. It's been very reliable.

          https://www.robot-electronics.co.uk/...net-relay.html
          How do you mount it? Do they sell cases or did you make your own?

          Comment


            #6
            Originally posted by NetworkGuy View Post
            How do you mount it? Do they sell cases or did you make your own?
            I simply mounted mine to a piece of plywood in the utility room. The power supply operates the relays, the sensors and the valves. The power supply and the PC running HS are on a UPS, and the UPS only has to carry the loads for 15 seconds until the generator kicks in, so I feel pretty good about the efficacy of the system.

            Click image for larger version

Name:	CIMG9417b.jpg
Views:	614
Size:	140.1 KB
ID:	1456263

            Comment


              #7
              Link to the ETH008C case
              https://www.robot-electronics.co.uk/...he-eth008.html

              Comment


                #8
                Originally posted by Alex_W View Post

                I simply mounted mine to a piece of plywood in the utility room. The power supply operates the relays, the sensors and the valves. The power supply and the PC running HS are on a UPS, and the UPS only has to carry the loads for 15 seconds until the generator kicks in, so I feel pretty good about the efficacy of the system.

                Click image for larger version

Name:	CIMG9417b.jpg
Views:	614
Size:	140.1 KB
ID:	1456263
                Thank you for the idea and picture!

                Comment


                  #9
                  Originally posted by Miamijerry View Post
                  Thank you for the link. Good looking case!

                  Comment


                    #10
                    AKWebIO 4.0.5.13 Added RobotElectronics (Devantech) ETH008

                    https://forums.homeseer.com/forum/hs...d-input-boards

                    ‚Äč

                    Comment

                    Working...
                    X