From 65d7fae8e62d07f2408ea7d522eb47d1dae35607 Mon Sep 17 00:00:00 2001 From: Brandon Harvey <8107750+bharvey88@users.noreply.github.com> Date: Wed, 10 Jun 2026 14:20:29 -0500 Subject: [PATCH] Fix Apollo Firmware Version sensor blank on factory/BLE firmware The on_boot publish for apollo_firmware_version was only added to AIR-1.yaml (b5096d4), but the published firmware is built from AIR-1_Factory.yaml, and AIR-1_BLE.yaml was also missed. Devices running shipped firmware never publish the text sensor state, so it shows blank in HA and the web portal even though device info shows the project version. Add the same priority-500 on_boot publish to both files and bump the version so devices are offered the fixed build. Fixes #93 --- Integrations/ESPHome/AIR-1_BLE.yaml | 3 +++ Integrations/ESPHome/AIR-1_Factory.yaml | 3 +++ Integrations/ESPHome/Core.yaml | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Integrations/ESPHome/AIR-1_BLE.yaml b/Integrations/ESPHome/AIR-1_BLE.yaml index 5ec6d3c..f18c6e2 100644 --- a/Integrations/ESPHome/AIR-1_BLE.yaml +++ b/Integrations/ESPHome/AIR-1_BLE.yaml @@ -11,6 +11,9 @@ esphome: on_boot: priority: 500 then: + - text_sensor.template.publish: + id: apollo_firmware_version + state: "${version}" - lambda: |- id(deep_sleep_1).set_sleep_duration(id(deep_sleep_sleep_duration).state * 60 * 60 * 1000); - if: diff --git a/Integrations/ESPHome/AIR-1_Factory.yaml b/Integrations/ESPHome/AIR-1_Factory.yaml index 0133d5c..95c89de 100644 --- a/Integrations/ESPHome/AIR-1_Factory.yaml +++ b/Integrations/ESPHome/AIR-1_Factory.yaml @@ -11,6 +11,9 @@ esphome: on_boot: - priority: 500 then: + - text_sensor.template.publish: + id: apollo_firmware_version + state: "${version}" - lambda: |- id(deep_sleep_1).set_sleep_duration(id(deep_sleep_sleep_duration).state * 60 * 1000); - if: diff --git a/Integrations/ESPHome/Core.yaml b/Integrations/ESPHome/Core.yaml index 64a2eba..484530b 100644 --- a/Integrations/ESPHome/Core.yaml +++ b/Integrations/ESPHome/Core.yaml @@ -1,6 +1,6 @@ substitutions: name: apollo-air-1 - version: "26.3.2.1" + version: "26.6.10.1" device_description: ${name} made by Apollo Automation - version ${version}. esp32: