Examples of FritzahaDevice


Examples of org.openhab.binding.fritzaha.internal.hardware.interfaces.FritzahaDevice

   */
  @Override
  public void processBindingConfiguration(String context, Item item, String bindingConfig)
      throws BindingConfigParseException {
    super.processBindingConfiguration(context, item, bindingConfig);
    FritzahaDevice config = null;
    TimeDef timedef = null;
    String[] configParts = bindingConfig.trim().split(",");
    if (configParts.length < 2) {
      throw new BindingConfigParseException("FritzAHA items must start with <hostID>,<deviceID/AIN>");
    }
View Full Code Here

Examples of org.openhab.binding.fritzaha.internal.hardware.interfaces.FritzahaDevice

  /**
   * {@inheritDoc}
   */
  public FritzahaDevice getDeviceConfig(String itemName) {
    FritzahaDevice config = (FritzahaDevice) bindingConfigs.get(itemName);
    return config;
  }
View Full Code Here

Examples of org.openhab.binding.fritzaha.internal.hardware.interfaces.FritzahaDevice

  @Override
  protected void execute() {
    logger.debug("execute() method is called!");
    for (FritzahaBindingProvider currentProvider : providers) {
      for (String currentItem : currentProvider.getItemNames()) {
        FritzahaDevice currentDevice = currentProvider.getDeviceConfig(currentItem);
        String currentHostId = currentDevice.getHost();
        if (!hostCache.containsKey(currentHostId))
          continue;
        FritzahaWebInterface currentHost = hostCache.get(currentHostId).getConnection();
        if (currentDevice instanceof FritzahaSwitchedOutlet) {
          FritzahaSwitchedOutlet currentSwitch = (FritzahaSwitchedOutlet) currentDevice;
View Full Code Here

Examples of org.openhab.binding.fritzaha.internal.hardware.interfaces.FritzahaDevice

    FritzahaBindingProvider commandProvider = null;
    FritzahaSwitchedOutlet switchDevice = null;
    for (FritzahaBindingProvider currentProvider : providers) {
      if (!currentProvider.getItemNames().contains(itemName))
        continue;
      FritzahaDevice device = currentProvider.getDeviceConfig(itemName);
      if (!(device instanceof FritzahaSwitchedOutlet))
        continue;
      switchDevice = (FritzahaSwitchedOutlet) device;
      commandProvider = currentProvider;
      break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.