Interface AccessoryWithLockCurrentState


  • public interface AccessoryWithLockCurrentState
    Accessory with current lock state.
    • Method Detail

      • getLockCurrentState

        java.util.concurrent.CompletableFuture<LockCurrentStateEnum> getLockCurrentState()
        Retrieves the lock states. The current state of the physical security mechanism (e.g. deadbolt)
        Returns:
        a future with the value
      • subscribeLockCurrentState

        void subscribeLockCurrentState​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in lock current state.
        Parameters:
        callback - the function when the lock current state changes
      • unsubscribeLockCurrentState

        void unsubscribeLockCurrentState()
        Unsubscribes from changes