How to toggle Two Relay channels

Discussion in 'C-Bus Toolkit and C-Gate Software' started by allanf, Nov 13, 2017.

  1. allanf

    allanf

    Joined:
    Aug 11, 2014
    Messages:
    44
    Likes Received:
    4
    Location:
    Sydney
    Can someone explain how to toggle between two relay channels?

    When A is on or turned on B should be or turned off and reverse.
     
    allanf, Nov 13, 2017
    #1
  2. allanf

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,524
    Likes Received:
    173
    Location:
    Adelaide, Australia
    Assuming you have a device that handles scenes (i.e. Neo/Saturn switch etc or a logic device), just create 2 scenes that set the relays to opposite actions then trigger the appropriate scene. You can do this via a single switch (search for scene toggle).

    Otherwise just buy a change over relay and control it by a single cbus relay.

    Note that if both relays being energised is a bad thing, software solutions are generally considered to be unreliable.
     
    Ashley, Nov 13, 2017
    #2
    allanf likes this.
  3. allanf

    Matthew

    Joined:
    Oct 26, 2007
    Messages:
    260
    Likes Received:
    1
    Location:
    Adelaide
    Or a C-Bus change over relay L5504RVFC
     
    Matthew, Nov 14, 2017
    #3
  4. allanf

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,524
    Likes Received:
    173
    Location:
    Adelaide, Australia
    Or just get the existing C-bus relay to drive a separate simple change-over relay :)
     
    Ashley, Nov 14, 2017
    #4
    allanf likes this.
  5. allanf

    allanf

    Joined:
    Aug 11, 2014
    Messages:
    44
    Likes Received:
    4
    Location:
    Sydney
    Thanks guys, I was able to achieve the toggle by setting two scenes on my saturn switch.
    But ..... now one is always on ....
    I think did not correctly describe the scenario.

    A - Triple-LED lights
    B - Heat Lamp

    When A is on, B should be Off / If B is switched on, A should turn Off - Able to get this working.
    But either A or B is on, How to turn both off?
     
    allanf, Nov 18, 2017
    #5
  6. allanf

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,524
    Likes Received:
    173
    Location:
    Adelaide, Australia
    Create a third All Off scene. You can either trigger it from another switch or use a long press so set a preset value.
     
    Ashley, Nov 19, 2017
    #6
    allanf likes this.
  7. allanf

    allanf

    Joined:
    Aug 11, 2014
    Messages:
    44
    Likes Received:
    4
    Location:
    Sydney
    @Ashley Thanks, I used Scene capability and did the following on a 6-button Saturn Switch taking from your suggestion
    B1 : A On / B Off
    B2 : A Off / B On
    B3 : A Off / B Off

    So I have achieved the necessary requirement (This was for IXL Tactic). So good for now.



    Though, I would have liked to achieve this with just two buttons, Like
    B1 : First Press : A On / B Off
    B1 : Second Press : A Off / B Off

    B1 : First Press : A Off / B On
    B1 : Second Press : A Off / B Off


    Not sure if there is any way to achieve this?
     
    allanf, Nov 20, 2017
    #7
  8. allanf

    NickD Moderator

    Joined:
    Nov 1, 2004
    Messages:
    1,420
    Likes Received:
    62
    Location:
    Adelaide
    Put in an eDLT and use the scene cycle :) eDLTs are great in bathrooms... even if just for the clock.

    Alternatively if you have a logic engine somewhere, you could make it turn off the LEDs if the heat lamp gets turned on.

    Nick
     
    NickD, Nov 20, 2017
    #8
  9. allanf

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,524
    Likes Received:
    173
    Location:
    Adelaide, Australia
    Unfortunately you can only toggle between off and on (i.e 0 and 255 (100%)) which only allows 2 action selectors for two scenes. If you were happy with a short press for On and a long press for OFF you could make the short press a preset and the long press an off and get what you wanted. Otherwise if you have a logic unit it's pretty simple to implement the toggle functions.

    Personally I find the eDLT's a bit brain dead for my liking. Of only they had kept all the micro functions in addition to the widgets.....
     
    Ashley, Nov 20, 2017
    #9
  10. allanf

    grantw

    Joined:
    Jun 29, 2016
    Messages:
    12
    Likes Received:
    0
    Location:
    Melbourne
    You could do this with two buttons. Just use two "both off" scenes.

    Sc1: A on, B off (Trigger group X=255)
    Sc2: A off, B off (Trigger group X=0)
    Sc3: A off, B on (Trigger group Y=255)
    Sc4: A off, B off (Trigger group Y=0)

    Just make sure your indicator kill situation is correct and this should work fine, I would have thought.


    Alternatively, since the both-on situation doesn't really matter if it only happens for a few fractions of a second, you could do it with only two scenes.

    Sc1: A off (Trigger group B=255)
    Sc2: B off (Trigger group A=255)

    Then just make Button 1 be On/Off group A and Button 2 = On/Off group B


    Both of these solutions require either a logic device with a proper scene engine, or multiple scene-capable input devices so you can have different trigger groups.
     
    Last edited: Dec 5, 2017
    grantw, Dec 5, 2017
    #10
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.