From 17acd2138f4d8a34c58d009de6d8beb306e26c38 Mon Sep 17 00:00:00 2001 From: Tycorc Date: Tue, 19 May 2026 01:37:17 +0200 Subject: [PATCH] chore(esphome): parameterize OTA password (preserve current default) Promote the hardcoded `password: "apolloautomation"` literal in `MSR-1.yaml` and `MSR-1_BLE.yaml` to a `${ota_password}` substitution defined in `Core.yaml`, defaulting to the same value. Existing consumers see no behavior change. Consumers who include this file via `packages:` can override per-device via their own `substitutions:` block. --- Integrations/ESPHome/Core.yaml | 4 ++++ Integrations/ESPHome/MSR-1.yaml | 2 +- Integrations/ESPHome/MSR-1_BLE.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Integrations/ESPHome/Core.yaml b/Integrations/ESPHome/Core.yaml index 70e3687..50da2d9 100644 --- a/Integrations/ESPHome/Core.yaml +++ b/Integrations/ESPHome/Core.yaml @@ -1,6 +1,10 @@ substitutions: version: "26.3.2.1" device_description: ${name} made by Apollo Automation - version ${version}. + # Default OTA password. Override in your device YAML by re-declaring + # `substitutions: { ota_password: !secret _ota_password }` so each + # device on your network uses a unique secret instead of the shared default. + ota_password: "apolloautomation" esp32: variant: esp32c3 diff --git a/Integrations/ESPHome/MSR-1.yaml b/Integrations/ESPHome/MSR-1.yaml index 04d38b4..72245d3 100644 --- a/Integrations/ESPHome/MSR-1.yaml +++ b/Integrations/ESPHome/MSR-1.yaml @@ -28,7 +28,7 @@ logger: ota: - platform: esphome - password: "apolloautomation" + password: ${ota_password} wifi: power_save_mode: none diff --git a/Integrations/ESPHome/MSR-1_BLE.yaml b/Integrations/ESPHome/MSR-1_BLE.yaml index 4465d8e..a6cf842 100644 --- a/Integrations/ESPHome/MSR-1_BLE.yaml +++ b/Integrations/ESPHome/MSR-1_BLE.yaml @@ -29,7 +29,7 @@ dashboard_import: ota: - platform: esphome - password: "apolloautomation" + password: ${ota_password} wifi: ap: