use of org.openhab.binding.tinkerforge.internal.model.RotaryEncoderButton in project openhab1-addons by openhab.
the class MBrickletRotaryEncoderImpl method initSubDevices.
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated NOT
*/
@Override
public void initSubDevices() {
RotaryEncoder rotaryEncoder = ModelFactory.eINSTANCE.createRotaryEncoder();
rotaryEncoder.setUid(getUid());
String subIdEncoder = "encoder";
rotaryEncoder.setSubId(subIdEncoder);
logger.debug("addSubDevice {}", subIdEncoder);
rotaryEncoder.init();
rotaryEncoder.setMbrick(this);
RotaryEncoderButton button = ModelFactory.eINSTANCE.createRotaryEncoderButton();
button.setUid(getUid());
String subIdButton = "button";
button.setSubId(subIdButton);
logger.debug("addSubDevice {}", subIdButton);
button.init();
button.setMbrick(this);
}
Aggregations