public void onLevelUpdate(String device, int level,
InsteonHubLevelUpdateType updateType) {
Collection<InsteonHubBindingConfig> configs = InsteonHubBindingConfigUtil
.getConfigsForDevice(providers, hubId, device);
for (InsteonHubBindingConfig config : configs) {
BindingType type = config.getBindingType();
// FIXME Currently filtering STATUS_CHANGE out for non-dimmer types b/c it's not working properly. Need to learn more.
if (type == BindingType.SWITCH
&& updateType == InsteonHubLevelUpdateType.STATUS_CHANGE) {
// switch => 0=OFF, else=ON
State update = level == 0 ? OnOffType.OFF : OnOffType.ON;