From d9ffd4892d82e27a9e3271b226e955505a8aec65 Mon Sep 17 00:00:00 2001 From: Azzie Date: Thu, 29 May 2025 10:57:05 +0200 Subject: [PATCH] Add ids to sensors that users might want to remove Since ESPHome 2025.5.1 the firmware no longer fits two versions (one compressed) in 1MB flash. This makes OTA updates difficult, as an intermediate minimal firmware must be flashed. A possible workaround is to trim the config from unneeded features, so it's again ~0.5MB. What's unneeded can be decided users, if configs using this package can remove optional sensors by id. --- athom-smart-plug-v2.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/athom-smart-plug-v2.yaml b/athom-smart-plug-v2.yaml index d8a0d3d0..43965900 100644 --- a/athom-smart-plug-v2.yaml +++ b/athom-smart-plug-v2.yaml @@ -271,6 +271,7 @@ sensor: update_interval: ${sensor_update_interval} - platform: total_daily_energy + id: daily_energy_sensor name: "Total Energy Since Boot" restore: true power_id: power_sensor @@ -370,6 +371,7 @@ text_sensor: # Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds - platform: template + id: uptime_text name: "Uptime" entity_category: diagnostic lambda: |-