Skip to content

Timeout reset for hardware button actions #2405

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

You must be logged in to vote

Try adding this as a customization to your panel's yaml:

switch:
  - id: !extend relay_1
    on_turn_on:
      - delay: 30s  # Select the time to be `on` before turn `off` automatically
      - switch.turn_off: relay_1

You can copy the same for relay 2, just change to relay_2 accordingly.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@edwardtfn
Comment options

Answer selected by Msmax2729LK
@Msmax2729LK
Comment options

@Msmax2729LK
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