Class OutletInUseCharacteristic
- java.lang.Object
-
- io.github.hapjava.characteristics.impl.base.BaseCharacteristic<Boolean>
-
- io.github.hapjava.characteristics.impl.base.BooleanCharacteristic
-
- io.github.hapjava.characteristics.impl.outlet.OutletInUseCharacteristic
-
- All Implemented Interfaces:
Characteristic,EventableCharacteristic
public class OutletInUseCharacteristic extends BooleanCharacteristic
This characteristic describes if the power outlet has an appliance physically plugged in. This characteristic is set to True even if the plugged-in appliance is off.
-
-
Constructor Summary
Constructors Constructor Description OutletInUseCharacteristic(Supplier<CompletableFuture<Boolean>> getter, Consumer<HomekitCharacteristicChangeCallback> subscriber, Runnable unsubscriber)
-
Method Summary
-
Methods inherited from class io.github.hapjava.characteristics.impl.base.BooleanCharacteristic
convert, getDefault, getValue, setValue
-
Methods inherited from class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
makeBuilder, setJsonValue, setValue, subscribe, supplyValue, toJson, unsubscribe
-
-
-
-
Constructor Detail
-
OutletInUseCharacteristic
public OutletInUseCharacteristic(Supplier<CompletableFuture<Boolean>> getter, Consumer<HomekitCharacteristicChangeCallback> subscriber, Runnable unsubscriber)
-
-