I am experiencing a bug where a motion sensor that I exported from Hubitat to HomeKit through the HomeKit Bridge is displaying an incorrect battery status of 0% in the Home app. This is causing persistent low battery warnings despite the device having adequate battery power.
Device Details:
- Device Name: Anyone Motion
-
- Device Type: Generic Component Motion Sensor (C-7 model)
-
- Device ID: HUBITAT559
-
- HomeKit Export Status: Enabled
-
- Firmware Version: 2.4.3
-
- Device Model: C-7
Problem Description:
The motion sensor is properly paired and functioning in Hubitat, showing correct motion detection and other attributes. However, when synced to HomeKit via the HomeKit Bridge, the battery level displays as 0%, triggering continuous low battery alerts in the Home app on iOS devices.
- Device Model: C-7
Expected Behavior:
The battery percentage displayed in HomeKit should accurately reflect the actual battery level from the Hubitat device, or if battery data is not available from the device driver, it should display as "Unknown" rather than 0%.
Actual Behavior:
- HomeKit shows battery status: 0%
-
- Home app displays persistent "Battery Low" warning
-
- The warning does not disappear despite the device functioning normally
-
- Hubitat correctly recognizes the device status (device works properly in the hub)
Steps Taken:
- Hubitat correctly recognizes the device status (device works properly in the hub)
- Verified the motion sensor is properly added to Hubitat
-
- Confirmed HomeKit Bridge is enabled for this device
-
- Removed and re-added the device to HomeKit
-
- Rebooted the hub
-
- The battery status in HomeKit still shows 0%
Additional Information:
This is a Generic Component Motion Sensor, and the battery attribute may not be properly mapped during HomeKit export. I have multiple other devices exported to HomeKit that are working correctly. This issue appears to be specific to how battery information is being handled during the HomeKit export process for this particular motion sensor model.
- The battery status in HomeKit still shows 0%
Could this be a bug in how the HomeKit Bridge handles battery status attributes for motion sensors? Any guidance on resolving this issue would be appreciated.