Results 1 to 9 of 9

Thread: Ideas on how to control lights via WIFI from a relay

  1. #1
    Join Date
    Oct 2011
    Location
    Virginia
    Posts
    48
    Post Thanks / Like

    Default Ideas on how to control lights via WIFI from a relay

    what I have is a AquaPure plus iAqualink Pool Control System that uses an APP or a Remote to control the Pool and accessories, I programmed in my
    Yard Malibu Lights and wired the Timer to a relay inside the control box. I would also like to control the Lights over the pool, they are string LED market style lights
    but the Switch that controls them are in the garage. I know there are switches that can be controlled by Alexa or Google or from a remote, what I need is more basic
    inside the control box are omron gl7-2a-tubj-cb Relays..


    what I am looking for is a wireless module that when the Relay clicks on or a 24v signal from the control board it turns on a remote switch.
    I have been searching for a commercial product but they all use a little hand held remote to activate the switch.
    or they use the Google / Alexa.

    I even looked into modifying the hand held remotes to wire up to the relay but the remotes are click on, click off, the relay is always on or off.

    I am not smart enough in electronics to design a circuit that would do that.

    Something like this setup https://rayshobby.net/wordpress/open...power-sockets/


    would this work? is this like the one in the link above?
    https://www.amazon.com/Transmitter-R.../dp/B07RZF4YTZ
    Last edited by 2k05gt; 03-03-2021 at 10:06 PM.

  2. #2
    Join Date
    Oct 2012
    Posts
    304
    Post Thanks / Like

    Default Re: Ideas on how to control lights via WIFI from a relay

    I wrote out a technical response of using MQTT and a pi and a WiFi module but then realized that the OP said they were not that technical.

    https://www.ebay.com/itm/US-DC-12v-1...72.m2749.l2649

    I used this to fix my daughters garage door opener that was no longer working, so if you can wire the relay contacts across the pushbutton then when the relay closes the relay in the remote box will close, as long as the button is being "pressed" Not elegant but might work for you. However the range on these things isn't great so a wifi solution would work better.

  3. #3
    Join Date
    Oct 2011
    Location
    Virginia
    Posts
    48
    Post Thanks / Like

    Default Re: Ideas on how to control lights via WIFI from a relay

    Thanks for the reply.

    Thats not going to work, since it requires a human to push a button. I want the APP from the Pool Controller to ber the button pusher.

    This is the Control Box,


    this is the App.
    https://www.youtube.com/watch?v=Uqz-3VtV7BU

    I can program the App to turn on or off any item that is wired to the box but the Lights I have are 10 meters away and I really do not want to go through the digging a ditch, running wire, drill holes, mounting boxes and so on.

    I really just want the poolbox to go click, a transmitter sends the signal to the receptacle, and the lights go on.
    I really can't believe that there is no product that has a transmitter that can be operated using a relay.


    I have been playing with the Arduino Uno R3 with some RF Transmitter and receivers with the RC-Switch Library

    I bought this transmitter / Receiver pair. https://www.amazon.com/gp/product/B0...0?ie=UTF8&th=1

    and these Wireless Plugs
    https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1

    I was able to capture the remote control Binary code when I push the On / Off Buttons
    Code:
    Decimal: 4539699 (24Bit) Binary: 010001010100010100110011 Tri-State: F0FFF0FF0101 PulseLength: 177 microseconds Protocol: 1
    Raw data: 5488,140,564,492,216,132,572,136,564,140,568,488,220,136,568,488,220,136,568,488,216,140,564,136,572,132,568,492,216,136,568,492,212,136,568,140,184,296,364,72,32,16,36,632,184,724,268,316,204,
    
    Decimal: 4539708 (24Bit) Binary: 010001010100010100111100 Tri-State: F0FFF0FF0110 PulseLength: 177 microseconds Protocol: 1
    Raw data: 5488,140,560,496,216,136,568,140,564,144,560,496,208,144,560,496,212,140,564,492,216,144,560,144,560,144,564,492,220,136,568,488,216,144,564,144,560,144,564,140,564,140,560,144,564,136,568,140,560,
    The first line is when I push the On button the second one is the off button.
    I tried using the Arduino to transmit the binary code to the plug but it did not work, although I hear the transmitter working from a noise from my speakers.
    so I wonder if the Plug requires the data to be in Hexadecimal?
    Not sure where to go from here though. even if this works I would still need a circuit to store the code to be transmitted.
    I guess I could program the data on a Nano for it to send.
    Last edited by 2k05gt; 03-03-2021 at 10:43 PM.

  4. #4
    Join Date
    Jan 2016
    Location
    Cedar Falls, IA
    Posts
    132
    Post Thanks / Like

    Default Re: Ideas on how to control lights via WIFI from a relay

    Here is a really expensive version of what you want to do: https://relaypros.com/Relay/Device/MIRCR15 there is info in the data sheets for it's wiring. ignore their image of a finger pushing a button, you just have to close a contact on that sender card

  5. #5
    Join Date
    Jan 2016
    Location
    Cedar Falls, IA
    Posts
    132
    Post Thanks / Like

    Default Re: Ideas on how to control lights via WIFI from a relay

    your results sure look like what is shown on this page. https://randomnerdtutorials.com/deco...-with-arduino/ are you using the send as they have it written up?

  6. #6
    Join Date
    Oct 2011
    Location
    Virginia
    Posts
    48
    Post Thanks / Like

    Default Re: Ideas on how to control lights via WIFI from a relay

    Quote Originally Posted by neonexpresso View Post
    your results sure look like what is shown on this page. https://randomnerdtutorials.com/deco...-with-arduino/ are you using the send as they have it written up?
    I made some changes after it still was not turning the outlet on/off. I thought maybe I could use the Tri-state or Decimal code, but they did not work either.
    this writeup is 3 years old, I will bet there were some changes to the power plug. maybe why it does not work now.

    Code:
    /*
      Based on the SendDemo example from the RC Switch library
      https://github.com/sui77/rc-switch/
    
    On: Decimal: 4539699 (24Bit) Binary: 010001010100010100110011 Tri-State: F0FFF0FF0101 PulseLength: 177 microseconds Protocol: 1
    Off:Decimal: 4539708 (24Bit) Binary: 010001010100010100111100 Tri-State: F0FFF0FF0110 PulseLength: 177 microseconds Protocol: 1
    */
    
    #include <RCSwitch.h>
    RCSwitch mySwitch = RCSwitch();
    
    void setup() {
      Serial.begin(9600);
      
      // Transmitter is connected to Arduino Pin #10  
      mySwitch.enableTransmit(10);
    
      // Optional set pulse length.
      mySwitch.setPulseLength(177);
      
      // Optional set protocol (default is 1, will work for most outlets)
      mySwitch.setProtocol(1);
      
      // Optional set number of transmission repetitions.
      // mySwitch.setRepeatTransmit(15);
    }
    
    void loop() {
      // Binary code - button 1
    //  mySwitch.send("010001010100010100110011");
    //  delay(1000);  
    //  mySwitch.send("010001010100010100111100");
    //  delay(1000);
      
     // Decimal code - button 1
    //  mySwitch.send(4539699, 24);
    //  delay(1000);  
    //  mySwitch.send(4539708, 24);
    //  delay(1000);
    
     // Tri-State code - button 1
     mySwitch.sendTriState("F0FFF0FF0101");
     delay(1000);  
     mySwitch.sendTriState("F0FFF0FF0110");
     delay(1000);
    }
    The other post with the 245.00 relays looks good, but 1 mile really, don't they have a lower power one for less??
    it would still cost me more to dig a ditch, run pipe, wire, bust up concrete, drill hole..

    There was another one that was more like what Utimgr had mentioned, but the issue I have with hacking a push button remote is reliability
    in an outside enclosure.
    http://lovettsoftware.com/posts/wireless_remote/
    and his Video https://www.youtube.com/watch?v=SLlqlntYcEg
    Last edited by 2k05gt; 03-04-2021 at 02:11 AM.

  7. #7
    Join Date
    Nov 2011
    Location
    Chicago - Southwest Suburbs
    Posts
    8,271
    Post Thanks / Like

    Default Re: Ideas on how to control lights via WIFI from a relay

    Not the cheapest way to go, but you can do this with insteon smart home products. Their IO link is a GPIO module that can sense the closure from your pool controller.
    https://www.smarthome.com/products/i...ace-1-in-1-out
    This would then be paired to an insteon switch/module of your choosing that's wired to the load. Here's a decora style on/off relay switch. They also make plug-in and outlet versions and versions with dimmers.
    https://www.smarthome.com/products/s...ual-band-white
    These aren't WiFi. They use a dual band technology that uses powerline communication and proprietary wireless for redundancy. For this application just a simple link between the iolink and switch is needed, no need for the app or any other software. These modules will give you the direct wire reliability you're looking for.

  8. #8
    Join Date
    Oct 2011
    Location
    Virginia
    Posts
    48
    Post Thanks / Like

    Default Re: Ideas on how to control lights via WIFI from a relay

    I was not really looking at cheap,

    I Race cars, and there is a saying that you can only have two out of three criterias in Race Car building
    1) Cheap
    2) Fast
    3) Reliable

    if you want Cheap and Fast it won't be Reliable
    if you want Fast and Reliable it won't be Cheap
    if you want Cheap and Reliable it won't be Fast.

    I think the same would apply here as well. LOL

  9. #9
    Join Date
    Oct 2011
    Location
    Virginia
    Posts
    48
    Post Thanks / Like

    Default Re: Ideas on how to control lights via WIFI from a relay

    I was able to figure this out, I purchased on EBAY a device used for HVAC Systems, IO-WRBM Transceivers.
    since HVAC systems run on 24VAC and use Relays and contacts i figured this would work.

    I benched tested it and it works.



    And there is a plus, it has 4 channels, so I could run other items from the Pool Controller

    Thanks for all the Ideas..
    So who's ready for a pool party !!!



    and a Stocked Bar.

    Last edited by 2k05gt; 03-11-2021 at 12:57 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •