Skip to content

Commit

Permalink
allow reuse of output pin for Alarm Panel (avoids compile error in ES…
Browse files Browse the repository at this point in the history
…PHome 2023.12.1); expand FCC test mode
  • Loading branch information
heythisisnate committed Dec 21, 2023
1 parent 6d08f10 commit a5d1241
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
35 changes: 29 additions & 6 deletions gdo-fcc-test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
substitutions:
garage_door_opener_momentary_duration: 10s
esphome:
on_boot:
priority: 200
Expand Down Expand Up @@ -108,21 +110,42 @@ script:
# all device functions
- id: script_fcc_test
then:
# TODO: disable API timeout
# disable bluetooth
- wifi.disable:
- repeat:
count: 10000
then:
- rtttl.play: $rtttl_scaleup
- light.turn_on: warning_led
- delay: 500ms
- delay: 1s
- rtttl.play: beep:d=8,o=6,b=100:d
- delay: 600ms

- lambda: ESP_LOGI("Konnected-FCC-Test", "Blinking Warning LED");
- light.turn_on:
id: warning_led
effect: strobe
- delay: 5s
- light.turn_off: warning_led
- delay: 500ms
- repeat:
count: 2
then:
- rtttl.play: beep:d=8,o=6,b=100:d
- delay: 600ms

- lambda: ESP_LOGI("Konnected-FCC-Test", "Activating GDO trigger relay");
- button.press: garage_door_opener_button
- delay: $garage_door_opener_momentary_duration
- repeat:
count: 3
then:
- rtttl.play: beep:d=8,o=6,b=100:d
- delay: 600ms

- lambda: ESP_LOGI("Konnected-FCC-Test", "Activating STR output");
- switch.turn_on: output_switch
- delay: 300ms
- delay: 10s
- switch.turn_off: output_switch
- delay: 3s
- delay: 10s


####
Expand Down
1 change: 1 addition & 0 deletions packages/alarm-panel/alarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ switch:
pin: $alarm
platform: gpio
icon: mdi:bullhorn
allow_other_uses: true

1 change: 1 addition & 0 deletions packages/warning-beep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ output:
- id: buzzer_output
platform: gpio
pin: $warning_beep_pin
allow_other_uses: true

light:
- id: warning_beep
Expand Down

0 comments on commit a5d1241

Please sign in to comment.