Class PimoroniShimController
-
- All Implemented Interfaces:
-
crackers.kobots.mqtt.homeassistant.LightController
public final class PimoroniShimController implements LightController
Controller for a light device backed by a Pimoroni LED Shim on a Raspberry Pi.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringcontrollerIconprivate final <Error class: unknown class>lightEffects
-
Constructor Summary
Constructors Constructor Description PimoroniShimController(PimoroniLEDShim device, Set<LightEffector<PimoroniLEDShim>> effects)
-
Method Summary
Modifier and Type Method Description StringgetControllerIcon()<Error class: unknown class>getLightEffects()<Error class: unknown class>set(LightCommand command)Set the state of the light. Unitexec(String effect)Execute an effect in some sort of completable manner. LightStatecurrent()Get the state of the light. -
-
Constructor Detail
-
PimoroniShimController
PimoroniShimController(PimoroniLEDShim device, Set<LightEffector<PimoroniLEDShim>> effects)
-
-
Method Detail
-
getControllerIcon
String getControllerIcon()
-
getLightEffects
<Error class: unknown class> getLightEffects()
-
set
<Error class: unknown class> set(LightCommand command)
Set the state of the light.
-
exec
Unit exec(String effect)
Execute an effect in some sort of completable manner. Note this must be cancellable by any subsequent commands.
-
current
LightState current()
Get the state of the light.
-
-
-
-