Announcement

Collapse
No announcement yet.

Relays

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

    Relays

    Relays come in handy for a lot of automation applications. I use the ETH008 from Robot Electronics for several applications including control of water shut-off valves and DC motor control. One of the members of the forum is working on a plug-in for the board, which will be the way to integrate it with HomeSeer, but the board will respond to commands sent directly from an event. After a bit of trial and error I was able to work out the proper syntax. I put these command into events by using the "Execute immediate script command" option.

    &hs.geturl("http://192.168.x.xxx/io.cgi?DOI5=100","",TRUE,80)

    IP address of the ETH008
    Relay state you wish to initiate - Use "I" for Inactive or "A" for active.
    Number of the relay you wish to control
    Timeout =100 activates or deactivates the relay for 10 seconds; =150 for 15 second and so on. No entry/ No timeout

    This solution does not create devices for the relays themselves and will not retrieve status, but a workaround would be to use virtual devices to do that job. It'll do until the plugin is published.

    Should anyone have a need to control a three-wire DC load such as a motor or a bi-directional LED, here is a simple circuit that provides a fail-safe way of doing so using two Form C relays such as those on the ETH008.

    Click image for larger version

Name:	relay_ 1.jpg
Views:	132
Size:	56.2 KB
ID:	1394893
    This circuit mechanically isolates the NO contacts and eliminates the possibility of voltage being applied to both poles/anodes at the same time. There are quite a few older devices (drapes, skylights and so on) where a circuit like this may come in handy.

    #2
    You can also use an Arduino with a relay board attached as outputs. This will also give you inputs and other device control for a much lower price. There is also a Plugin for HS3 and HS4.
    Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
    X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
    Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
    Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
    Scripts =
    Various

    Comment


      #3
      Originally posted by enigmatheatre View Post
      You can also use an Arduino with a relay board attached as outputs. This will also give you inputs and other device control for a much lower price. There is also a Plugin for HS3 and HS4.
      I think the price would be slightly higher to get 8 relays active using Arduino. You would need the Arduino, two relay boards and the plugin which comes to about $110.00. Of course if the plugin weren't so expensive...🤔

      I am considering getting an Arduino to play around with because it has so many applications. So may projects, so little time.

      Comment


        #4
        Amazon has single boards with 8 relays for $11, and NodeMCU boards at 2 for $10.49. I don't use the plugin (I don't know anything about it, good or bad. I just haven't tried it). I've found that it's pretty easy to talk back and forth with the Arduinos using scripts and the free drule plugin.
        https://forums.homeseer.com/forum/de...cussion-thread

        Comment


          #5
          Most people use Banggood and with a quick look for parts could get

          16 channels of relay https://www.banggood.com/12V-124816-...r_warehouse=CN

          Arduino Mega https://www.banggood.com/Geekcreit-M..._warehouse=USA

          Ethernet shieldhttps://uk.banggood.com/Ethernet-Shi...r_warehouse=CN
          Personally I would get a genuine one.

          cables https://www.banggood.com/120pcs-20cm..._warehouse=USA

          Banggood total around $41

          Arduino Plugin $39.99

          Total = $81

          With this, you will get 16 relay outputs and about 30 free IO ports.

          2 x ETH008 would set you back about $180 and it is not expandible.

          I was just trying to help as you look to be a new user I just wanted to point out there are other ways to do it but the choice is yours as to which route you take.

          O and the Plugin supports the NodeMcu with wifi too.
          Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
          X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
          Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
          Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
          Scripts =
          Various

          Comment


            #6
            Originally posted by enigmatheatre View Post
            Most people use Banggood and with a quick look for parts could get

            16 channels of relay https://www.banggood.com/12V-124816-...r_warehouse=CN

            Arduino Mega https://www.banggood.com/Geekcreit-M..._warehouse=USA

            Ethernet shieldhttps://uk.banggood.com/Ethernet-Shi...r_warehouse=CN
            Personally I would get a genuine one.

            cables https://www.banggood.com/120pcs-20cm..._warehouse=USA

            Banggood total around $41

            Arduino Plugin $39.99

            Total = $81

            With this, you will get 16 relay outputs and about 30 free IO ports.

            2 x ETH008 would set you back about $180 and it is not expandible.

            I was just trying to help as you look to be a new user I just wanted to point out there are other ways to do it but the choice is yours as to which route you take.

            O and the Plugin supports the NodeMcu with wifi too.
            Good stuff. I'm new to HomeSeer, but not to automation. I've installed hundreds of systems and I've written, taught and chaired college courses on EET and Industrial Programmable Logic Controls. I might get some of those goodies and put them under the gun to test them for reliability and durability.

            Comment

            Working...
            X