use of org.openhab.binding.insteonhub.internal.hardware.InsteonHubProxy in project openhab1-addons by openhab.
the class InsteonHubBinding method execute.
@Override
protected void execute() {
logger.debug(BINDING_NAME + " execute");
Set<InsteonHubBindingDeviceInfo> deviceInfos = InsteonHubBindingConfigUtil.getConfiguredDevices(providers);
// loop through all configured devices
for (InsteonHubBindingDeviceInfo deviceInfo : deviceInfos) {
// lookup proxy for device
InsteonHubProxy proxy = proxies.get(deviceInfo.getHubId());
if (proxy != null) {
// request device level from proxy
// this will callback in AsyncEventPublisher if device exists
proxy.requestDeviceLevel(deviceInfo.getDeviceId());
}
}
logger.debug(BINDING_NAME + " execute complete");
}
Aggregations