Updates to config

This commit is contained in:
2021-10-23 15:47:31 -04:00
parent 983270eda1
commit d3205f7c7d
5 changed files with 159 additions and 1 deletions

54
esphome/garage.yaml Normal file
View File

@@ -0,0 +1,54 @@
esphome:
name: garage
platform: ESP8266
board: esp01_1m
wifi:
networks:
- ssid: !secret "wifi_ssid"
password: !secret "wifi_pass"
ap:
ssid: "smart_plug_1_fallback"
password: "Fallback@!"
captive_portal:
web_server:
port: 80
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
binary_sensor:
- platform: gpio
pin:
number: GPIO14
mode: INPUT_PULLUP
inverted: True
name: "Garage Door Sensor"
device_class: garage_door
switch:
- platform: gpio
pin: GPIO12
id: relay
- platform: template
icon: "mdi:arrow-up-down-bold-outline"
name: "Garage Door"
turn_on_action:
- switch.turn_on: relay
- delay: 15000ms
- switch.turn_off: relay
# - delay: 500ms
# - switch.turn_off: relay
sensor:
- platform: wifi_signal
name: garage_door_signal
update_interval: 15s