From 9890f41d6535604970bc5f5ac9249b92779434fd Mon Sep 17 00:00:00 2001 From: Brandon Harvey <8107750+bharvey88@users.noreply.github.com> Date: Thu, 23 Jul 2026 11:04:51 -0500 Subject: [PATCH] Fix BLE deep sleep duration 60x too long MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Sleep Duration number is minutes, but the BLE on_boot restore converted it with a 60 * 60 * 1000 multiplier, treating minutes as hours. A 5 minute setting slept 5 hours. Match Core and Factory. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- Integrations/ESPHome/AIR-1_BLE.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Integrations/ESPHome/AIR-1_BLE.yaml b/Integrations/ESPHome/AIR-1_BLE.yaml index 89d4b0e..251a837 100644 --- a/Integrations/ESPHome/AIR-1_BLE.yaml +++ b/Integrations/ESPHome/AIR-1_BLE.yaml @@ -20,7 +20,7 @@ esphome: id: apollo_firmware_version state: "${version}" - lambda: |- - id(deep_sleep_1).set_sleep_duration(id(deep_sleep_sleep_duration).state * 60 * 60 * 1000); + id(deep_sleep_1).set_sleep_duration(id(deep_sleep_sleep_duration).state * 60 * 1000); - if: condition: or: