Interface AccessoryWithStatusLowBattery


  • public interface AccessoryWithStatusLowBattery
    This characteristic describes an accessoryʼs battery status.
    • Method Detail

      • getStatusLowBattery

        java.util.concurrent.CompletableFuture<StatusLowBatteryEnum> getStatusLowBattery()
        A status of 1 indicates that the battery level of the accessory is low. Value should return to 0 when the battery charges to a level thats above the low threshold.
        Returns:
        a future with the value
      • subscribeStatusLowBattery

        void subscribeStatusLowBattery​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in status low battery.
        Parameters:
        callback - the function when the status low batter changes
      • unsubscribeStatusLowBattery

        void unsubscribeStatusLowBattery()
        Unsubscribes from changes