Skip to content

Instantly share code, notes, and snippets.

@cerebrate
Created October 1, 2021 21:09
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 cerebrate/39bb1ac6754f5ebd14c4955e9277422a to your computer and use it in GitHub Desktop.
Save cerebrate/39bb1ac6754f5ebd14c4955e9277422a to your computer and use it in GitHub Desktop.
The start of all my ESPHome configurations.
esphome:
name: misc-generic
platform: ESP8266
board: huzzah
comment: A generic node to do generic things.
project:
name: "avatar.generic"
version: "0.1.0"
# Enable logging
logger:
# Enable status LED
status_led:
pin:
# 0 is red LED (inverted)
number: 0
inverted: true
# Enable wireless networking
wifi:
ssid: "Arkane Systems"
password: "<REDACTED>"
fast_connect: true
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Misc-Generic Fallback Hotspot"
password: "<REDACTED>"
captive_portal:
# Enable over-the-air updates.
ota:
password: '<REDACTED>'
# Enable Home Assistant API
api:
password: '<REDACTED>'
# I2C bus
i2c:
# Binary Sensors
binary_sensor:
# Node state.
- platform: status
name: Generic
# Sensors
sensor:
# Uptime sensor
- platform: uptime
name: Generic Uptime
# Wireless strength signal
- platform: wifi_signal
name: Generic Wireless
# Switches
switch:
# Restart node.
- platform: restart
name: Generic Restart
# Shutdown node.
- platform: shutdown
name: Generic Shutdown
# Text sensors
text_sensor:
# Version
- platform: version
name: Generic ESPHome Version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment