Skip to content

Instantly share code, notes, and snippets.

@cerebrate
Created October 1, 2021 22:52
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/82667fce131a328830d7f3fec100d3a6 to your computer and use it in GitHub Desktop.
Save cerebrate/82667fce131a328830d7f3fec100d3a6 to your computer and use it in GitHub Desktop.
Non-device specific ESPHome package
# Common features for all our device nodes.
# Enable logging
logger:
# Enable wireless networking
wifi:
ssid: "Arkane Systems"
password: "<REDACTED>"
fast_connect: true
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "${deviceName} Fallback Hotspot"
password: "<REDACTED>"
captive_portal:
# Enable over-the-air updates.
ota:
password: '<REDACTED>'
# Enable Home Assistant API
api:
password: '<REDACTED>'
# Binary Sensors
binary_sensor:
# Node state.
- platform: status
name: ${deviceFriendlyName}
# Sensors
sensor:
# Uptime sensor
- platform: uptime
name: ${deviceFriendlyName} Uptime
# Wireless strength signal
- platform: wifi_signal
name: ${deviceFriendlyName} Wireless
# Switches
switch:
# Restart node.
- platform: restart
name: ${deviceFriendlyName} Restart
# Shutdown node.
- platform: shutdown
name: ${deviceFriendlyName} Shutdown
# Text sensors
text_sensor:
# Version
- platform: version
name: ${deviceFriendlyName} ESPHome Version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment