Skip to content

Instantly share code, notes, and snippets.

@ironicbadger
Created May 8, 2020 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ironicbadger/7fd2ec31751023c7634503cd01cb6b56 to your computer and use it in GitHub Desktop.
Save ironicbadger/7fd2ec31751023c7634503cd01cb6b56 to your computer and use it in GitHub Desktop.
esphome.io
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