use of org.openhab.binding.hyperion.internal.protocol.ng.Hyperion in project openhab-addons by openhab.
the class HyperionNgHandler method handleServerInfoResponse.
protected void handleServerInfoResponse(NgResponse response) {
NgInfo info = response.getInfo();
if (info != null) {
// update Hyperion, older API compatibility
Hyperion hyperion = info.getHyperion();
if (hyperion != null) {
updateHyperion(hyperion);
}
// populate the effect states
List<Effect> effects = info.getEffects();
populateEffects(effects);
// update adjustments
List<Adjustment> adjustments = info.getAdjustment();
updateAdjustments(adjustments);
// update components
List<Component> components = info.getComponents();
updateComponents(components);
// update colors/effects
List<Priority> priorities = info.getPriorities();
updatePriorities(priorities);
}
}
Aggregations