Interface AccessoryWithOzoneDensity
-
public interface AccessoryWithOzoneDensity
Accessory with Ozone Density characteristic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default double
getMaxOzoneDensity()
return the max value for ozone density.default double
getMinOzoneDensity()
return the min value for ozone density.default double
getMinStepOzoneDensity()
return the min step value for ozone density.java.util.concurrent.CompletableFuture<java.lang.Double>
getOzoneDensity()
Retrieves the ozone density.void
subscribeOzoneDensity(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in ozone density.void
unsubscribeOzoneDensity()
Unsubscribes from changes
-
-
-
Method Detail
-
getOzoneDensity
java.util.concurrent.CompletableFuture<java.lang.Double> getOzoneDensity()
Retrieves the ozone density.- Returns:
- a future with the ozone density
-
getMinOzoneDensity
default double getMinOzoneDensity()
return the min value for ozone density. overwrite if you want to change the default value.- Returns:
- min ozone density
-
getMaxOzoneDensity
default double getMaxOzoneDensity()
return the max value for ozone density. overwrite if you want to change the default value.- Returns:
- max ozone density
-
getMinStepOzoneDensity
default double getMinStepOzoneDensity()
return the min step value for ozone density. overwrite if you want to change the default value.- Returns:
- min step ozone density
-
subscribeOzoneDensity
void subscribeOzoneDensity(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in ozone density.- Parameters:
callback
- the function when ozone density changes
-
unsubscribeOzoneDensity
void unsubscribeOzoneDensity()
Unsubscribes from changes
-
-