Created
May 8, 2020 18:21
-
-
Save ironicbadger/7fd2ec31751023c7634503cd01cb6b56 to your computer and use it in GitHub Desktop.
esphome.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: sonoffsv_garage_car | |
platform: ESP8266 | |
board: esp01_1m | |
wifi: | |
ssid: "123" | |
password: "123" | |
# Enable fallback hotspot (captive portal) in case wifi connection fails | |
ap: | |
ssid: "Sonoffsv Garage Car" | |
password: "123" | |
captive_portal: | |
# Enable logging | |
logger: | |
# Enable Home Assistant API | |
api: | |
password: "123" | |
ota: | |
password: "123" | |
web_server: | |
port: 80 | |
binary_sensor: | |
- platform: gpio | |
pin: | |
number: GPIO14 | |
mode: INPUT_PULLUP | |
inverted: False | |
name: "Garage Door Car" | |
device_class: garage_door | |
switch: | |
- platform: gpio | |
pin: GPIO12 | |
id: relay | |
- platform: template | |
icon: "mdi:arrow-up-down-bold-outline" | |
name: "Garage Door Car" | |
turn_on_action: | |
- switch.turn_on: relay | |
- delay: 500ms | |
- switch.turn_off: relay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment