Button box anew
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -7,4 +7,4 @@
|
|||||||
**/lib/
|
**/lib/
|
||||||
**/src/
|
**/src/
|
||||||
**/platformio.ini
|
**/platformio.ini
|
||||||
/secrets.yaml
|
#/secrets.yaml
|
||||||
|
|||||||
@@ -20,12 +20,12 @@ ota:
|
|||||||
<<: !include standard_mqtt_deepsleep.yaml
|
<<: !include standard_mqtt_deepsleep.yaml
|
||||||
deep_sleep:
|
deep_sleep:
|
||||||
run_duration: 20s
|
run_duration: 20s
|
||||||
sleep_duration: 40s #24h
|
sleep_duration: 8h #40s #24h
|
||||||
esp32_ext1_wakeup:
|
esp32_ext1_wakeup:
|
||||||
pins:
|
pins:
|
||||||
- 33 #yellow
|
- 33 #middle button
|
||||||
- 34 #orange
|
- 34 #T button
|
||||||
- 35 #green
|
- 35 #L button
|
||||||
mode: ANY_HIGH
|
mode: ANY_HIGH
|
||||||
id: deep_sleep_1
|
id: deep_sleep_1
|
||||||
|
|
||||||
@@ -49,17 +49,20 @@ binary_sensor:
|
|||||||
# filters:
|
# filters:
|
||||||
# - delayed_on: 10ms ### <---- debounce time, was 100ms
|
# - delayed_on: 10ms ### <---- debounce time, was 100ms
|
||||||
# - delayed_off: 10s ### <---- delay to capture state change on wake up
|
# - 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
|
id: tkm_test_33
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
pin:
|
pin:
|
||||||
number: GPIO34
|
number: GPIO34
|
||||||
mode: INPUT_PULLUP
|
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
|
id: tkm_test_34
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
pin:
|
pin:
|
||||||
number: GPIO35
|
number: GPIO35
|
||||||
mode: INPUT_PULLUP
|
mode: INPUT_PULLUP
|
||||||
name: "TKM Test 35 (green)"
|
name: "TKM Test 35 L button"
|
||||||
id: tkm_test35
|
id: tkm_test35
|
||||||
8
secrets.yaml
Normal file
8
secrets.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# WiFi
|
||||||
|
wifi_ssid: "Meneely"
|
||||||
|
wifi_password: "punxsutawney1"
|
||||||
|
|
||||||
|
# MQTT
|
||||||
|
mqtt_broker: 192.168.86.99
|
||||||
|
mqtt_username: ha
|
||||||
|
mqtt_password: lorrie
|
||||||
Reference in New Issue
Block a user