use of org.openhab.io.imperihome.internal.model.device.DeviceList in project openhab-addons by openhab.
the class DevicesListHandler method handle.
public DeviceList handle(HttpServletRequest req) {
DeviceList response = new DeviceList();
Collection<AbstractDevice> devices = deviceRegistry.getDevices().values();
for (AbstractDevice device : devices) {
device.updateParams();
}
response.setDevices(devices);
logger.debug("Device list response: {}", response);
return response;
}
Aggregations