Skip to content

Instantly share code, notes, and snippets.

@marksharrison
Last active October 4, 2025 21:33
Show Gist options
  • Select an option

  • Save marksharrison/6065d866522b639303d50b301b23b0cc to your computer and use it in GitHub Desktop.

Select an option

Save marksharrison/6065d866522b639303d50b301b23b0cc to your computer and use it in GitHub Desktop.
Common ESPHome base device configuration
# Network
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: !secret wifi_domain
fast_connect: true
power_save_mode: none # <-- helps reduce latency
id: wifi_id
ap:
password: !secret wifi_ap_password
ssid: ${device_name} hotspot
captive_portal:
# ESPHome API & OTA
api:
encryption:
key: !secret api_encryption_key
reboot_timeout: 0s
ota:
- platform: esphome
password: !secret ota_password
on_begin:
- lambda: id(wifi_id).set_power_save_mode(esphome::wifi::WIFI_POWER_SAVE_NONE);
logger:
level: ${log_level}
# Time configuration for scheduling
time:
- platform: homeassistant
id: homeassistant_time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment