This is a Java API for the Broadlight Smart bulbs (LB1). This is an addition to broadlink-java-api
which doesn't support this device. Also python-broadlink
was a great resource to implement this API.
This package is available in Maven central:
<dependency>
<groupId>de.malkusch</groupId>
<artifactId>broadlink-bulb-api</artifactId>
<version>1.0.1</version>
</dependency>
Use BroadlinkBulbFactory
to build BroadlinkBulb
objects.
var factory = new BroadlinkBulbFactory();
var light = factory.build("192.168.188.105");
light.turnOn();
var factory = new BroadlinkBulbFactory();
var lights = factory.discover();
for (var light : lights) {
light.turnOn();
}