From c94980d5b364ed04a8931fc9f50f241f4afa396f Mon Sep 17 00:00:00 2001 From: fgampel Date: Tue, 6 Oct 2026 11:44:50 -0300 Subject: [PATCH] fix: replace deprecated OTA password with encryption ESPHome 2026.9 warns that the OTA password is redundant: the API encryption key already authenticates uploads. OTA now uses encryption (same key), the ota_password substitution is dropped everywhere, min_version is 2026.9.0. Co-Authored-By: Claude Opus 5.5 --- .../Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xHP3.factory.yaml | 2 +- devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xHP3.yaml | 3 +-- .../Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP1.factory.yaml | 2 +- devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP1.yaml | 3 +-- .../Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP3.factory.yaml | 2 +- devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP3.yaml | 3 +-- docs/INSTALLATION.md | 2 -- pv-inverter.Deye-SG0XHP3.yaml | 1 - pv-inverter.Deye-SG0XLP1.yaml | 1 - pv-inverter.Deye-SG0XLP3.yaml | 1 - pv-inverter.yaml | 1 - pv_inverter/packages/init.yaml | 4 ++-- tests/deye_hybrid_1p_lv.yaml | 1 - tests/deye_hybrid_3p_hv.yaml | 1 - tests/deye_hybrid_3p_lv.yaml | 1 - tests/secrets.yaml | 1 - 16 files changed, 8 insertions(+), 21 deletions(-) diff --git a/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xHP3.factory.yaml b/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xHP3.factory.yaml index a2b0a22..6ee9b79 100644 --- a/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xHP3.factory.yaml +++ b/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xHP3.factory.yaml @@ -5,7 +5,7 @@ ota: - platform: http_request id: ota_http_request - id: !extend ota_esphome - password: !remove + encryption: !remove improv_serial: diff --git a/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xHP3.yaml b/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xHP3.yaml index 3fcb1a9..4710d74 100644 --- a/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xHP3.yaml +++ b/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xHP3.yaml @@ -14,7 +14,6 @@ substitutions: api_key: "" - ota_password: "" fallback_password: "" wifi_ssid: "" wifi_password: "" @@ -40,7 +39,7 @@ packages: esphome: name: deye-inverter friendly_name: Deye Inverter - min_version: "2026.8.0" + min_version: "2026.9.0" name_add_mac_suffix: true uart: diff --git a/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP1.factory.yaml b/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP1.factory.yaml index a65a84a..a09afa1 100644 --- a/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP1.factory.yaml +++ b/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP1.factory.yaml @@ -5,7 +5,7 @@ ota: - platform: http_request id: ota_http_request - id: !extend ota_esphome - password: !remove + encryption: !remove improv_serial: diff --git a/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP1.yaml b/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP1.yaml index 01e9fcf..b05ca00 100644 --- a/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP1.yaml +++ b/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP1.yaml @@ -14,7 +14,6 @@ substitutions: api_key: "" - ota_password: "" fallback_password: "" wifi_ssid: "" wifi_password: "" @@ -37,7 +36,7 @@ packages: esphome: name: deye-inverter friendly_name: Deye Inverter - min_version: "2026.8.0" + min_version: "2026.9.0" name_add_mac_suffix: true uart: diff --git a/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP3.factory.yaml b/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP3.factory.yaml index bd647aa..fdcd0ef 100644 --- a/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP3.factory.yaml +++ b/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP3.factory.yaml @@ -5,7 +5,7 @@ ota: - platform: http_request id: ota_http_request - id: !extend ota_esphome - password: !remove + encryption: !remove improv_serial: diff --git a/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP3.yaml b/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP3.yaml index bb2f14e..9745ea1 100644 --- a/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP3.yaml +++ b/devices/Waveshare-ESP32-S3-RS485-CAN/Deye-SG0xLP3.yaml @@ -14,7 +14,6 @@ substitutions: api_key: "" - ota_password: "" fallback_password: "" wifi_ssid: "" wifi_password: "" @@ -40,7 +39,7 @@ packages: esphome: name: deye-inverter friendly_name: Deye Inverter - min_version: "2026.8.0" + min_version: "2026.9.0" name_add_mac_suffix: true uart: diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md index 5f31b65..339c4b3 100644 --- a/docs/INSTALLATION.md +++ b/docs/INSTALLATION.md @@ -53,7 +53,6 @@ This is the easiest way to get started if you're using Home Assistant. wifi_ssid: "YourWiFiSSID" wifi_password: "YourWiFiPassword" pv_inverter_api_key: "your-32-character-api-key" - pv_inverter_ota_password: "your-ota-password" pv_inverter_fallback_password: "your-fallback-password" ``` 2. Click **"EDIT"** on your newly created device @@ -92,7 +91,6 @@ If you prefer using command line or don't have Home Assistant: wifi_ssid: "YourWiFiSSID" wifi_password: "YourWiFiPassword" pv_inverter_api_key: "your-32-character-api-key" - pv_inverter_ota_password: "your-ota-password" pv_inverter_fallback_password: "your-fallback-password" ``` diff --git a/pv-inverter.Deye-SG0XHP3.yaml b/pv-inverter.Deye-SG0XHP3.yaml index a01ef4e..84ce404 100644 --- a/pv-inverter.Deye-SG0XHP3.yaml +++ b/pv-inverter.Deye-SG0XHP3.yaml @@ -16,7 +16,6 @@ substitutions: wifi_ssid: !secret wifi_ssid wifi_password: !secret wifi_password api_key: !secret pv_inverter_api_key - ota_password: !secret pv_inverter_ota_password fallback_password: !secret pv_inverter_fallback_password modbus_inverter_address: "0x01" # Default Modbus address, should be changed to match inverter settings diff --git a/pv-inverter.Deye-SG0XLP1.yaml b/pv-inverter.Deye-SG0XLP1.yaml index 164503b..3c97d29 100644 --- a/pv-inverter.Deye-SG0XLP1.yaml +++ b/pv-inverter.Deye-SG0XLP1.yaml @@ -16,7 +16,6 @@ substitutions: wifi_ssid: !secret wifi_ssid wifi_password: !secret wifi_password api_key: !secret pv_inverter_api_key - ota_password: !secret pv_inverter_ota_password fallback_password: !secret pv_inverter_fallback_password modbus_inverter_address: "0x01" # Default Modbus address, should be changed to match inverter settings diff --git a/pv-inverter.Deye-SG0XLP3.yaml b/pv-inverter.Deye-SG0XLP3.yaml index eeef042..bfbcb17 100644 --- a/pv-inverter.Deye-SG0XLP3.yaml +++ b/pv-inverter.Deye-SG0XLP3.yaml @@ -16,7 +16,6 @@ substitutions: wifi_ssid: !secret wifi_ssid wifi_password: !secret wifi_password api_key: !secret pv_inverter_api_key - ota_password: !secret pv_inverter_ota_password fallback_password: !secret pv_inverter_fallback_password modbus_inverter_address: "0x01" # Default Modbus address, should be changed to match inverter settings diff --git a/pv-inverter.yaml b/pv-inverter.yaml index de96b59..3f0b30b 100644 --- a/pv-inverter.yaml +++ b/pv-inverter.yaml @@ -16,7 +16,6 @@ substitutions: wifi_ssid: !secret wifi_ssid wifi_password: !secret wifi_password api_key: !secret pv_inverter_api_key - ota_password: !secret pv_inverter_ota_password fallback_password: !secret pv_inverter_fallback_password modbus_inverter_address: "0x01" # Default Modbus address, should be changed to match inverter settings diff --git a/pv_inverter/packages/init.yaml b/pv_inverter/packages/init.yaml index a3d5ef4..0af042c 100644 --- a/pv_inverter/packages/init.yaml +++ b/pv_inverter/packages/init.yaml @@ -19,7 +19,7 @@ esphome: name: "${name}" friendly_name: "${friendly_name}" comment: "${device_description} by Lewa-Reka https://github.com/Lewa-Reka/esphome-deye-inverter" - min_version: "2026.8.0" + min_version: "2026.9.0" project: name: "lewa-reka.deye-inverter" version: "0.15.0-rc" @@ -48,7 +48,7 @@ api: ota: - platform: esphome id: ota_esphome - password: ${ota_password} + encryption: # reuses the api encryption key wifi: ssid: ${wifi_ssid} diff --git a/tests/deye_hybrid_1p_lv.yaml b/tests/deye_hybrid_1p_lv.yaml index 12209fd..f263bbb 100644 --- a/tests/deye_hybrid_1p_lv.yaml +++ b/tests/deye_hybrid_1p_lv.yaml @@ -16,7 +16,6 @@ substitutions: wifi_ssid: !secret wifi_ssid wifi_password: !secret wifi_password api_key: !secret pv_inverter_api_key - ota_password: !secret pv_inverter_ota_password fallback_password: !secret pv_inverter_fallback_password modbus_inverter_address: "0x01" # Default Modbus address, should be changed to match inverter settings diff --git a/tests/deye_hybrid_3p_hv.yaml b/tests/deye_hybrid_3p_hv.yaml index 9c936dd..afe66ba 100644 --- a/tests/deye_hybrid_3p_hv.yaml +++ b/tests/deye_hybrid_3p_hv.yaml @@ -16,7 +16,6 @@ substitutions: wifi_ssid: !secret wifi_ssid wifi_password: !secret wifi_password api_key: !secret pv_inverter_api_key - ota_password: !secret pv_inverter_ota_password fallback_password: !secret pv_inverter_fallback_password modbus_inverter_address: "0x01" # Default Modbus address, should be changed to match inverter settings diff --git a/tests/deye_hybrid_3p_lv.yaml b/tests/deye_hybrid_3p_lv.yaml index e333491..3dcd2fd 100644 --- a/tests/deye_hybrid_3p_lv.yaml +++ b/tests/deye_hybrid_3p_lv.yaml @@ -16,7 +16,6 @@ substitutions: wifi_ssid: !secret wifi_ssid wifi_password: !secret wifi_password api_key: !secret pv_inverter_api_key - ota_password: !secret pv_inverter_ota_password fallback_password: !secret pv_inverter_fallback_password modbus_inverter_address: "0x01" # Default Modbus address, should be changed to match inverter settings diff --git a/tests/secrets.yaml b/tests/secrets.yaml index 87643dd..368b5df 100644 --- a/tests/secrets.yaml +++ b/tests/secrets.yaml @@ -1,5 +1,4 @@ wifi_ssid: "test_ssid" wifi_password: "test_Password_123" pv_inverter_api_key: "n3F5I1v1gJ5J9p2vL8bV6d8nQ1r2kU4p/sW3zC9xG7o=" -pv_inverter_ota_password: "test_Password_123" pv_inverter_fallback_password: "test_Password_123"