SwitchBot Bluetooth: expose main battery status / power alarm for Lock Ultra (and Lock 2) #5059
Unanswered
Jody1818
asked this question in
Integration enhancements
Replies: 1 comment
|
🏷️ I've automatically added the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Integration name
SwitchBot Bluetooth
Link to integration documentation on our website
https://www.home-assistant.io/integrations/switchbot
Describe the enhancement
The SwitchBot Lock Ultra has a removable rechargeable main battery and a built-in CR123A backup battery. When the main battery is removed for charging, the lock keeps running on the backup battery.
Today: the integration exposes only a single "Battery" sensor. While the main battery is out, this sensor reports the backup battery level instead (in my case it jumped from 38% to 100%). There is no way in Home Assistant to know whether the reading comes from the main or the backup battery.
Requested: expose the "battery_status" field that PySwitchbot already parses for this lock (process_lock2 in switchbot/adv_parsers/lock.py: battery_status = mfr_data[11] & 0b00000111), for example as a binary_sensor "Running on backup battery" / "Main battery installed".
Observed data (Lock Ultra, HA 2026.9.4, PySwitchbot 2.4.1):
Raw manufacturer data:
Use cases
I have an automation that notifies me and adds a to-do item when the lock battery drops to 20%, 15%, 10% and 5%, and removes the to-do item when the battery is above 30%.
While the main battery is out for charging, the Battery sensor shows the backup battery level (100%), so Home Assistant thinks the lock is fully charged. With a "Running on backup battery" entity I could:
Anything else?
All reactions