Package io.github.hapjava.services.impl
Class HumidifierDehumidifierService
- java.lang.Object
-
- io.github.hapjava.services.impl.HumidifierDehumidifierService
-
- All Implemented Interfaces:
Service
public class HumidifierDehumidifierService extends java.lang.ObjectThis service can be used to describe an air humidifier or/and an air dehumidifier.
-
-
Constructor Summary
Constructors Constructor Description HumidifierDehumidifierService(HumidifierDehumidifierAccessory accessory)HumidifierDehumidifierService(ActiveCharacteristic activeCharacteristic, CurrentRelativeHumidityCharacteristic currentRelativeHumidityCharacteristic, CurrentHumidifierDehumidifierStateCharacteristic currentHumidifierDehumidifierStateCharacteristic, TargetHumidifierDehumidifierStateCharacteristic targetHumidifierDehumidifierStateCharacteristic)
-
Method Summary
-
-
-
Constructor Detail
-
HumidifierDehumidifierService
public HumidifierDehumidifierService(ActiveCharacteristic activeCharacteristic, CurrentRelativeHumidityCharacteristic currentRelativeHumidityCharacteristic, CurrentHumidifierDehumidifierStateCharacteristic currentHumidifierDehumidifierStateCharacteristic, TargetHumidifierDehumidifierStateCharacteristic targetHumidifierDehumidifierStateCharacteristic)
-
HumidifierDehumidifierService
public HumidifierDehumidifierService(HumidifierDehumidifierAccessory accessory)
-
-
Method Detail
-
addOptionalCharacteristic
public void addOptionalCharacteristic(NameCharacteristic name)
-
addOptionalCharacteristic
public void addOptionalCharacteristic(RotationSpeedCharacteristic speed)
-
addOptionalCharacteristic
public void addOptionalCharacteristic(SwingModeCharacteristic mode)
-
addOptionalCharacteristic
public void addOptionalCharacteristic(LockPhysicalControlsCharacteristic lock)
-
addOptionalCharacteristic
public void addOptionalCharacteristic(HumidityDehumidifierThresholdCharacteristic threshold)
-
addOptionalCharacteristic
public void addOptionalCharacteristic(HumidityHumidifierThresholdCharacteristic threshold)
-
addOptionalCharacteristic
public void addOptionalCharacteristic(WaterLavelCharacteristic level)
-
getCharacteristics
public java.util.List<Characteristic> getCharacteristics()
Description copied from interface:ServiceCharacteristics are the variables offered for reading, updating, and eventing by the Service over the HomeKit protocol.It is important to maintain the order of this list and not change its contents between invocations, or a pairing error will result.
- Specified by:
getCharacteristicsin interfaceService- Returns:
- the list of Characteristics.
-
getType
public java.lang.String getType()
Description copied from interface:ServiceThe type is a UUID that uniquely identifies the type of Service offered. Apple defines several types for standard Services, however UUIDs outside this range are allowed for custom Services.
-
getLinkedServices
public java.util.List<Service> getLinkedServices()
Description copied from interface:ServiceList of all the services to which the service links- Specified by:
getLinkedServicesin interfaceService- Returns:
- the list of linked services.
-
addCharacteristic
public void addCharacteristic(Characteristic characteristic)
-
addLinkedService
public void addLinkedService(Service service)
Description copied from interface:ServiceAdd linked services- Specified by:
addLinkedServicein interfaceService- Parameters:
service- linked service
-
-