public void handleCommand(ChannelUID channelUID, Command command) {
}
+ @Override
+ public void initialize() {
+ updateStatus(ThingStatus.ONLINE);
+ }
+
private List<Robot> sendGetRobots(String accessToken) {
Properties headers = new Properties();
headers.setProperty("Accept", "application/vnd.neato.nucleo.v1");
import org.openhab.core.thing.Channel;
import org.openhab.core.thing.ChannelUID;
import org.openhab.core.thing.Thing;
+import org.openhab.core.thing.ThingStatus;
import org.openhab.core.thing.binding.builder.ChannelBuilder;
import org.openhab.core.thing.binding.builder.ThingBuilder;
import org.openhab.core.thing.type.ChannelTypeUID;
logger.debug("Could not query current draw. Not removing channel as it could be temporary.", e);
}
}
- super.initialize();
+ updateStatus(ThingStatus.ONLINE);
}
@Override