Switch fleet: migrate to noise-encrypted OTA #5

Merged
william-admin merged 2 commits from william/fleet-switch-migration into main 2026-10-25 14:06:43 -07:00 AGit
Member

Completes the fleet migration to Noise-encrypted OTA (single key per device: bare ota: encryption: inherits the device api key; password: removed).

One commit, 5 switch nodes: den-desk-sw (shelly-1pm-gen4), familyroom-stairs-sw / upstairs-stairs-sw / dining-room-sw (shelly-2pm-gen4), upstairs-hall-sw (shelly-2pm-gen3).

Each node went through the full validated procedure (logs/):

  1. migration upload with temporary password + allow_plaintext_upload (expected one-time plaintext fallback answering the old firmware's challenge)
  2. encrypted re-upload (Encrypted connection established)
  3. migration lines stripped -> final upload, boot-verified running 2026.11.0-dev / project 26.10.24-1, Encryption: required + Noise encryption: YES
  4. failure cases: wrong key -> handshake rejected; keyless upload -> RESPONSE_ERROR_ENCRYPTION_REQUIRED

upstairs-hall-sw's migration install was hand-flashed by the owner; final state verified identical (recheck logs). Fleet is now 10/10 on encrypted OTA (air nodes + credenza-ble landed in PR #2/#3/#4).


bedroom-sw-2 (second commit): address moved to fe80::b281:84ff:fee0:6bb0%nlan (device answers there; old fd64:...:1005 ULA was dead) and ota block migrated to bare encryption:. Its installed firmware predates this repo and the OTA password is unknown, so the one-time migration image is reflashed over usb-serial by the owner instead of over OTA; config lands as if already migrated. Image: .esphome/build/bedroom-sw-2/build/firmware.ota.bin.

Completes the fleet migration to Noise-encrypted OTA (single key per device: bare `ota: encryption:` inherits the device api key; `password:` removed). One commit, 5 switch nodes: den-desk-sw (shelly-1pm-gen4), familyroom-stairs-sw / upstairs-stairs-sw / dining-room-sw (shelly-2pm-gen4), upstairs-hall-sw (shelly-2pm-gen3). Each node went through the full validated procedure (logs/): 1. migration upload with temporary `password` + `allow_plaintext_upload` (expected one-time plaintext fallback answering the old firmware's challenge) 2. encrypted re-upload (`Encrypted connection established`) 3. migration lines stripped -> final upload, boot-verified running 2026.11.0-dev / project 26.10.24-1, `Encryption: required` + `Noise encryption: YES` 4. failure cases: wrong key -> handshake rejected; keyless upload -> RESPONSE_ERROR_ENCRYPTION_REQUIRED upstairs-hall-sw's migration install was hand-flashed by the owner; final state verified identical (recheck logs). Fleet is now 10/10 on encrypted OTA (air nodes + credenza-ble landed in PR #2/#3/#4). --- **bedroom-sw-2 (second commit):** address moved to `fe80::b281:84ff:fee0:6bb0%nlan` (device answers there; old fd64:...:1005 ULA was dead) and ota block migrated to bare `encryption:`. Its installed firmware predates this repo and the OTA password is unknown, so the one-time migration image is reflashed over usb-serial by the owner instead of over OTA; config lands as if already migrated. Image: `.esphome/build/bedroom-sw-2/build/firmware.ota.bin`.
Bare 'ota: encryption:' inherits each device api key; password removed.
Each node: one migration upload (expected one-time plaintext fallback
answering the old password challenge), encrypted re-upload, migration
lines stripped, final upload boot-verified on 26.10.24-1; wrong-key and
keyless uploads rejected on all five.

den-desk-sw (shelly-1pm-gen4, C6), familyroom-stairs-sw,
upstairs-stairs-sw, dining-room-sw (shelly-2pm-gen4, C6),
upstairs-hall-sw (shelly-2pm-gen3).
william changed title from devices: migrate switch fleet to noise-encrypted OTA (single key per device) to Switch fleet: migrate to noise-encrypted OTA 2026-10-25 01:50:04 -07:00
Firmware on the device predates this repo and its ota password is
unknown, so the migration image is reflashed over usb-serial by the
owner; config lands as if migrated. Compiled image:
.esphome/build/bedroom-sw-2/build/firmware.ota.bin (2026.11.0-dev,
project 26.10.24-1).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
wak/esphome-dev-wak!5
No description provided.