From abfb0e8fec03083141dc2caf24009b0dd23455bd Mon Sep 17 00:00:00 2001 From: Brandon Harvey Date: Fri, 6 Mar 2026 17:14:55 -0600 Subject: [PATCH 1/2] fix: publish firmware version once on boot instead of polling Per ESPHome dev feedback: the version is a compile-time constant, so publish it once on_boot rather than using a lambda with periodic updates. --- Integrations/ESPHome/Core.yaml | 3 +-- Integrations/ESPHome/PUMP-1.yaml | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Integrations/ESPHome/Core.yaml b/Integrations/ESPHome/Core.yaml index 7bd4715..d93f774 100644 --- a/Integrations/ESPHome/Core.yaml +++ b/Integrations/ESPHome/Core.yaml @@ -341,8 +341,7 @@ text_sensor: - platform: template name: "Apollo Firmware Version" id: apollo_firmware_version - lambda: |- - return {"${version}"}; + update_interval: never entity_category: "diagnostic" script: diff --git a/Integrations/ESPHome/PUMP-1.yaml b/Integrations/ESPHome/PUMP-1.yaml index d0214b5..0fa81a0 100644 --- a/Integrations/ESPHome/PUMP-1.yaml +++ b/Integrations/ESPHome/PUMP-1.yaml @@ -4,6 +4,11 @@ esphome: comment: Apollo PUMP-1 name_add_mac_suffix: true on_boot: + - priority: 500 + then: + - text_sensor.template.publish: + id: apollo_firmware_version + state: "${version}" - priority: -10 then: - if: From f0f2a1211038328ea2881177cb101d952dfff711 Mon Sep 17 00:00:00 2001 From: Brandon Harvey Date: Fri, 6 Mar 2026 18:31:10 -0600 Subject: [PATCH 2/2] fix: add firmware version publish to PUMP-1_Minimal Add text_sensor.template.publish for apollo_firmware_version at priority 500 to PUMP-1_Minimal for dashboard import users. --- Integrations/ESPHome/PUMP-1_Minimal.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Integrations/ESPHome/PUMP-1_Minimal.yaml b/Integrations/ESPHome/PUMP-1_Minimal.yaml index ff36804..85c674b 100644 --- a/Integrations/ESPHome/PUMP-1_Minimal.yaml +++ b/Integrations/ESPHome/PUMP-1_Minimal.yaml @@ -8,6 +8,12 @@ esphome: version: "${version}" min_version: 2023.11.1 + on_boot: + priority: 500 + then: + - text_sensor.template.publish: + id: apollo_firmware_version + state: "${version}" dashboard_import: package_import_url: github://ApolloAutomation/PUMP-1/Integrations/ESPHome/PUMP-1_Minimal.yaml