Skip to content

malkusch/broadlink-bulb-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Broadlink Bulb Java API

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.

Maven

This package is available in Maven central:

<dependency>
    <groupId>de.malkusch</groupId>
    <artifactId>broadlink-bulb-api</artifactId>
    <version>1.0.1</version>
</dependency>

Usage

Use BroadlinkBulbFactory to build BroadlinkBulb objects.

Examples

Create a single known device

var factory = new BroadlinkBulbFactory();
var light = factory.build("192.168.188.105");
light.turnOn();

Automatic Discovery of devices

var factory = new BroadlinkBulbFactory();
var lights = factory.discover();
for (var light : lights) {
    light.turnOn();
}

About

Broadlight smart bulb Java API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages