Interface FilterMaintenanceAccessory

  • All Superinterfaces:
    HomekitAccessory

    public interface FilterMaintenanceAccessory
    extends HomekitAccessory
    A Filter maintenance with mandatory characteristics.

    The HomeKit app doesn't support a separate FilterMaintenance, but as a linked service to AirPurifier.

    • Method Detail

      • subscribeFilterChangeIndication

        void subscribeFilterChangeIndication​(HomekitCharacteristicChangeCallback callback)
        Subscribes to changes in the filter change indication.
        Parameters:
        callback - the function to call when the state changes.
      • unsubscribeFilterChangeIndication

        void unsubscribeFilterChangeIndication()
        Unsubscribes from changes in the filter change indication.
      • getServices

        default Collection<Service> getServices()
        Description copied from interface: HomekitAccessory
        The collection of Services this accessory supports. Services are the primary way to interact with the accessory via HomeKit. Besides the Services offered here, the accessory will automatically include the required information service.

        This method will only be useful if you're implementing your own accessory type. For the standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        Specified by:
        getServices in interface HomekitAccessory
        Returns:
        the collection of services.