Search in sources :

Example 16 with ModInfo

use of org.openhab.binding.lcn.connection.ModInfo in project openhab1-addons by openhab.

the class ModStatusBinSensors method process.

/**
     * Notifies the connection about the received binary-sensor status.
     * {@inheritDoc}
     */
@Override
public void process(Connection conn) {
    // Will replace source segment 0 with the local segment id
    super.process(conn);
    ModInfo info = conn.getModInfo(this.logicalSourceAddr);
    if (info != null) {
        info.requestStatusBinSensors.onResponseReceived();
    }
}
Also used : ModInfo(org.openhab.binding.lcn.connection.ModInfo)

Example 17 with ModInfo

use of org.openhab.binding.lcn.connection.ModInfo in project openhab1-addons by openhab.

the class ModStatusKeyLocks method process.

/**
     * Notifies the connection about the received key-locks status.
     * {@inheritDoc}
     */
@Override
public void process(Connection conn) {
    // Will replace source segment 0 with the local segment id
    super.process(conn);
    ModInfo info = conn.getModInfo(this.logicalSourceAddr);
    if (info != null) {
        info.requestStatusLockedKeys.onResponseReceived();
    }
}
Also used : ModInfo(org.openhab.binding.lcn.connection.ModInfo)

Example 18 with ModInfo

use of org.openhab.binding.lcn.connection.ModInfo in project openhab1-addons by openhab.

the class ModStatusLedsAndLogicOps method process.

/**
     * Notifies the connection about the received LEDs and logic-operations status.
     * {@inheritDoc}
     */
@Override
public void process(Connection conn) {
    // Will replace source segment 0 with the local segment id
    super.process(conn);
    ModInfo info = conn.getModInfo(this.logicalSourceAddr);
    if (info != null) {
        info.requestStatusLedsAndLogicOps.onResponseReceived();
    }
}
Also used : ModInfo(org.openhab.binding.lcn.connection.ModInfo)

Example 19 with ModInfo

use of org.openhab.binding.lcn.connection.ModInfo in project openhab1-addons by openhab.

the class ModStatusOutput method process.

/**
     * Notifies the connection about the received output-port status.
     * {@inheritDoc}
     */
@Override
public void process(Connection conn) {
    // Will replace source segment 0 with the local segment id
    super.process(conn);
    ModInfo info = conn.getModInfo(this.logicalSourceAddr);
    if (info != null) {
        info.requestStatusOutputs.get(this.outputId).onResponseReceived();
    }
}
Also used : ModInfo(org.openhab.binding.lcn.connection.ModInfo)

Example 20 with ModInfo

use of org.openhab.binding.lcn.connection.ModInfo in project openhab1-addons by openhab.

the class ModStatusRelays method process.

/**
     * Notifies the connection about the received relays status.
     * {@inheritDoc}
     */
@Override
public void process(Connection conn) {
    // Will replace source segment 0 with the local segment id
    super.process(conn);
    ModInfo info = conn.getModInfo(this.logicalSourceAddr);
    if (info != null) {
        info.requestStatusRelays.onResponseReceived();
    }
}
Also used : ModInfo(org.openhab.binding.lcn.connection.ModInfo)

Aggregations

ModInfo (org.openhab.binding.lcn.connection.ModInfo)20 LcnDefs (org.openhab.binding.lcn.common.LcnDefs)4 LcnAddrMod (org.openhab.binding.lcn.common.LcnAddrMod)3 DecimalType (org.openhab.core.library.types.DecimalType)1 PercentType (org.openhab.core.library.types.PercentType)1