From 00e06c80c68581ae84107dc7fc06ab233892505f Mon Sep 17 00:00:00 2001 From: Joshua King Date: Tue, 17 Feb 2026 07:27:22 -0500 Subject: [PATCH] battery logging enabled --- esphome/ha-remote/ha-remote-1.base.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/esphome/ha-remote/ha-remote-1.base.yaml b/esphome/ha-remote/ha-remote-1.base.yaml index 925e1fa..4d58985 100644 --- a/esphome/ha-remote/ha-remote-1.base.yaml +++ b/esphome/ha-remote/ha-remote-1.base.yaml @@ -152,6 +152,10 @@ sensor: device_class: voltage state_class: measurement accuracy_decimals: 3 + on_value: + then: + - lambda: |- + ESP_LOGI("battery", "Voltage: %.3f V", x); battery_level: name: "Remote Battery Level" id: remote_battery_level @@ -163,6 +167,7 @@ sensor: then: - lambda: |- const float pct = x; + ESP_LOGI("battery", "Level: %.0f%%", pct); const bool valid = pct >= 0.0f && pct <= 100.0f; // Infer charging from SOC trend when no dedicated charge-detect pin exists.