Skip to content

Commit

Permalink
Sail around the button component for now
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Feb 22, 2022
1 parent c379dc2 commit 6d215d6
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions packages/button_pairing_mode.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
button:
- platform: template
name: "${name} Enable Pairing Mode"
on_press:
- switch.turn_on: download_mode
- delay: 5s
- switch.turn_off: download_mode
# Don't use the button component as long as ESPHome 2021.9.3
# is required because of the buggy esphome-stream-server
#
# button:
# - platform: template
# name: "${name} Enable Pairing Mode"
# on_press:
# - switch.turn_on: download_mode
# - delay: 5s
# - switch.turn_off: download_mode

- platform: template
id: zigbee_pairing_mode
name: "${name} Toggle pairing mode"
turn_on_action:
- switch.turn_on: download_mode
- delay: 5s
- switch.turn_off: download_mode

binary_sensor:
- platform: gpio
Expand Down

0 comments on commit 6d215d6

Please sign in to comment.