Help with OTA encryption

Hi all,

I have a few ESP devices running and keep seeing warnings regarding memory use etc when updating regarding the use of encryption.

I can’t figure out how to enable it without risking locking myself out of the device?

Can someone help with a little guidance please?

Your best chance for help is to show your yaml snd the error/warning.

Of course, apologies for not doing so…

esphome:
  name: esp-monitor-1
  friendly_name: ESP Monitor 1

esp8266:
  board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "xxxxx"

ota:
  - platform: esphome
    password: "xxxxxx"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esp-Monitor-1 Fallback Hotspot"
    password: "xxxxxx"

# DHT22 configuration
sensor:
  - platform: dht
    pin: GPIO14
    temperature:
      name: "Living Room Temperature"
      filters:
        - offset: -0.9
      accuracy_decimals: 2
    humidity:
      name: "Living Room Humidity"
    update_interval: 60s
    
# ESP8266 WiFi configuration
  - platform: wifi_signal
    name: "Living Room WiFi Signal"
    update_interval: 60s

# ESP8266 status configuration
binary_sensor:
  - platform: status
    name: "Living Room Status"
    update_interval: 30s

captive_portal:

You comment out the password in the ota: section and add encryption: following platform.

ota:
  - platform: esphome
    encryption:
#    password: "xxxxxx"

PS: I assume you are using version 2026.9.0 or higher.


By any chance are you uing one these modules?

Sorry but no, i only have the basic ESP32 boards

Thanks for that, it really was that simple :slight_smile:

Your code says esp8266 not esp32.

Just checked, i have both running