Skip to content

[homekit] Apply status description if battery is low - #20761

Draft
andrewfg wants to merge 6 commits into
openhab:mainfrom
andrewfg:homekit-blue-dot
Draft

[homekit] Apply status description if battery is low#20761
andrewfg wants to merge 6 commits into
openhab:mainfrom
andrewfg:homekit-blue-dot

Conversation

@andrewfg

Copy link
Copy Markdown
Contributor

Analog of #20758

Signed-off-by: Andrew Fiddian-Green software@whitebear.ch

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg self-assigned this May 19, 2026
@andrewfg andrewfg added the enhancement An enhancement or new feature for an existing add-on label May 19, 2026
@andrewfg
andrewfg marked this pull request as draft May 19, 2026 18:23
@andrewfg andrewfg changed the title [homekit] Add status description if battery is low [homekit] Apply status description if battery is low May 19, 2026
@lsiepel
lsiepel requested a review from Copilot May 19, 2026 20:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the HomeKit binding to surface a Thing status description (and thus a “blue dot” in UI) when a device reports a low battery condition, mirroring the approach used in other bindings.

Changes:

  • Add a new i18n translation key for an ONLINE low-battery status description.
  • Introduce a constant for the new @text/online.battery-low key.
  • Update the accessory handler to set/clear the Thing status description based on the STATUS_LO_BATT characteristic state.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
bundles/org.openhab.binding.homekit/src/main/resources/OH-INF/i18n/homekit.properties Adds the online.battery-low translation string used for the ONLINE status description.
bundles/org.openhab.binding.homekit/src/main/java/org/openhab/binding/homekit/internal/HomekitBindingConstants.java Adds a constant for the @text/online.battery-low i18n key.
bundles/org.openhab.binding.homekit/src/main/java/org/openhab/binding/homekit/internal/handler/HomekitAccessoryHandler.java Applies/clears the ONLINE status description when the HomeKit low-battery characteristic changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

andrewfg added 5 commits May 19, 2026 23:18
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An enhancement or new feature for an existing add-on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants