Package io.github.hapjava.accessories
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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CompletableFuture<FilterChangeIndicationEnum>getFilterChangeIndication()The filter change indictaion.default Collection<Service>getServices()The collection of Services this accessory supports.voidsubscribeFilterChangeIndication(HomekitCharacteristicChangeCallback callback)Subscribes to changes in the filter change indication.voidunsubscribeFilterChangeIndication()Unsubscribes from changes in the filter change indication.-
Methods inherited from interface io.github.hapjava.accessories.HomekitAccessory
getFirmwareRevision, getId, getManufacturer, getModel, getName, getPrimaryService, getSerialNumber, identify
-
-
-
-
Method Detail
-
getFilterChangeIndication
CompletableFuture<FilterChangeIndicationEnum> getFilterChangeIndication()
The filter change indictaion. It's either yes or no.- Returns:
- FilterChangeIndicationEnum
-
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:HomekitAccessoryThe 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:
getServicesin interfaceHomekitAccessory- Returns:
- the collection of services.
-
-