Search in sources :

Example 1 with LoadCellLed

use of org.openhab.binding.tinkerforge.internal.model.LoadCellLed in project openhab1-addons by openhab.

the class MBrickletLoadCellImpl method initSubDevices.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated NOT
     */
@Override
public void initSubDevices() {
    ModelFactory factory = ModelFactory.eINSTANCE;
    LoadCellWeight weight = factory.createLoadCellWeight();
    weight.setUid(getUid());
    String subIdWeight = "weight";
    weight.setSubId(subIdWeight);
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdWeight);
    weight.init();
    weight.setMbrick(this);
    LoadCellLed led = factory.createLoadCellLed();
    led.setUid(getUid());
    String subIdLed = "led";
    led.setSubId(subIdLed);
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdLed);
    led.init();
    led.setMbrick(this);
}
Also used : ModelFactory(org.openhab.binding.tinkerforge.internal.model.ModelFactory) LoadCellWeight(org.openhab.binding.tinkerforge.internal.model.LoadCellWeight) LoadCellLed(org.openhab.binding.tinkerforge.internal.model.LoadCellLed)

Aggregations

LoadCellLed (org.openhab.binding.tinkerforge.internal.model.LoadCellLed)1 LoadCellWeight (org.openhab.binding.tinkerforge.internal.model.LoadCellWeight)1 ModelFactory (org.openhab.binding.tinkerforge.internal.model.ModelFactory)1