Package org.openhab.binding.omnilink.internal.model

Examples of org.openhab.binding.omnilink.internal.model.Area


            case AREA_STATUS_ALARM:
            case AREA_STATUS_ENTRY_DELAY:
            case AREA_STATUS_EXIT_DELAY:
            case AREA_STATUS_MODE: {
              AreaProperties p = readAreaProperties(config.getNumber());
              Area area = areaMap.get(number);
              if (area == null) {
                area = new Area(p, omni);
                areaMap.put(number, area);
              }
              config.setDevice(area);
              area.setProperties(p);
              area.updateItem(provider.getItem(itemName), config,
                  eventPublisher);
            }
              break;
            case AUX_CURRENT:
            case AUX_HIGH:
View Full Code Here


      break;
    case AREA_STATUS_MODE: {
      if (command instanceof StringType) {
        // this needs to go in the area class
        // param1 = ((DecimalType)command).intValue();
        Area area = (Area) config.getDevice();
        int mode = area.getModeForString(command.toString());
        if (mode >= 0) {
          cmd = OmniLinkCmd.CMD_SECURITY_OMNI_DISARM.getNumber()
              + mode;
          // TODO:Get the code number from the binding, or better yet
          // get the code and validate it with the connection
View Full Code Here

      AudioZone az = audioZoneMap.get(number);
      az.getProperties().updateAudioZone((AudioZoneStatus) status);
      updateItemsForDevice(az);
    } else if (status instanceof AreaStatus && areaMap.containsKey(number)) {
      logger.debug("Updating area " + number);
      Area area = areaMap.get(number);
      area.getProperties().updateArea((AreaStatus) status);
      updateItemsForDevice(area);
    } else if (status instanceof ZoneStatus && zoneMap.containsKey(number)) {
      logger.debug("Updating zone " + number);
      Zone zone = zoneMap.get(number);
      zone.getProperties().updateZone((ZoneStatus) status);
View Full Code Here

TOP

Related Classes of org.openhab.binding.omnilink.internal.model.Area

Copyright © 2018 www.massapicom. 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.