Tabnine Logo For Javascript
Accessory.Categories
Code IndexAdd Tabnine to your IDE (free)

How to use
Categories
function
in
Accessory

Best JavaScript code snippets using hap-nodejs.Accessory.Categories(Showing top 4 results out of 315)

origin: rdmtc/RedMatic-HomeKit

accessory(config) {
      const uuid = hap.uuid.generate(config.id + (config.uuidAddition ? config.uuidAddition : ''));
      let acc;

      this.bridge.bridgedAccessories.forEach(a => {
        if (a.UUID === uuid) {
          acc = a;
        }
      });

      if (acc) {
        this.debug('already existing accessory ' + config.id + ' ' + config.name);
      } else if (this.bridge.bridgedAccessories.length >= 150) {
        this.error('maximum of 150 accessories per bridge exceeded, can\'t add ' + config.id + ' ' + config.name);
      } else {
        this.debug('addAccessory ' + config.id + ' ' + config.name);
        acc = new hap.Accessory(config.name, uuid, hap.Accessory.Categories.OTHER);
        this.bridge.addBridgedAccessory(acc);
      }

      this.waitForAccessories();

      return acc;
    }
origin: rdmtc/RedMatic-HomeKit

  port: config.port,
  pincode: config.pincode,
  category: Accessory.Categories.TELEVISION
});
origin: rdmtc/RedMatic-HomeKit

  port: parseInt(this.port, 10),
  pincode: this.pincode,
  category: hap.Accessory.Categories.OTHER
}, this.allowInsecureRequest);
this.log('published bridge (' + this.bridge.bridgedAccessories.length + ' Accessories) ' + this.name + ' ' + this.username + ' on port ' + this.port);
origin: rdmtc/RedMatic-HomeKit

  port: config.port,
  pincode: config.pincode,
  category: Accessory.Categories.CAMERA
});
hap-nodejs(npm)AccessoryCategories

Most used hap-nodejs functions

  • Accessory.Categories
  • Accessory._server
  • Accessory.on
  • Accessory.publish
  • CAMERA
  • Characteristic.ActiveIdentifier,
  • Characteristic.CONFIGURED,
  • Characteristic.ConfiguredName,
  • Characteristic.CurrentRelativeHumidity,
  • Characteristic.CurrentVisibilityState,
  • Characteristic.FirmwareRevision,
  • Characteristic.Identifier,
  • Characteristic.InputSourceType,
  • Characteristic.IsConfigured,
  • Characteristic.Manufacturer,
  • Characteristic.Model,
  • Characteristic.On,
  • Characteristic.PowerModeSelection,
  • Characteristic.ProgrammableSwitchEvent

Popular in JavaScript

  • webpack
    Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
  • semver
    The semantic version parser used by npm.
  • node-fetch
    A light-weight module that brings window.fetch to node.js
  • qs
    A querystring parser that supports nesting and arrays, with a depth limit
  • mkdirp
    Recursively mkdir, like `mkdir -p`
  • redis
    Redis client library
  • request
    Simplified HTTP request client.
  • moment
    Parse, validate, manipulate, and display dates
  • colors
    get colors in your node.js console
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now