Interface AccessoryWithCarbonDioxideLevel
- 
 public interface AccessoryWithCarbonDioxideLevelAccessory with carbon dioxide level and peak level characteristic.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Double>getCarbonDioxideLevel()Retrieves the carbon dioxide leveljava.util.concurrent.CompletableFuture<java.lang.Double>getCarbonDioxidePeakLevel()Retrieves the carbon dioxide peak leveldefault doublegetMaxCarbonDioxideLevel()return the max value for carbon dioxide level.default doublegetMaxCarbonDioxidePeakLevel()return the max value for carbon dioxide peak level.default doublegetMinCarbonDioxideLevel()return the min value for carbon dioxide level.default doublegetMinCarbonDioxidePeakLevel()return the min value for carbon dioxide peak level.default doublegetMinStepCarbonDioxideLevel()return the min step value for carbon dioxide level.default doublegetMinStepCarbonDioxidePeakLevel()return the min step value for carbon dioxide peak level.voidsubscribeCarbonDioxideLevel(HomekitCharacteristicChangeCallback callback)Subscribes to changes in the carbon dioxide level.voidsubscribeCarbonDioxidePeakLevel(HomekitCharacteristicChangeCallback callback)Subscribes to changes in the carbon dioxide level.voidunsubscribeCarbonDioxideLevel()Unsubscribes from changes in the carbon dioxide level.voidunsubscribeCarbonDioxidePeakLevel()Unsubscribes from changes in the carbon dioxide level.
 
- 
- 
- 
Method Detail- 
getCarbonDioxidePeakLeveljava.util.concurrent.CompletableFuture<java.lang.Double> getCarbonDioxidePeakLevel() Retrieves the carbon dioxide peak level- Returns:
- a future that will contain the carbon dioxide level as a value between 0 and 100000
 
 - 
getCarbonDioxideLeveljava.util.concurrent.CompletableFuture<java.lang.Double> getCarbonDioxideLevel() Retrieves the carbon dioxide level- Returns:
- a future that will contain the carbon dioxide level as a value between 0 and 100000
 
 - 
getMinCarbonDioxideLeveldefault double getMinCarbonDioxideLevel() return the min value for carbon dioxide level. overwrite if you want to change the default value.- Returns:
- min carbon dioxide level
 
 - 
getMaxCarbonDioxideLeveldefault double getMaxCarbonDioxideLevel() return the max value for carbon dioxide level. overwrite if you want to change the default value.- Returns:
- max carbon dioxide level
 
 - 
getMinStepCarbonDioxideLeveldefault double getMinStepCarbonDioxideLevel() return the min step value for carbon dioxide level. overwrite if you want to change the default value.- Returns:
- min step carbon dioxide level
 
 - 
getMinCarbonDioxidePeakLeveldefault double getMinCarbonDioxidePeakLevel() return the min value for carbon dioxide peak level. overwrite if you want to change the default value.- Returns:
- min carbon dioxide peak level
 
 - 
getMaxCarbonDioxidePeakLeveldefault double getMaxCarbonDioxidePeakLevel() return the max value for carbon dioxide peak level. overwrite if you want to change the default value.- Returns:
- max carbon dioxide peak level
 
 - 
getMinStepCarbonDioxidePeakLeveldefault double getMinStepCarbonDioxidePeakLevel() return the min step value for carbon dioxide peak level. overwrite if you want to change the default value.- Returns:
- min step carbon dioxide peak level
 
 - 
subscribeCarbonDioxideLevelvoid subscribeCarbonDioxideLevel(HomekitCharacteristicChangeCallback callback) Subscribes to changes in the carbon dioxide level.- Parameters:
- callback- the function to call when the state changes.
 
 - 
unsubscribeCarbonDioxideLevelvoid unsubscribeCarbonDioxideLevel() Unsubscribes from changes in the carbon dioxide level.
 - 
subscribeCarbonDioxidePeakLevelvoid subscribeCarbonDioxidePeakLevel(HomekitCharacteristicChangeCallback callback) Subscribes to changes in the carbon dioxide level.- Parameters:
- callback- the function to call when the state changes.
 
 - 
unsubscribeCarbonDioxidePeakLevelvoid unsubscribeCarbonDioxidePeakLevel() Unsubscribes from changes in the carbon dioxide level.
 
- 
 
-