Implementing nightstands
This commit is contained in:
@@ -46,8 +46,8 @@ binary_sensor:
|
||||
pin:
|
||||
number: GPIO33
|
||||
mode: INPUT_PULLUP
|
||||
# filters:
|
||||
# - delayed_on: 10ms ### <---- debounce time, was 100ms
|
||||
filters:
|
||||
- delayed_on: 100ms ### <---- debounce time, was 100ms
|
||||
# - delayed_off: 10s ### <---- delay to capture state change on wake up
|
||||
name: "TKM Test 33 middle button"
|
||||
id: tkm_test_33
|
||||
@@ -56,7 +56,7 @@ binary_sensor:
|
||||
number: GPIO34
|
||||
mode: INPUT_PULLUP
|
||||
filters:
|
||||
- delayed_on: 10ms ### <---- debounce time, was 100ms
|
||||
- delayed_on: 100ms ### <---- 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
|
||||
@@ -64,5 +64,7 @@ binary_sensor:
|
||||
pin:
|
||||
number: GPIO35
|
||||
mode: INPUT_PULLUP
|
||||
filters:
|
||||
- delayed_on: 100ms ### <---- debounce time, was 100ms
|
||||
name: "TKM Test 35 L button"
|
||||
id: tkm_test35
|
||||
@@ -3,4 +3,5 @@ bigblue1 192.168.87.31 ESP32/esp-wrover-kit ESP32D0WDQ5 (revisio
|
||||
bedroom_tkm1 192.168.87.36 ESP32/wemos_d1_mini32 ESP32D0WDQ6 (revision 1) D1 mini, 4xAmazon 2021-01-20. Doesn't give pin ID used to wake from deep sleep
|
||||
esp32_cam1 192.168.87.17 ESP32/esp32cam ESP32-CAM, 2xAmazon 2020-12-17
|
||||
bedroom_tkm_lily1 192.168.87.44 ESP32 LilyGo T7 V1.5, with USB and battery
|
||||
sonoffmini_1 192.168.87.41 ESP8266/esp01_1m Sonoff Mini
|
||||
sonoffmini_1 192.168.87.41 ESP8266/esp01_1m Sonoff Mini - Now on Tim's nightstand
|
||||
sonoffmini_45 192.168.87.45 ESP8266/esp01_1m Sonoff Mini - Now on Lorrie's nightstand
|
||||
|
||||
96
sonoff_mini45.yaml
Normal file
96
sonoff_mini45.yaml
Normal file
@@ -0,0 +1,96 @@
|
||||
substitutions:
|
||||
device_name: sonoffmini_45
|
||||
device_ip: 192.168.87.45
|
||||
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
|
||||
wifi:
|
||||
ssid: "Meneely"
|
||||
password: "punxsutawney1"
|
||||
manual_ip:
|
||||
static_ip: ${device_ip}
|
||||
gateway: 192.168.86.1
|
||||
subnet: 255.255.255.0
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "ESPHOME"
|
||||
password: "12345678"
|
||||
|
||||
logger:
|
||||
|
||||
api:
|
||||
reboot_timeout: 15min
|
||||
|
||||
ota:
|
||||
|
||||
# the web_server & sensor components can be removed without affecting core functionaility.
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
sensor:
|
||||
- platform: wifi_signal
|
||||
name: ${device_name} Wifi Signal Strength
|
||||
update_interval: 60s
|
||||
- platform: uptime
|
||||
name: ${device_name} Uptime
|
||||
|
||||
#######################################
|
||||
# Device specific Config Begins Below #
|
||||
#######################################
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin: GPIO00 # The built-in switch
|
||||
id: reset
|
||||
internal: true
|
||||
filters:
|
||||
- invert:
|
||||
- delayed_off: 10ms
|
||||
on_press:
|
||||
- switch.toggle:
|
||||
id: relay_1
|
||||
|
||||
- platform: gpio
|
||||
name: ${device_name}_status
|
||||
pin: GPIO04 # The external terminals
|
||||
id: switch_1
|
||||
filters:
|
||||
- delayed_on: 100ms
|
||||
on_press:
|
||||
then:
|
||||
- switch.toggle:
|
||||
id: relay_1
|
||||
# on_release:
|
||||
# then:
|
||||
# - switch.toggle:
|
||||
# id: relay_1
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: ${device_name}_switch
|
||||
icon: "mdi: lightbulb_outline"
|
||||
pin: GPIO12
|
||||
id: relay_1
|
||||
restore_mode: restore_default_off
|
||||
|
||||
status_led:
|
||||
pin:
|
||||
number: GPIO13
|
||||
inverted: true
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: blue_led
|
||||
pin: GPIO13
|
||||
inverted: True
|
||||
|
||||
light:
|
||||
# the 4 lines below define the Blue LED light on Sonoff Mini, to expose in HomeAssistant remove line "internal: true"
|
||||
- platform: monochromatic
|
||||
name: ${device_name}_blueled
|
||||
output: blue_led
|
||||
internal: true # hides the Blue LED from HomeAssistant
|
||||
Reference in New Issue
Block a user