From 33efa7052cf1e0ed27fbc2ceccb63bd1cd7c1a39 Mon Sep 17 00:00:00 2001 From: Tim Meneely Date: Mon, 1 Feb 2021 17:34:59 -0500 Subject: [PATCH] Button box anew --- .gitignore | 2 +- bedroom_lilygo_t7v15.yaml | 17 ++++++++++------- secrets.yaml | 8 ++++++++ todo.txt | 1 + 4 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 secrets.yaml create mode 100644 todo.txt diff --git a/.gitignore b/.gitignore index 0bbf89c..80a1203 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ **/lib/ **/src/ **/platformio.ini -/secrets.yaml +#/secrets.yaml diff --git a/bedroom_lilygo_t7v15.yaml b/bedroom_lilygo_t7v15.yaml index 5e72ad5..84415cd 100644 --- a/bedroom_lilygo_t7v15.yaml +++ b/bedroom_lilygo_t7v15.yaml @@ -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 \ No newline at end of file diff --git a/secrets.yaml b/secrets.yaml new file mode 100644 index 0000000..721c581 --- /dev/null +++ b/secrets.yaml @@ -0,0 +1,8 @@ +# WiFi +wifi_ssid: "Meneely" +wifi_password: "punxsutawney1" + +# MQTT +mqtt_broker: 192.168.86.99 +mqtt_username: ha +mqtt_password: lorrie \ No newline at end of file diff --git a/todo.txt b/todo.txt new file mode 100644 index 0000000..004c28d --- /dev/null +++ b/todo.txt @@ -0,0 +1 @@ +Sonoff Mini: External switcth contacts are currently for a stay-in-place toggle switch. Change to momentary contact and debounce.