Skip to content

Single pole, double throw (SPDT) #2105

Answered by edwardtfn
IversenT asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the late reply here.

Adding this to your panel's yaml should do the trick:

binary_sensor:
  - id: !extend right_button
    on_click:
      - switch.toggle: relay_1
switch:
  # Prevents the two relays to be on simultaneously
  - id: !extend relay_1
    interlock: [relay_1, relay_2]
    interlock_wait_time: 500ms  # Please adjust this accordingly
    on_turn_on:
      - switch.turn_off: relay_2
    on_turn_off:
      - switch.turn_on: relay_2
  - id: !extend relay_2
    interlock: [relay_1, relay_2]
    interlock_wait_time: 500ms  # Please adjust this accordingly

You can add to the customization area or to the very end of the file. It's up to you.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@IversenT
Comment options

@edwardtfn
Comment options

@IversenT
Comment options

@edwardtfn
Comment options

Answer selected by IversenT
@IversenT
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants