Skip to content

Instantly share code, notes, and snippets.

@jascdk
Created October 1, 2022 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jascdk/a2a4f30eef624c61f35d0f7e505ae9ff to your computer and use it in GitHub Desktop.
Save jascdk/a2a4f30eef624c61f35d0f7e505ae9ff to your computer and use it in GitHub Desktop.
switch:
- platform: gpio
pin: 32
id: nilan_user_function1_switch
- platform: template
name: "Brugervalg 1"
id: nilan_user_function1_switch_delayed
icon: "mdi:gate"
turn_on_action:
- switch.turn_on: nilan_user_function1_switch
- delay: 2000ms
- switch.turn_off: nilan_user_function1_switch
button:
- platform: template
name: Brugervalg Forlæng
id: user_button
on_press:
then:
- select.set:
id: nilan_set_user_function
option: "Extend"
- delay: 5s
- switch.turn_on: nilan_user_function1_switch_delayed
- platform: template
name: Brugervalg Nulstil
id: user_button_reset
on_press:
then:
- select.set:
id: nilan_set_user_function
option: "None"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment