Button box anew

This commit is contained in:
2021-02-01 17:34:59 -05:00
parent 052aabd3d8
commit 33efa7052c
4 changed files with 20 additions and 8 deletions

View File

@@ -20,12 +20,12 @@ ota:
<<: !include standard_mqtt_deepsleep.yaml
deep_sleep:
run_duration: 20s
sleep_duration: 40s #24h
sleep_duration: 8h #40s #24h
esp32_ext1_wakeup:
pins:
- 33 #yellow
- 34 #orange
- 35 #green
- 33 #middle button
- 34 #T button
- 35 #L button
mode: ANY_HIGH
id: deep_sleep_1
@@ -49,17 +49,20 @@ binary_sensor:
# filters:
# - delayed_on: 10ms ### <---- debounce time, was 100ms
# - delayed_off: 10s ### <---- delay to capture state change on wake up
name: "TKM Test 33 (yellow)"
name: "TKM Test 33 middle button"
id: tkm_test_33
- platform: gpio
pin:
number: GPIO34
mode: INPUT_PULLUP
name: "TKM Test 34 (orange)"
filters:
- delayed_on: 10ms ### <---- debounce time, was 100ms
# - delayed_off: 10s ### <---- delay to capture state change on wake up
name: "TKM Test 34 T button"
id: tkm_test_34
- platform: gpio
pin:
number: GPIO35
mode: INPUT_PULLUP
name: "TKM Test 35 (green)"
name: "TKM Test 35 L button"
id: tkm_test35