Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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