Search in sources :

Example 1 with HueBridge

use of org.eclipse.smarthome.binding.hue.internal.HueBridge in project smarthome by eclipse.

the class HueBridgeHandler method initialize.

@Override
public void initialize() {
    logger.debug("Initializing hue bridge handler.");
    if (getConfig().get(HOST) != null) {
        if (hueBridge == null) {
            hueBridge = new HueBridge((String) getConfig().get(HOST));
            hueBridge.setTimeout(5000);
        }
        onUpdate();
    } else {
        updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.OFFLINE.CONFIGURATION_ERROR, "@text/offline.conf-error-no-ip-address");
    }
}
Also used : HueBridge(org.eclipse.smarthome.binding.hue.internal.HueBridge)

Aggregations

HueBridge (org.eclipse.smarthome.binding.hue.internal.HueBridge)1