Class BasicLightController
-
- All Implemented Interfaces:
-
crackers.kobots.mqtt.homeassistant.LightController
public final class BasicLightController implements LightController
Turns it on and off, adjust brightness.
TODO support a minimal set of effects? should support fade-in/out as HA settings?
-
-
Field Summary
Fields Modifier and Type Field Description private final List<String>
lightEffects
private final String
controllerIcon
private final PwmOutputDevice
device
-
Constructor Summary
Constructors Constructor Description BasicLightController(PwmOutputDevice device)
-
Method Summary
Modifier and Type Method Description List<String>
getLightEffects()
String
getControllerIcon()
final PwmOutputDevice
getDevice()
<Error class: unknown class>
set(LightCommand command)
Set the state of the light. LightState
current()
Get the state of the light. -
-
Method Detail
-
getLightEffects
List<String> getLightEffects()
-
getControllerIcon
String getControllerIcon()
-
getDevice
final PwmOutputDevice getDevice()
-
set
<Error class: unknown class> set(LightCommand command)
Set the state of the light.
-
current
LightState current()
Get the state of the light.
-
-
-
-