use of org.openhab.binding.homematic.internal.model.HmValueItem in project openhab1-addons by openhab.
the class StateHolder method loadVariables.
/**
* Loads all variables from the Homematic server, only executed at startup.
*/
public void loadVariables() throws HomematicClientException {
if (context.getHomematicClient().supportsVariables()) {
logger.info("Loading Homematic Server variables");
context.getHomematicClient().iterateAllVariables(new HmValueItemIteratorCallback() {
@Override
public void iterate(HomematicBindingConfig bindingConfig, HmValueItem variable) {
variables.put(bindingConfig, variable);
}
});
logger.info("Finished loading {} Homematic server variables", variables.size());
}
}
Aggregations