Search in sources :

Example 1 with ApplicationGetProperties

use of org.openhab.binding.xbmc.rpc.calls.ApplicationGetProperties in project openhab1-addons by openhab.

the class XbmcConnector method requestApplicationUpdate.

public void requestApplicationUpdate() {
    final ApplicationGetProperties app = new ApplicationGetProperties(client, httpUri);
    app.execute(new Runnable() {

        @Override
        public void run() {
            // now update each of the openHAB items for each property
            volume = new BigDecimal(app.getVolume());
            updateProperty("Application.Volume", new PercentType(volume));
        }
    });
}
Also used : PercentType(org.openhab.core.library.types.PercentType) BigDecimal(java.math.BigDecimal) ApplicationGetProperties(org.openhab.binding.xbmc.rpc.calls.ApplicationGetProperties)

Aggregations

BigDecimal (java.math.BigDecimal)1 ApplicationGetProperties (org.openhab.binding.xbmc.rpc.calls.ApplicationGetProperties)1 PercentType (org.openhab.core.library.types.PercentType)1