Search in sources :

Example 1 with DeviceList

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;
}
Also used : AbstractDevice(org.openhab.io.imperihome.internal.model.device.AbstractDevice) DeviceList(org.openhab.io.imperihome.internal.model.device.DeviceList)

Aggregations

AbstractDevice (org.openhab.io.imperihome.internal.model.device.AbstractDevice)1 DeviceList (org.openhab.io.imperihome.internal.model.device.DeviceList)1